Imported Upstream version 2.5.1
[debian/amanda] / ChangeLog
1 2006-09-05  Jean-Louis Martineau <martineau@zmanda.com>
2         * Amanda 2.5.1 released.
3         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1).
4         * NEWS: Change in amanda-2.5.1
5
6 2006-08-30  Jean-Louis Martineau <martineau@zmanda.com>
7         * server-src/dumper.c: Typo in error message.
8
9 2006-08-29  Jean-Louis Martineau <martineau@zmanda.com>
10         * client-src/selfcheck.c: Print error message to stdout before
11                                   calling error().
12
13 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
14         * server-src/dumper.c (log_msgout): Seek to begining of file.
15
16 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
17         * server-src/reporter.c: Report if a dump was successfully retried.
18
19 2006-08-28  Jean-Louis Martineau <martineau@zmanda.com>
20         * server-src/amstatus.pl.in: Correct size for retried dump.
21
22 2006-08-25  Jean-Louis Martineau <martineau@zmanda.com>
23         * client-src/runtar.c: Check that strcmp(argv[3], "--create") == 0.
24
25 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
26         * common-src/statfs.c (scale): Macro replaced by a function.
27
28 2006-08-24  Jean-Louis Martineau <martineau@zmanda.com>
29         * server-src/chunker.c: Use STREAM_BUFSIZE for stream_accept.
30         * server-src/taper.c: Use STREAM_BUFSIZE for stream_accept.
31
32 2006-08-24  Maitreyee Karmarkar <maitreyee.zmanda.com>
33         * man/xml-source/amcheck.8.xml: amcheck xml man page change 
34
35 2006-08-23  Kevin Till <ktill@zmanda.com>
36         *  server-src/driver.c: fix typo
37
38 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
39         * server-src/driver.c (dumper_result): Decrement pendings_aborts.
40         * server-src/driver.c (handle_dumper_result): Don't send duper result
41           to chunker if we aborted it.
42         * server-src/driverio.c (dumper_cmd, chunker_cmd): Don't close the fd
43           on ABORT.
44         * server-src/dumper.c: Accept ABORT command.
45
46 2006-08-23  Jean-Louis Martineau <martineau@zmanda.com>
47         * restore-src/restore.c (restore): Set bytes_read to the return value
48           of read_file_header.
49
50 2006-08-22  Jean-Louis Martineau <martineau@zmanda.com>
51         * tape-src/output-tape.c: Works if EOVERFLOW is not defined.
52
53 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
54         * amandad-src/amandad.c, common-src/rsh-security.c,
55           common-src/ssh-security.c, restore-src/restore.c,
56           server-src/changer.c, server-src/dumper.c: Fix sentinel warning.
57
58 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
59         * example/amanda.conf.in: Typo.
60
61 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
62         * server-src/driverio.c: Fix bogus "(unsigned long)-1".
63
64 2006-08-21  Jean-Louis Martineau <martineau@zmanda.com>
65         * server-src/driver.c (start_some_dumps): Remove bogus free_assignedhd.
66
67 2006-08-21  Maitreyee Karmarkar <maitreyee.zmanda.com>
68         * server-src/amcheck.c: Check specific clients
69         * man/amcheck.8: add the multiple client check format
70
71 2006-08-18  Ian Turner <ian@zmanda.com>
72         * tape-src/amtapetype.c: Don't crash on exit
73
74 2006-08-17  Paddy Sreenivasan <paddy@zmanda.com>
75         * server-src/driverio.c:
76         * server-src/changer.c:
77         * restore-src/amfetchdump.c:
78         * recover-src/extract_list.c:
79         * oldrecover-src/extract_list.c:
80         * common-src/util.c:
81         * common-src/stream.c:
82         * common-src/file.c:
83         * common-src/dgram.c: Fix warnings
84
85 2006-08-17  Kevin Till <ktill@zmanda.com>
86         * common-src/stream.c: Loop 5 times (ntries > 5) on select error
87
88 2006-08-14  Paddy Sreenivasan <paddy@zmanda.com>
89         * client-src/sendsize.c: Fix warning
90         * server-src/reporter.c: Fix warnings
91
92 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
93         * Amanda 2.5.1b2 released.
94         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b2).
95
96 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
97         * server-src/driver.c (find_diskspace): Make sure size > 0.
98
99 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
100         * server-src/planner.c: Don't check new disk.
101
102 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
103         * server-src/planner.c: Always log if full size estimate is larger
104                                 than the available tape space.
105
106 2006-07-28  Jean-Louis Martineau <martineau@zmanda.com>
107         * server-src/planner.c: Always log if the latest full dump will be
108                                 overwritten soon.
109
110 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
111         * common-src/clock.c (timesub): Don't make a negative time.
112
113 2006-07-27  Jean-Louis Martineau <martineau@zmanda.com>
114         * man/xml-source/amanda.conf.5.xml: Tell which file are loaded.
115         * man/xml-source/amanda-client.conf.5.xml: Ditto.
116
117 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
118         * NEWS: for 2.5.1b2.
119
120 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
121         * common-src/util.h (CONFTYPE_HOLDING): New conftype.
122         * common-src/util.c (conf_init_holding, conf_set_holding,
123                              get_conftype_hold): New fonction.
124         * example/amanda.conf.in: Example of new holdingdisk value.
125         * man/xml-source/amanda.8.xml: Example.
126         * man/xml-source/amanda.conf.5.xml: Document it.
127         * server-src/amadmin.c (disklist_one): Print holdingdisk value.
128         * server-src/conffile.c: Parse new CONF_HOLDING type.
129         * server-src/conffile.h (dumptype_get_to_holdingdisk): Change macro.
130         * server-src/diskfile.c (parse_diskline): dumptype_get_to_holdingdisk.
131         * server-src/driver.c: Use new CONFTYPE_HOLDING value.
132
133 2006-07-26  Jean-Louis Martineau <martineau@zmanda.com>
134         * client-src/selfcheck.c: Fix bug found by coverity.
135         * common-src/debug.c: Fix bug found by coverity.
136
137 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
138         * server-src/amflush.c: Typo.
139
140 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
141         * server-src/amflush.c: Correct test for driver_stream.
142
143 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
144         * client-src/clientconf.c: Default CLN_AMANDATES to /etc/amandates.
145         * common-src/util.c (conf_init_size): Type is CONFTYPE_SIZE.
146         * server-src/conffile.c (getconf_taperalgo): New function.
147         * server-src/conffile.h (getconf_taperalgo): Prototype.
148         * server-src/driver.c: Use getconf_taperalgo.
149
150 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
151         * client-src/clientconf.c (client_getconf_boolean): New function.
152         * client-src/clientconf.h (client_getconf_boolean): Prototype.
153         * server-src/conffile.c (getconf_boolean): New function.
154         * server-src/conffile.h (getconf_boolean): Prototype.
155         * restore-src/amidxtaped.c: Use getconf_boolean.
156         * server-src/amflush.c: Use getconf_boolean.
157         * server-src/planner.c: Use getconf_boolean.
158
159 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
160         * server-src/getconf.c: Don't print BUGGY.
161         * changer-src/chg-chio.pl.in: Don't parse BUGGY.
162         * changer-src/chg-iomega.pl.in: Don't parse BUGGY.
163         * changer-src/chg-zd-mtx.sh.in: Don't parse BUGGY.
164         * man/xml-source/amgetconf.8.xml: Don't parse BUGGY.
165         * server-src/amverifyrun.sh.in: Don't parse BUGGY.
166         * server-src/amverify.sh.in: Don't parse BUGGY.
167
168 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
169         * restore-src/restore.c: Cleanup.
170         * restore-src/amrestore.c: Don't fsf if the last read return 0.
171
172 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
173         * client-src/selfcheck.c: Fix bug found by klocwork.
174         * common-src/rsh-security.c: Fix bug found by klocwork.
175         * common-src/ssh-security.c: Fix bug found by klocwork.
176         * server-src/planner.c: Fix bug found by klocwork.
177
178 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
179         * tape-src/output-tape.c (tape_tape_open): mt is declared inside #ifdef.
180
181 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
182         * server-src/amcheck.c: Fix quoting.
183
184 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
185         * client-src/clientconf.c: client_getconf* validate the type.
186         * common-src/util.c (get_conftype_*): New function.
187         * common-src/util.h (get_conftype_*): Prototype.
188         * server-src/conffile.c: getconf* validate the type.
189         * server-src/conffile.h: Use get_conftype_* function.
190
191 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
192         * client-src/clientconf.c: New AMANDATES client config option.
193         * client-src/clientconf.h: New AMANDATES client config option.
194         * client-src/amandates.c: Use AMANDATES.
195         * client-src/amandates.h: Use AMANDATES.
196         * client-src/selfcheck.c: Use AMANDATES.
197         * client-src/sendbackup-gnutar.c: Use AMANDATES.
198         * client-src/sendsize.c:: Use AMANDATES.
199         * common-src/util.h : New CONF_AMANDATES.
200         * man/xml-source/amanda-client.conf.5.xml: Document it.
201
202 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
203         * client-src/clientconf.c: New GNUTAR_LIST_DIR client config option.
204         * client-src/clientconf.h: New GNUTAR_LIST_DIR client config option.
205         * client-src/selfcheck.c: Use GNUTAR_LIST_DIR.
206         * client-src/sendbackup-gnutar.c: Use GNUTAR_LIST_DIR.
207         * client-src/sendsize.c: Use GNUTAR_LIST_DIR.
208         * common-src/util.h: New CONF_GNUTAR_LIST_DIR.
209         * man/xml-source/amanda-client.conf.5.xml: Document it.
210
211 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
212         * client-src/calcsize.c, client-src/killpgrp.c,
213           client-src/rundump.c, client-src/runtar.c,
214           client-src/selfcheck.c, client-src/sendbackup.c,
215           client-src/sendsize.c, common-src/amanda.h,
216           common-src/debug.c, oldrecover-src/amrecover.c,
217           recover-src/amrecover.c, restore-src/amfetchdump.c,
218           restore-src/amidxtaped.c, server-src/amadmin.c,
219           server-src/amcheck.c, server-src/amcleanupdisk.c,
220           server-src/amflush.c, server-src/amindexd.c,
221           server-src/amlabel.c, server-src/amlogroll.c,
222           server-src/amtape.c, server-src/amtrmidx.c,
223           server-src/amtrmlog.c, server-src/chunker.c,
224           server-src/driver.c, server-src/dumper.c,
225           server-src/getconf.c, server-src/planner.c,
226           server-src/reporter.c, server-src/taper.c: dbrename ot the config dir.
227
228 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
229         * common-src/amanda.h: Define DBG_SUBDIR_SERVER, DBG_SUBDIR_CLIENT
230                                and DBG_SUBDIR_CLIENT.
231         * amandad-src/amandad.c, changer-src/chg-scsi.c,
232           changer-src/chg-scsi-chio.c, client-src/calcsize.c,
233           client-src/killpgrp.c, client-src/rundump.c, client-src/runtar.c,
234           client-src/selfcheck.c, client-src/sendbackup.c,
235           client-src/sendsize.c,
236           oldrecover-src/amrecover.c, recover-src/amrecover.c,
237           restore-src/amfetchdump.c, restore-src/amidxtaped.c,
238           restore-src/amrestore.c, server-src/amadmin.c,
239           server-src/amcheck.c, server-src/amcleanupdisk.c,
240           server-src/amflush.c, server-src/amindexd.c,
241           server-src/amlabel.c, server-src/amlogroll.c,
242           server-src/amtape.c, server-src/amtrmidx.c,
243           server-src/amtrmlog.c, server-src/chunker.c,
244           server-src/diskfile.c, server-src/driver.c,
245           server-src/dumper.c, server-src/getconf.c,
246           server-src/infofile.c, server-src/planner.c,
247           server-src/reporter.c (dbopen): Use DBG_SUBDIR_SERVER,
248                                          DBG_SUBDIR_CLIENT or DBG_SUBDIR_CLIENT.
249
250 2006-07-25  Jean-Louis Martineau <martineau@zmanda.com>
251         * client-src/calcsize.c: Get config on argument.
252         * client-src/killpgrp.c: Get config on argument.
253         * client-src/rundump.c: Get config on argument.
254         * client-src/runtar.c: Get config on argument.
255         * client-src/sendbackup.c: Call program with config as argument.
256         * client-src/sendbackup-dump.c: Call program with config as argument.
257         * client-src/sendbackup-gnutar.c: Call program with config as argument.
258         * client-src/sendbackup.h: Add global g_options.
259         * client-src/sendsize.c: Call program with config as argument.
260
261 2006-07-23  Jean-Louis Martineau <martineau@zmanda.com>
262         * client-src/sendbackup-gnutar.c: Fix bug found by splint.
263         * client-src/sendsize.c: Fix bug found by splint.
264
265 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
266         * server-src/taper.c: Fix amfree(mem_splitbuf).
267
268 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
269         * server-src/diskfile.c, server-src/taper.c: Fix memory leak found
270                                                      by coverity.
271
272 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
273         * server-src/taper.c: Fix split_buffer allocation problem.
274
275 2006-07-22  Jean-Louis Martineau <martineau@zmanda.com>
276         * client-src/selfcheck.c, common-src/security-util.c,
277           restore-src/restore.c, server-src/diskfile.c: Fix memory leak found
278                                                         by coverity.
279
280 2006-07-20  Jean-Louis Martineau <martineau@zmanda.com>
281         * changer-src/chg-scsi.c, changer-src/scsi-changer-driver.c,
282           client-src/amandates.c, client-src/calcsize.c,
283           client-src/selfcheck.c, client-src/sendbackup.c,
284           client-src/sendsize.c, common-src/security-util.c,
285           recover-src/extract_list.c, restore-src/restore.c,
286           server-src/amindexd.c, server-src/diskfile.c,
287           server-src/driver.c, server-src/reporter.c,
288           server-src/tapefile.c, server-src/taper.c: Fix memory leak found
289                                                      by coverity.
290
291 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
292         * client-src/selfcheck.c : Read client config file.
293         * client-src/sendbackup.c: Read client config file.
294         * client-src/sendsize.c  : Read client config file.
295
296 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
297         * amandad-src/amandad.h (g_option_t): Add 'char *config';
298         * amandad-src/amandad_util.c (parse_g_options): Parse 'config='.
299         * common-src/amfeatures.h (fe_req_options_config): New amfeature.
300         * common-src/amfeatures.c (am_init_feature_set):
301                                                     set fe_req_options_config.
302         * server-src/amcheck.c: Send 'config=' in global options.
303         * server-src/dumper.c: Send 'config=' in global options.
304         * server-src/planner.c: Send 'config=' in global options.
305
306 2006-07-19  Jean-Louis Martineau <martineau@zmanda.com>
307         * amandad-src/amandad.c: Call dbopen("amandad").
308         * changer-src/chg-scsi.c: Call dbopen("server").
309         * changer-src/chg-scsi-chio.c: Call dbopen("server").
310         * client-src/calcsize.c: Call dbopen("client").
311         * client-src/getfsent.c: Call dbopen(NULL).
312         * client-src/killpgrp.c: Call dbopen("client").
313         * client-src/rundump.c: Call dbopen("client").
314         * client-src/runstar.c: Call dbopen("client").
315         * client-src/runtar.c: Call dbopen("client").
316         * client-src/selfcheck.c: Call dbopen("client").
317         * client-src/sendbackup.c: Call dbopen("client").
318         * client-src/sendsize.c: Call dbopen("client").
319         * common-src/amanda.h (dbopen, debug_open): Take a 'char * subdir'
320                                                     argument.
321         * common-src/bsd-security.c: Call dbopen(NULL).
322         * common-src/debug.c (debug_open): Call debug_setup_1(subdir)
323         * common-src/debug.c (debug_setup_1): Take a subdir argument,
324                                               add it to dbgdir.
325         * common-src/file.c: Call dbopen(NULL).
326         * common-src/statfs.c: Call dbopen(NULL).
327         * common-src/token.c: Call dbopen(NULL).
328         * oldrecover-src/amrecover.c: Call dbopen("client").
329         * recover-src/amrecover.c: Call dbopen("client").
330         * restore-src/amfetchdump.c: Call dbopen("server").
331         * restore-src/amidxtaped.c: Call dbopen("server").
332         * restore-src/amrestore.c: Call dbopen("server").
333         * server-src/amadmin.c: Call dbopen("server").
334         * server-src/amcheck.c: Call dbopen("server").
335         * server-src/amcleanupdisk.c: Call dbopen("server").
336         * server-src/amflush.c: Call dbopen("server").
337         * server-src/amindexd.c: Call dbopen("server").
338         * server-src/amlabel.c: Call dbopen("server").
339         * server-src/amlogroll.c: Call dbopen("server").
340         * server-src/amtape.c: Call dbopen("server").
341         * server-src/amtrmidx.c: Call dbopen("server").
342         * server-src/amtrmlog.c: Call dbopen("server").
343         * server-src/chunker.c: Call dbopen("server").
344         * server-src/diskfile.c: Call dbopen("server").
345         * server-src/driver.c: Call dbopen("server").
346         * server-src/dumper.c: Call dbopen("server").
347         * server-src/getconf.c: Call dbopen("server").
348         * server-src/infofile.c: Call dbopen("server").
349         * server-src/planner.c: Call dbopen("server").
350         * server-src/reporter.c: Call dbopen("server").
351         * server-src/taper.c: Call dbopen("server").
352
353 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
354         * server-src/chunker.c: Fix rt computation.
355         * server-src/dumper.c: Fix dumptime computation.
356         * server-src/taper.c: Fix rt computation.
357
358 2006-07-17  Jean-Louis Martineau <martineau@zmanda.com>
359         * NEWS: Klocwork defects fixed.
360         * NEWS: Coverity defect fixed.
361
362 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
363         * Makefile.am (pkgdata_DATA): add ReleaseNotes.
364
365 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
366         * Amanda 2.5.1b1 released.
367         * configure.in: Remove -Werror.
368
369 2006-07-14  Jean-Louis Martineau <martineau@zmanda.com>
370         * client-src/sendsize.c: Use read/write to copy tar snapshot file.
371         * client-src/sendbackup-gnutar.c: Ditto.
372
373 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
374         * common-src/stream.c (stream_accept): Loop 5 times on select error.
375
376 2006-07-13  Jean-Louis Martineau <martineau@zmanda.com>
377         * server-src/dumper.c: The datafd is not scheduled at start,
378                                add test for it.
379         * common-src/stream.c (tcpm_recv_token): Set error_msg.
380         
381 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
382         * common-src/util.c (free_new_argv): Move out of
383                                              #ifndef HAVE_LIBREADLINE.
384
385 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
386         * server-src/amadmin.c (tape): Report the number of new tapes instead
387                                        of "a new tape" for each tapes.
388         * server-src/reporter.c (output_tapeinfo): Ditto.
389
390 2006-07-12  Jean-Louis Martineau <martineau@zmanda.com>
391         * server-src/taperscan.c (changer_taper_scan): Report error from
392                                                        changer_find.
393
394 2006-07-11  John Franks jrfranks@zmanda.com
395         * configure.in: Fix multiple definition of readline during cygwin
396           compile.
397
398 2006-07-11  Paddy Sreenivasan <paddy@zmanda.com>
399         * common-src/pipespawn.c : Fixed compiler warning
400
401 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
402         * man/xml-source/amtapetype.8.xml: No default value for -e.
403
404 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
405         * common-src/util.c: Don't conftoken_ungetc(ch) if ch == EOF.
406         * server-src/reporter.c: Check tp == NULL.
407
408 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
409         * tape-src/tapetype.c: Make -e an needed argument.
410         * man/xml-source/amtapetype.8.xml: Update man page.
411
412 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
413         * changer-src/chg-zd-mtx.sh.in: Remove .conf from changerfile.
414
415 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
416         * recover-src/extract_list.c (check_file_overwrite): Renamed from
417                                                           check_file_overwite.
418         * recover-src/extract_list.c (check_file_overwrite): Do the path check
419           in the correct order (from left ro right).
420
421 2006-07-11  Jean-Louis Martineau <martineau@zmanda.com>
422         * common-src/file.c (debug_agets): Remove call to dbprintf.
423
424 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
425         * recover-src/extract_list.c (add_to_unlink_list, do_unlink_list,
426                       free_unlink_list): New function to manage unlink_list.
427         * recover-src/extract_list.c (check_file_overwite): Check all
428           component of an EXTRACT_LIST_ITEM, if a component is not a
429           directory, add it to the unlink_list.
430         * recover-src/extract_list.c (extract_files): Call do_unlink_list and
431           free_unlink_list, rename buf to cwd.
432
433 2006-07-10  Jean-Louis Martineau <martineau@zmanda.com>
434         * common-src/pipespawn.c (pipespawnv_passwd): Add prototype.
435         * common-src/pipespawn.c (pipespawn, pipespawn): Remove 2 NULL
436            parameters to the pipespawnv_passwd call.
437         * common-src/pipespawn.c (pipespawnv_passwd): Remove passwdvar and
438            passwdfd parameters, add passwdvar and local variable.
439            Don't use memcpy to set passwdfd.
440         * common-src/pipespawn.h (pipespawnv_passwd): Remove prototype.
441
442 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
443         * common-src/security-util.c (stream_read_sync_callback): Remove bogus
444           call of callback.
445
446 2006-07-07  Kevin Till  <ktill@zmanda.com>
447         * common-src/bsd-security.c: use STREAM_BUFSIZE instead of -1
448         * common-src/bsdtcp-security.c: ditto
449         * common-src/krb4-security.c: ditto 
450         * common-src/security-util.c: ditto
451         * restore-src/amidxtaped.c: ditto
452
453 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
454         * common-src/util.c (get_conftoken): Remove duplicate conftoken_ungetc.
455
456 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
457         * common-src/security-util.c: Validate and report big packet size.
458
459 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
460         * oldrecover-src/Makefile.am: Typo.
461
462 2006-07-07  Jean-Louis Martineau <martineau@zmanda.com>
463         * client-src/sendsize.c: Typo.
464
465 2006-07-06  John Franks <jrfranks@zmanda.com>
466         * common-src/genversion.c:
467                 Remove reference to error().  This causes a compile
468                 error on cygwin.
469
470 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
471         Klocwork bug 128, 170, 182, 470, 517
472         * changer-src/chg-scsi.c: Validate drivenum, check count_file.
473         * client-src/sendsize.c: Validate level.
474         * oldrecover-src/amrecover.c: Use tm.
475         * recover-src/amrecover.c: Use tm.
476         * server-src/infofile.c (delete_txinfofile): Use local variable.
477
478 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
479         * server-src/taper.c: Check for cur_filename.
480         * tape-src/output-file.c: Use vstrextend.
481         * tape-src/tapeio.c: Check for r.
482
483 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
484         Fix splint warning
485         * oldrecover-src/extract_list.c (clean_tape_list): Cleanup for splint.
486         * recover-src/extract_list.c (clean_tape_list): Cleanup for splint.
487         * server-src/amindexd.c: Add a /*@i@*/.
488         * server-src/conffile.c: Cast to off_t for conf_init_am64.
489         * server-src/driver.c: Cast to unsigned to print pid_t.
490         * server-src/find.c (strip_failed_chunks): Cleanup for splint.
491
492 2006-07-06  Jean-Louis Martineau <martineau@zmanda.com>
493         Klocwork bug 114
494         * server-src/amindexd.c: Free their_feature_string.
495         Klocwork bug 130
496         * restore-src/amrestore.c: Test maximum value for rst_flags->blocksize.
497         Klocwork bug 294
498         * common-src/genversion.c: Check NULL result of malloc.
499         Klocwork bug 294
500         * client-src/selfcheck.c: Check NULL result of fdopen.
501         Klocwork bug 539, 542
502         * oldrecover-src/extract_list.c: Fix pfn2->next = fn2.
503         * recover-src/extract_list.c   : Ditto
504         Klocwork bug 268, 272, 543, 544
505         * oldrecover-src/extract_list.c: Check for cmd != NULL.
506         * recover-src/extract_list.c   : Ditto
507         Klocwork bug 510
508         * restore-src/amidxtaped.c: Check for argv != NULL.
509         Klocwork bug 435
510         * changer-src/scsi-linux.c: Make buffer one larger.
511         Klocwork bug 520
512         * changer-src/scsi-changer-driver.c (OpenDevice): Validate parameters.
513         Klocwork bug 182
514         * changer-src/chg-scsi.c (clean_tape): Check usagetime != NULL.
515
516 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
517         Klocwork bug 551
518         * regex-src/regcomp.c (allocset): Check for p->g->sets
519                                                 and p->g->setbits
520
521 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
522         Klocwork bug 169, 170, 181
523         * changer-src/chg-scsi.c: Validate input.
524
525 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
526         Klocwork bug 282
527         * common-src/file.c (rmpdir): Check for p == NULL.
528
529 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
530         Klocwork bug 524
531         * common-src/dgram.c (dgram_send_addr): Set addr_save earlier.
532
533 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
534         Klocwork bug 495
535         * server-src/taper.c (file_reader_side): Maximum value for
536                                                  fallback_splitsize.
537
538 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
539         Klocwork bug 532
540         * recover-src/display_commands.c: Check for cmd != NULL.
541         * oldrecover-src/display_commands.c: Ditto
542
543 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
544         Klocwork bug 410
545         * restore-src/restore.c (restore): Check for tmp_filename.
546
547 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
548         Klocwork bug 234
549         * server-src/driver.c: Check for h and activehd >= 0.
550
551 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
552         Klocwork bug 338 and 390
553         * server-src/reporter.c (handle_partial, handle_strange): Check result
554           of handle_success.
555
556 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
557         Klocwork bug 558
558         * client-src/selfcheck.c (check_options, check_disk): Check for
559                                                               calcprog == NULL
560
561 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
562         Klocwork bug 521
563         * client-src/clientconf.c (add_client_conf): Check result of realloc.
564
565 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
566         Klocwork bug 447 and 449
567         * restore-src/restore.c: Check for valid sendbackup request.
568
569 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
570         Klocwork bug 407
571         * restore-src/restore.c (restore): Set statinfo.st_size.
572
573 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
574         Klocwork bug 189
575         * common-src/file.c (sanitise_filename): Never return NULL.
576
577 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
578         * amandad-src/Makefile.am:    Remove tape-src and libamtape.
579         * client-src/Makefile.am:     Remove tape-src and libamtape.
580         * man/Makefile.am:            Cleanup.
581         * oldrecover-src/Makefile.am: Remove tape-src and libamtape.
582         * recover-src/Makefile.am:    Remove tape-src and libamtape.
583         
584 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
585         Klocwork bug 236
586         * server-src/driver.c (handle_dumper_result): Check for
587                                                       dumper->ev_read != NULL.
588
589 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
590         Klocwork bug 553
591         * restore-src/restore.c (search_a_tape): Check for desired_tape == NULL.
592
593 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
594         Klocwork bug 556 and 557
595         * common-src/security-util.c (bsd_recv_security_ok): Check result of
596           strtok, check service == NULL.
597
598 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
599         Klocwork bug 161
600         * client-src/calcsize.c (calc_load_file): Return NULL if fopen fail.
601         * client-src/calcsize.c (main):  check NULL result from calc_load_file.
602
603 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
604         Klocwork bug 84
605         * server-src/amflush.c (main): Check return of lookup_disk.
606
607 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
608         Klocwork bug 62, 85, 459, 463, 466, 469, 555, 559
609         * common-src/security-util.c: Check result of fdopen.
610         * client-src/sendsize.c     : Ditto.
611         * server-src/amcheck.c      : Ditto.
612         * server-src/amflush.c      : Ditto.
613
614 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
615         Klocwork bug 159, 375, 377, 379, 508, 509, 513, 519
616         * common-src/bsd-security.c:    Replace malloc by alloc.
617         * common-src/bsdudp-security.c: Ditto
618         * common-src/genversion.c:      Ditto
619         * recover-src/amrecover.c:      Ditto
620         * restore-src/amidxtaped.c:     Ditto
621         * server-src/reporter.c:        Ditto
622
623 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
624         Klocwork bug 562 and 475
625         * recover-src/set_commands.c (cd_dir): Check result of rindex.
626         * oldrecover-src/set_commands.c (cd_dir): ditto.
627
628 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
629         Klocwork bug 552
630         * restore-src/restore.c (load_manual_tape): Alloc space for cur_tapedev.
631
632 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
633         Klocwork bug 406
634         * restore-src/restore.c (restore): Check for final_filename.
635
636 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
637         Klocwork bug 318
638         * server-src/list_dir.c (add_dir_list_item): Check for cur_list->next.
639
640 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
641         Klocwork bug 17, 32
642         * server-src/amadmin.c (disklist_one): Check localtime return NULL.
643         * server-src/amadmin.c (info_one)    : Ditto.
644
645 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
646         Klocwork bug 2, 83, 128, 384, 478, 504, 505, 506, 517, 566, 567
647         * server-src/amadmin.c (seqdatestr): Check localtime return NULL.
648         * common-src/util.c (construct_datestamp, construct_timestamp,
649                              conf_print):         Ditto.
650         * oldrecover-src/amrecover.c (main):      Ditto.
651         * oldrecover-src/uscan.l (ll_parse_date): Ditto.
652         * recover-src/amrecover.c (main):         Ditto.
653         * recover-src/uscan.l (ll_parse_date):    Ditto.
654         * server-src/amflush.c (main):            Ditto.
655         * server-src/reporter.c (handle_success): Ditto.
656
657 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
658         Klocwork bug 470
659         * client-src/sendsize.c (add_diskest): Check for level value.
660
661 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
662         Klocwork bug 372
663         * server-src/reporter.c (nicedate): Check month value.
664
665 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
666         Klocwork bug 20
667         * server-src/amadmin.c (tape): Limit nb_days to 10000.
668
669 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
670         Klocwork bug 21
671         * server-src/amadmin.c (balance): Test 'later' after it is set.
672
673 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
674         * common-src/alloc.c (internal_vstralloc): Don't return NULL.
675
676 2006-07-05  Jean-Louis Martineau <martineau@zmanda.com>
677         * server-src/infofile.c (open_txinfofile): Use local variable.
678
679 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
680         * restore-src/restore.c (label_of_current_slot): Close the tapefd if
681                                                          the label mismatch.
682
683 2006-06-29  Jean-Louis Martineau <martineau@zmanda.com>
684         * server-src/find.c (strip_failed_chunks):
685           - Get a **output_find as parameter.
686           - Check the label before remove a valid chunk.
687           - Memory management fix.
688
689 2006-06-28  Jean-Louis Martineau <martineau@zmanda.com>
690         * common-src/security-util.c: Improve message for .amandahosts.
691
692 2006-06-27  Ian Turner <ian@zmanda.com>
693         * common-src/fileheader.c: Fix a bug where spanned dumps would 
694           always fail.
695
696 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
697         * server-src/amcheck.c: Fix test for holdingdisk negative size.
698
699 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
700         * configure.in: Don't set DEFAULT_TAPE_DEVICE if it is not set.
701         * client-src/clientconf.c: Work DEFAULT_TAPE_DEVICE not set.
702         * common-src/genversion.c: Work DEFAULT_TAPE_DEVICE not set.
703         * recover-src/amrecover.c: Work DEFAULT_TAPE_DEVICE not set.
704         * server-src/getconf.c:    Work DEFAULT_TAPE_DEVICE not set.
705
706 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
707         Patch by Paul Bijnens
708         * server-src/amcheck.c: Check for access(hdp->diskdir, X_OK).
709
710 2006-06-27  Jean-Louis Martineau <martineau@zmanda.com>
711         * server-src/conffile.c (getconf_byname): Check for kt->keyword != NULL.
712         * client-src/clientconf.c (client_getconf_byname): Ditto
713
714 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
715         * recover-src/extract_list.c: check_file_overwite.
716
717 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
718         * recover-src/extract_list.c: Do the cleanup of the extract list
719                                       at the extraction time
720         * oldrecover-src/extract_list.c: Ditto.
721
722 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
723         * NEWS: Add new features.
724         * ReleasesNotes: New files.
725
726 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
727         * docs/Makefile.am (pkgdata_DATA): Add amaespipe.8.txt amcrypt.8.txt
728           amcrypt-asym-ossl.8.txt amcrypt-ossl.8.txt amfetchdump.8.txt
729         * docs/amaespipe.8.txt: New file.
730         * docs/amcrypt.8.txt: New file.
731         * docs/amcrypt-asym-ossl.8.txt: New file.
732         * docs/amcrypt-ossl.8.txt: New file.
733         * docs/amfetchdump.8.txt: New file.
734
735 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
736         * docs/Makefile.am (pkgdata_DATA): Add howto-auth.txt.
737         * docs/howto-auth: Documentation on auth.
738         * docs/*.txt: Update from xml-docs
739
740 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
741         * man/xml-source/amanda.conf.5.xml: Add notes about bsdudp and bsdtcp.
742         * man/xml-source/amanda-client.conf.5.xml: Ditto.
743
744 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
745         * recover-src/extract_list.c (is_empty_dir): New function.
746         * recover-src/extract_list.c: Print a warning if cwd is not empty.
747
748 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
749         * server-src/amadmin.c: Allow 'p' and 'P' in --sort argument.
750
751 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
752         * server-src/amadmin.c: Print errstr returned by match_disklist.
753         * server-src/amcheck.c: Print errstr returned by match_disklist.
754         * server-src/amflush.c: Print errstr returned by match_disklist.
755         * server-src/diskfile.c (match_disklist): Return an error str.
756         * server-src/diskfile.h (match_disklist): New prototype.
757         * server-src/planner.c: Print errstr returned by match_disklist.
758         * server-src/reporter.c: Accept host/disk as arguments.
759
760 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
761         * server-src/amindexd.c (uncompress_file): Set LC_ALL=C before
762                                                    executing sort.
763
764 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
765         * server-src/driver.c (wait_children, kill_children): New function.
766         * server-src/driver.c (wait_for_children): Use wait_children and
767                                                    kill_children.
768         * server-src/driver.c (main): Use wait_children.
769         * server-src/driverio.c (taper_cmd, chunker_cmd): Close socket on QUIT
770                                                           or ABORT command.
771
772 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
773         * common-src/amfeatures.c (am_init_feature_set): Set
774           fe_amrecover_feedme_tape.
775         * common-src/amfeatures.h (fe_amrecover_feedme_tape): New amfeatures.
776         * common-src/fileheader.c (print_header): Fix.
777         * recover-src/extract_list.c: Use fe_amrecover_feedme_tape.
778         * restore-src/amfetchdump.c: Print error if get_lock == 0.
779         * restore-src/amidxtaped.c: Call send_message if get_lock == 0.
780         * restore-src/restore.c: Split search_tapes in 5 functions.
781         * restore-src/restore.h (send_message): prototype.
782
783 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
784         * man/xml-source/amfetchdump.8.xml: Document -O and new -o.
785         * restore-src/amfetchdump.c: Replace -o by -O
786
787 2006-06-22  Jean-Louis Martineau <martineau@zmanda.com>
788         * client-src/clientconf.c (parse_client_conf): Fix segmentation fault.
789         * server-src/conffile.c (parse_server_conf): Fix segmentation fault.
790
791 2006-06-21  Kevin Till <ktill@zmanda.com>
792         * changer-src/chg-juke.sh.in
793         * changer-src/chg-manual.sh.in
794         * changer-src/chg-mcutil.sh.in
795         * changer-src/chg-multi.sh.in
796         * changer-src/chg-mtx.sh.in
797         * changer-src/chg-rait.sh.in
798         * changer-src/chg-disk.sh.in
799         * changer-src/chg-zd-mtx.sh.in
800         * changer-src/chg-null.sh.in
801         * changer-src/chg-chs.sh.in
802         * client-src/patch-system.sh.in
803         * amplot/amplot.sh.in
804         * server-src/amcrypt-ossl.sh.in
805         * server-src/amrmtape.sh.in
806         * server-src/amcleanup.sh.in
807         * server-src/amverifyrun.sh.in
808         * server-src/amaespipe.sh.in
809         * server-src/amdump.sh.in
810         * server-src/amcrypt.sh.in
811         * server-src/amcrypt-ossl-asym.sh.in
812         * server-src/amcheckdb.sh.in
813         * server-src/amfreetapes.sh.in
814         * server-src/amverify.sh.in
815          change /bin/sh to @SHELL@ for configure to pick up the correct
816          shell. Sourceforge bug 1466655
817         * man/xml-source/amcrypt-ossl-asym.8.xml: it's backup-privkey.pem
818
819 2006-06-20  Kevin Till <ktill@zmanda.com>
820         * common-src/security-util.c: ignore EINTR in net_writev
821           patch by Jean-Louis Martineau.
822
823 2006-06-20  John Franks <jrfranks@zmanda.com>
824         * server-src/conffile.c:
825                 Remove Duplicate keyword table entries and alphabetize
826                 to make future duplicates easier to spot...
827
828         * server-src/taper.c:
829                 Fix compiler warnings when no mmap function is present.
830
831 2006-06-20  John Franks <jrfranks@zmanda.com>
832         * server-src/diskfile.c:
833                 Default boolean values without parameters to yes if
834                 no value is present in configuration file.  This
835                 maintains backward compatibility and is logical since
836                 a value such as "index" reads as an assertion of fact.
837
838 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
839         * docs/wishlist.txt: Remove features done in 2.5.0/2.5.1
840
841 2006-06-19  Jean-Louis Martineau <martineau@zmanda.com>
842         * man/xml-source/amanda.conf.5.xml: amrecover_check_label and
843                                             amrecover_do_fsf default to yes.
844         * server-src/conffile (init_dumptype_defaults): DUMPTYPE_INDEX set to 1.
845         * server-src/diskfile.c (parse_diskline): index set from
846                                                   dumptype_get_index.
847
848 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
849         * server-src/amstatus.pl.in: Match quotes in DONE line.
850
851 2006-06-16  Kevin Till <ktill@zmanda.com>
852         * example/amanda-client.conf.in:
853          correct DEFAULT_TAPE_SERVER/DEFAULT_SERVER
854         * server-src/amcrypt-ossl-asym.sh.in:
855           set RANDFILE for openssl to place entropy file.
856         * server-src/amcrypt-ossl.sh.in: ditto
857
858 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
859         * amandad-src/amandad.c   : Use strcasecmp to compare auth.
860         * client-src/selfcheck.c  : Ditto
861         * client-src/sendbackup.c : Ditto
862         * restore-src/amidxtaped.c: Ditto
863         * server-src/amindexd.c   : Ditto
864
865 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
866         * server-src/amindexd.c (reply, lreply, fast_lreply): Correct use
867           of arglist_start and arglist_end..
868         * server-src/amindexd.c (lreply_backend): Remove function.
869
870 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
871         * common-src/bsd-security.c (stream_read_callback): Send error to the
872                                                             callback.
873
874 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
875         * recover-src/extract_list.c: Typo.
876         * restore-src/restore.c: Typo.
877
878 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
879         * client-src/clientconf.c: Allow include.
880         * client-src/clientconf.c (read_confline): Don't crash.
881         * server-src/conffile.c (read_confline): Don't crash.
882         * recover-src/amrecover.c: Exit if error in conf file.
883
884 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
885         * common-src/arglist.h: Typo.
886         * recover-src/extract_list.c: handle MESSAGE from amidxtaped.
887
888 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
889         * common-src/amfeatures.c (am_init_feature_set): Set
890                                                          fe_amrecover_message.
891         * common-src/amfeatures.h (am_feature_e): Add fe_amrecover_message.
892         * common-src/arglist.h (printf_arglist_function3): Prototype.
893
894 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
895         * restore-src/restore.c (send_message): New function that send message
896                                                 to stderr and/or amrecover.
897         * restore-src/restore.c: Call send_message on some error path.
898
899 2006-06-16  Jean-Louis Martineau <martineau@zmanda.com>
900         * common-src/event.c (event_loop_wait, event_wait): Take an
901                                          event_handle_t * as parameter.
902         * common-src/event.h: New prototype.
903         * common-src/bsd-security.c: Call event_wait(bs->ev_read).
904         * common-src/krb4-security.c: Call event_wait(ks->ev_read).
905         * common-src/krb5-security.c: Call event_wait(ks->ev_read).
906         * common-src/security-util.c: Call event_wait(ss->ev_read).
907
908 2006-06-15  Kevin Till <ktill@zmanda.com>
909         * man/xml-source/amcrypt-ossl-asym.8.xml: it's .am_passphrase
910         * server-src/amcrypt-ossl-asym.sh.in: export PATH
911         * server-src/amcrypt-ossl.sh.in: export PATH
912
913
914 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
915         * server-src/amcheck.c: -w doesn't change the test selection.
916         * man/xml-source/amcheck.8.xml
917
918 2006-06-15  Jean-Louis Martineau <martineau@zmanda.com>
919         * server-src/planner.c: Log empty disklist and no DLE selected.
920
921 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
922         * common-src/bsd-security.c: Use %u to print in_port_t data.
923         * common-src/bsdudp-security.c: Ditto.
924
925 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
926         * changer-src/chg-disk.sh.in: Return the number of slot in output of
927                                       the -info command.
928         * changer-src/chg-zd-mtx.sh.in: Ditto.
929
930 2006-06-14  Jean-Louis Martineau <martineau@zmanda.com>
931         * changer-src/chg-zd-mtx.sh.in: Accept changerfile that already
932                                         have the .conf suffix.
933
934 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
935         * amandad-src/amandad.c (s_ackwait): Resend the REP on receive of a
936                                              duplicate REQ.
937
938 2006-06-13  Jean-Louis Martineau <martineau@zmanda.com>
939         * common-src/security-util.c (bsd_recv_security_ok): Set error only
940           if we get an error.
941
942 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
943         * server-src/driver.c: usetimestamps is a warning.
944
945 2006-06-12  Kevin Till <ktill@zmanda.com>
946         * common-src/security-util.c: if host is 127.0.0.1 and either
947           localhost or localhost.domain is in .amandahost, hostmatch passes.
948         * common-src/security-util.h: update check_user_amandahosts prototype
949
950 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
951         * amandad-src/amandad.c (process_writenetfd): Close the pipe if the
952                                                       security_stream is closed.
953         * recover-src/extract_list.c: Improve message if we don't get thei
954                                       FEATURE line from amidxtaped.
955
956 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
957         * recover-src/amrecover.c: Read amanda-client.conf and
958                                    <conf>/amanda-client.conf.
959
960 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
961         * common-src/security-util.c, common-src/tapelist.c,
962           restore-src/restore.c, server-src/amcheck.c, server-src/amindexd.c,
963           server-src/amtape.c, server-src/changer.c, server-src/driver.c,
964           server-src/planner.c, server-src/taper.c,
965           server-src/taperscan.c: Fix memory leak.
966
967 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
968         * restore-src/restore.c: Fix Adding at end of list.
969
970 2006-06-12  Jean-Louis Martineau <martineau@zmanda.com>
971         * server-src/taper.c (syncpipe_putstr): Don't crash if str is NULL.
972
973 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
974         * server-src/holding.c (pick_datestamp): Fix reading user input.
975
976 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
977         * recover-src/amrecover.c (sigint_handler): Call send_command only if
978                                                     amindexd is alive.
979
980 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
981         * common-src/util.c (connect_port): ETIMEDOUT is a fatal error.
982
983 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
984         * common-src/stream.c (stream_client_internal): Get errno set
985                                                         correctly.
986         * server-src/driver.c (handle_chunker_result): Don't assert(0) on
987                               receive of a TRYAGAIN from a chunker, but set
988                               chunker->result.
989         * server-src/dumper.c: Try gethostbyname("localhost") before calling
990                                stream_client and log appropriate message.
991
992 2006-06-09  Jean-Louis Martineau <martineau@zmanda.com>
993         * server-src/amcheck.c: Report ERROR if gethostbyname("localhost")
994                                 doesn't succeed.
995
996 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
997         * client-src/clientconf.c (add_client_conf): New function to map
998                                                      normal option to their
999                                                      -o equivalent.
1000         * client-src/clientconf.h (add_client_conf): Prototype.
1001         * man/xml-source/amrecover.8.xml: Document -o.
1002         * recover-src/amrecover.c: Also read <config>/amanda-client.conf
1003
1004 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
1005         * server-src/diskfile.c (parse_diskline): Only return 0 or -1.
1006
1007 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
1008         * amandad-src/amandad.h (g_option_t): Add auth.
1009         * amandad-src/amandad_util.c (init_g_options): Set auth to NULL.
1010         * amandad-src/amandad_util.c (parse_g_options): Parse auth.
1011         * amandad-src/amandad_util.c (free_g_options): Free auth.
1012         * client-src/sendbackup.c: Get amandad_auth from command line and
1013                                    compare with REQ packet.
1014         * common-src/amfeatures.h (fe_amindexd_options_hostname,
1015                                    fe_amindexd_options_features,
1016                                    fe_amindexd_options_auth,
1017                                    fe_amidxtaped_options_hostname,
1018                                    fe_amidxtaped_options_features,
1019                                    fe_amidxtaped_options_auth): New amfeatures.
1020         * common-src/amfeatures.c (am_init_feature_set): Set new amfeatures.
1021         * recover-src/amrecover.c: Send auth in OPTIONS of req packet.
1022         * recover-src/extract_list.c: Send auth in OPTIONS of req packet.
1023         * restore-src/amidxtaped.c: Parse amandad_auth from command line.
1024                                     Get auth from OPTIONS line.
1025                                     Compare them.
1026         * server-src/amindexd.c: Parse amandad_auth from command line.
1027                                  Get auth from OPTIONS line.
1028                                  Compare them.
1029
1030 2006-06-08  Jean-Louis Martineau <martineau@zmanda.com>
1031         * common-src/util.c(connect_port): Return -2 on ECONNREFUSED error
1032                                            from connect.
1033
1034 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1035         * amandad-src/amandad.c: exec the service with the auth as parameter.
1036         * amandad-src/amandad.c(writebuf): Do no close fd.
1037         * client-src/selfcheck.c: Read the auth for the command line and
1038                                   compare with the option string.
1039         * client-src/selfcheck.c(main): Do no close 0,1,2 fd.
1040
1041 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1042         * man/xml-source/amanda.8.xml(CONFIGURATION OVERWRITE): New section.
1043         * man/xml-source/amadmin.8.xml,   man/xml-source/amcheck.8.xml,
1044           man/xml-source/amdump.8.xml,    man/xml-source/amflush.8.xml,
1045           man/xml-source/amgetconf.8.xml, man/xml-source/amlabel.8.xml,
1046           man/xml-source/amreport.8.xml,
1047           man/xml-source/amrestore.8.xml: Add -o option.
1048
1049 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1050         * common-src/util.c(get_conftoken): Merge from zmanda.
1051
1052 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1053         * common-src/util.c(get_conftoken): Remove a conftoken_ungetc.
1054
1055 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1056         * common-src/bsd-security.c (stream_read_callback): Merge with zmanda.
1057
1058 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1059         * amandad-src/amandad.c(process_writenetfd): Call security_stream_read
1060                                                      only if size > 0.
1061
1062 2006-06-07  Jean-Louis Martineau <martineau@zmanda.com>
1063         * server-src/conffile.c (lookup_interface): Fix merge error.
1064
1065 2006-06-07  John Franks <jrfranks@zmanda.com>
1066         * common-src/amanda.h:
1067                 Fix isnormal() replacement macro to indirectly
1068                 check if a floating point value is != 0.0.
1069                 This prevents compiler warnings.
1070
1071 2006-06-07  John Franks <jrfranks@zmanda.com>
1072         * common-src/util.c
1073                 Put in "/* NOTREACHED */" comments after error() calls.
1074         * server-src/diskfile.c
1075                 Change disktype index default to yes for backward compatibility.
1076
1077 2006-06-06  John Franks <jrfranks@zmanda.com>
1078         * amandad-src/amandad.c common-src/bsd-security.c:
1079                 Correct fix for infinite amandad loop.
1080
1081 2006-06-06  John Franks <jrfranks@zmanda.com>
1082         * common-src/stream.c common-src/util.c:
1083                 Lint clean again.
1084         * server-src/conffile.c:
1085                 Remove replicated line
1086
1087 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
1088         * common-src/util.c (conftoken_ungetc): Return the character.
1089         * common-src/util.c (get_conftoken): Merge to allow escape character.
1090         * common-src/util.c (read_block): Allow STRING as IDENT.
1091         * server-src/conffile.c (getconf_long, getconf_size): New function.
1092         * server-src/conffile.c: Cleanup after Merge.
1093
1094 2006-06-06  Jean-Louis Martineau <martineau@zmanda.com>
1095         * server-src/amadmin.c, server-src/amcheck.c, server-src/amflush.c,
1096           server-src/amlabel.c, server-src/amlogroll.c, server-src/amtrmidx.c,
1097           server-src/amtrmlog.c, server-src/getconf.c,
1098           server-src/reporter.c: Usage -o
1099         * server-src/amflush.c, server-src/amlogroll.c, server-src/amtrmidx.c,
1100           server-src/amtrmlog.c, server-src/chunker.c, server-src/driver.c,
1101           server-src/dumper.c, server-src/getconf.c, server-src/planner.c,
1102           server-src/reporter.c,
1103           server-src/taper.c: Add call to report_bad_conf_arg.
1104         * server-src/conffile.c(get_comprate, get_compress): Parse CONF_END.
1105
1106 2006-06-06  John Franks <jrfranks@zmanda.com>
1107         * configure.in:
1108                 Increase checking level from 1 to 2 for SUN lint.
1109         * client-src/amandates.c client-src/clientconf.c
1110           common-src/security-util.c recover-src/amrecover.c
1111           recover-src/extract_list.c regex-src/regcomp.c server-src/amcheck.c
1112           server-src/amlabel.c server-src/chunker.c server-src/conffile.c
1113           server-src/conffile.h server-src/diskfile.c server-src/diskfile.h
1114           server-src/driver.c server-src/holding.c server-src/reporter.c
1115           server-src/tapefile.c server-src/taper.c tape-src/amdd.c:
1116                 Lint clean again.
1117         * common-src/util.h common-src/util.c:
1118                 Lint clean again.
1119                 Add missing conftype size.
1120         * common-src/bsd-security.c
1121                 Fix infinte loop which consumes all /tmp space and 1/2
1122                 the CPU time when EOF is reached on socket.
1123
1124 2006-06-05  Paddy Sreenivasan <paddy@zmanda.com>
1125         * common-src/util.c: Fix warning
1126
1127 2006-06-05  Jean-Louis Martineau <martineau@zmanda.com>
1128         * restore-src/amfetchdump.c, server-src/amcheck.c,
1129           server-src/amcheckdb.sh.in, server-src/amcleanup.sh.in,
1130           server-src/amdump.sh.in, server-src/amflush.c,
1131           server-src/amlabel.c, server-src/amlogroll.c,
1132           server-src/amtrmidx.c, server-src/amtrmlog.c,
1133           server-src/chunker.c, server-src/conffile.c,
1134           server-src/diskfile.c, server-src/driver.c,
1135           server-src/driverio.c, server-src/dumper.c,
1136           server-src/getconf.c, server-src/planner.c,
1137           server-src/reporter.c, server-src/taper.c,
1138           server-src/taperscan.c: Allow -o options and some memory fix.
1139         * server-src/conffile.c(lookup_dumptype, lookup_tapetype,
1140           lookup_interface): Use strcasecmp.
1141
1142 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
1143         * common-src/stream.c (stream_client_internal): Use connect_portrange.
1144         * common-src/util.c (connect_portrange): First, try to connect with a
1145                                                  port already used.
1146         * common-src/util.c (connect_port): Try to connect with a specific port.
1147         * common-src/util.h: Cleanup.
1148
1149 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
1150         * server-src/reporter.c: Remove empty if.
1151
1152 2006-06-02  Jean-Louis Martineau <martineau@zmanda.com>
1153         * common-src/util.c (read_block): Don't read CONF_NL aftre the '{'.
1154         * server-src/conffile.c(get_holdingdisk, get_tapetype, get_interface):
1155           Read a CONF_NL after the call to read_block.
1156         * server-src/conffile.c(read_dumptype): Read a CONF_NL if we are not
1157                                                 called from diskfile.
1158         * server-src/diskfile.c: Don't loop on empty line after read_dumptype.
1159
1160 2006-06-01  Kevin Till  <ktill@zmanda.com>
1161         * server-src/amcrypt-ossl.sh.in: symmetric encrypt script using openSSL.
1162           Thanks to Ben Slusky.
1163         * server-src/amcrypt-ossl-asym.sh.in: public-ley encrypt script using openSSL.
1164         * man/xml-source/amcrypt-ossl.8.xml: man page
1165         * man/xml-source/amcrypt-ossl-asym.8.xml: man page
1166         * configure.in: ditto
1167         * man/Makefile.am: ditto
1168         * man/entities/global.entities: ditto
1169         * server-src/Makefile.am: ditto
1170
1171 2006-06-01  John Franks <jfranks@zmanda.com>
1172         Eliminate Cygwin compile warnings.
1173         * client-src/getfsent.c:  Quiet unused parameter warnings.
1174         * client-src/selfcheck.c: Quiet unused parameter warnings.
1175         * common-src/security-util.h: Make hostname const char *.
1176
1177 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1178         * server-src/amcheck.c: holdingdisk_get_disksize() return an off_t.
1179         * server-src/find.c: result should be ssize_t.
1180
1181 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1182         * common-src/amanda.h: Remove am64_t.
1183         * client-src/clientconf.c, client-src/clientconf.h, common-src/util.c,
1184           common-src/util.h, server-src/conffile.c, server-src/conffile.h:
1185           Second pass of config cleanup, add function to parse -o argument.
1186         * recover-src/amrecover.c: -o command argument.
1187         * restore-src/restore.c: Use off_t instead of am64_t.
1188         * server-src/amadmin.c: New config subcommand. -o command argument.
1189         * server-src/amlabel.c: Fix memory leak.
1190         * server-src/diskfile.c: Fix memory leak.
1191         * server-src/diskfile.h: Rename no_hold to to_holdingdisk.
1192         * server-src/driver.c: Many.
1193         * server-src/planner.c: am64_t to off_t.
1194
1195 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1196         This is the first pass of a general rewrite of configuration file
1197         parsing, It will now use array to store all options.
1198
1199         * client-src/clientconf.c:
1200         * client-src/clientconf.h:
1201         * server-src/conffile.c:
1202         * server-src/conffile.h:
1203         * common-src/util.c: Many new functions.
1204         * common-src/util.h:
1205
1206         * restore-src/amidxtaped.c, server-src/amcheck.c,
1207           server-src/amcleanupdisk.c, server-src/amlabel.c,
1208           server-src/diskfile.c, server-src/driver.c, server-src/driverio.c,
1209           server-src/find.c, server-src/holding.c, server-src/planner.c,
1210           server-src/reporter.c,
1211           server-src/taper.c: Use new macro to get configuration option.
1212
1213 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1214         * amandad-src/amandad.c, client-src/amandates.c, client-src/noop.c,
1215           client-src/selfcheck.c, client-src/sendsize.c,
1216           common-src/bsd-security.c, common-src/bsdtcp-security.c,
1217           common-src/bsdudp-security.c, common-src/fileheader.c,
1218           common-src/rsh-security.c, common-src/security-util.c,
1219           common-src/security-util.h, common-src/ssh-security.c,
1220           recover-src/extract_list.c, server-src/amcheck.c,
1221           server-src/amindexd.c, server-src/amlogroll.c,
1222           server-src/diskfile.c, server-src/driver.c, server-src/dumper.c,
1223           server-src/find.c, server-src/logfile.c, server-src/planner.c,
1224           server-src/reporter.c,
1225           server-src/tapefile.c: Fix memory and fd leak.
1226
1227 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1228         * server-src/find.c (search_holding_disk): Take the datestamp from the
1229           file, not the directory name, otherwise usetimestamps=no doesn't
1230           work.
1231
1232 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1233         * common-src/stream.c (stream_server): New priv parameter if we want
1234                                                a reserved port. Don't try to
1235                                                get a reserved port if priv==0.
1236         * common-src/stream.h (stream_server): New prototype.
1237         * common-src/bsd-security.c: Call stream_server with priv==0.
1238         * common-src/krb4-security.c: Call stream_server with priv==1.
1239         * common-src/security-util.c: Call stream_server with priv==0.
1240         * restore-src/amidxtaped.c: Call stream_server with priv==0.
1241         * server-src/chunker.c: Call stream_server with priv==0.
1242         * server-src/taper.c: Call stream_server with priv==0.
1243
1244 2006-06-01  Jean-Louis Martineau <martineau@zmanda.com>
1245         * server-src/diskfile.c: Return -1 if open of diskfile failed.
1246         * server-src/driver.c: Change message if didn't get a DATE line.
1247         * server-src/reporter.c: Ignore faillure in reading amanda.conf
1248                                  disklist and tapelist.
1249
1250 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
1251         * man/xml-source/amanda.8.xml: Documents service in .amandahosts.
1252
1253 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
1254         Previous patch doesn't work because 'make -j2' will use fd 3.
1255         * amandad-src/Makefile.am: Use a temporary file for output of
1256                                    'make listlibsrc'.
1257         * changer-src/Makefile.am: Ditto.
1258         * client-src/Makefile.am: Ditto.
1259         * common-src/Makefile.am: Ditto.
1260         * oldrecover-src/Makefile.am: Ditto.
1261         * recover-src/Makefile.am: Ditto.
1262         * restore-src/Makefile.am: Ditto.
1263         * server-src/Makefile.am: Ditto.
1264         * tape-src/Makefile.am: Ditto.
1265
1266 2006-05-29  Jean-Louis Martineau <martineau@zmanda.com>
1267         * amandad-src/Makefile.am: 'make listlibsrc' send it's ouput to fd 3.
1268         * changer-src/Makefile.am: Ditto.
1269         * client-src/Makefile.am: Ditto.
1270         * common-src/Makefile.am: Ditto.
1271         * oldrecover-src/Makefile.am: Ditto.
1272         * recover-src/Makefile.am: Ditto.
1273         * restore-src/Makefile.am: Ditto.
1274         * server-src/Makefile.am: Ditto.
1275         * tape-src/Makefile.am: Ditto.
1276
1277 2006-05-28  Paddy Sreenivasan <paddy@zmanda.com>
1278         * tape-src/tapeio.c : Fixed warnings
1279         * tape-src/output-rait.c : Fixed warnings
1280         * tape-src/output-null.c : Fixed warnings
1281         * tape-src/output-file.c : Fiexed warnings
1282         * recover-src/amrecover.c: Fixed warnings
1283         * recover-src/extract_list.c : Fixed warnings
1284         * server-src/amadmin.c : Fixed warnings
1285         * server-src/driver.c : Fixed warnings
1286         * server-src/infofile.c : Fixed warnings
1287
1288 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1289         * server-src/conffile.c (read_dumptype): Parse SSH_KEYS.
1290
1291 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1292         * common-src/security-util.c (udp_inithandle): Remove bad merge.
1293         * server-src/amindexd.c: Improve error message.
1294         * server-src/planner.c: Add a space in output.
1295
1296 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1297         * server-src/conffile.c: Set dpcur.no_hold correctly,
1298                                  Fix for conffile program.
1299
1300 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1301         Allow many services to share the same tcp connection for
1302         bsdtcp/ssh/rsh.
1303         Add a security_close_connection to the security-api.
1304         * amandad-src/amandad.c (wait_30s, exit_on_qlength): New variable to
1305                                         control auth specific behaviour.
1306         * common-src/bsd-security.c: Add sec_close_connection_none.
1307         * common-src/bsdudp-security.c: Add sec_close_connection_none.
1308         * common-src/krb4-security.c: Add sec_close_connection_none.
1309         * common-src/krb5-security.c: Add sec_close_connection_none.
1310         * common-src/security.h (security_close_connection): Prototype.
1311         * common-src/security-util.h (sec_close_connection_none,
1312                                       tcpm_close_connection): Prototype.
1313         * common-src/security-util.h (struct tcp_conn): Add toclose.
1314         * common-src/security-util.h (struct sec_stream): Add closed_by_me and
1315                                                           closed_by_network.
1316         * common-src/security-util.c (sec_close_connection_none,
1317                                       tcpm_close_connection): New function.
1318         * common-src/security-util.c: Handle many services on one connection.
1319         * common-src/bsdtcp-security.c: Handle many services on one connection.
1320         * common-src/rsh-security.c: Handle many services on one connection.
1321         * common-src/ssh-security.c: Handle many services on one connection.
1322         * recover-src/amrecover.c: Add call security_close_connection.
1323         * recover-src/extract_list.c: Add call security_close_connection.
1324         * server-src/amcheck.c: Add call security_close_connection.
1325         * server-src/dumper.c: Add call security_close_connection.
1326
1327 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1328         * common-src/security-util.c (bsd_prefix_packet): We need the username
1329           of the getuid() user.
1330
1331 2006-05-26  Jean-Louis Martineau <martineau@zmanda.com>
1332         * common-src/fileheader.c: Parse datestamp on F_TAPEEND.
1333         * restore-src/amrestore.c: Set read_result to the result of
1334                                    read_file_header.
1335         * restore-src/restore.c (read_file_header): Return a ssize_t.
1336                         Rename bytes_read by read_result.
1337                         Set read_result to the result of read_file_header.
1338         * restore-src/restore.h (read_file_header): New prototype.
1339
1340 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1341         * server-src/taperscan.c: Replace bogus newvstralloc by vstrextend.
1342
1343 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1344         * client-src/getfsent.c (print_entry): Add prototype.
1345         * common-src/token.c (main): Shut up compiler warning.
1346         * server-src/infofile.c (dump_rec, dump_db): Add prototype.
1347
1348 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1349         * amandad-src/amandad.c, common-src/bsd-security.c,
1350           common-src/bsdtcp-security.c, common-src/bsdudp-security.c,
1351           common-src/event.c, common-src/krb5-security.c,
1352           common-src/protocol.c, common-src/rsh-security.c,
1353           common-src/security-util.c, common-src/ssh-security.c,
1354           common-src/util.c, server-src/driver.c: comment debugging.
1355
1356 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1357         * common-src/security-util.c: typo.
1358         * server-src/amcheck.c: Make sure all check are done.
1359
1360 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1361         Fix for program not compiled by default.
1362         make bsdsecurity still not compile.
1363         * common-src/bsd-security.c(bind_portrange): prototype change.
1364         * common-src/Makefile.am (STANDARD_COMMON_STUFF_NOT_FILE): Add match.o.
1365         * server-src/conffile.c: Many typo.
1366         * tape-src/tapeio.c: Use OFF_T_FMT and SSIZE_T_FMT when needed, typo.
1367         
1368 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1369         * common-src/fileheader.c (validate_datestamp): Works for 8 characters
1370                                                         datestamp.
1371         * common-src/security-util.c (tcpm_send_token): netlength must be
1372                                                         uint32_t.
1373         * common-src/security-util.c (bsd_prefix_packet): Fix typo.
1374         * common-src/util.c (get_time): Don't do computation for starttime.
1375         * server-src/conffile.c (read_dumptype): Do computation for starttime.
1376
1377 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1378         * common-src/krb5-security.c (krb5_sendpkt, krb5_stream_read_sync,
1379                                       recv_token): Return ssize_t.
1380         * common-src/krb5-security.c (krb5_accept, krb5_stream_accept,i
1381                                       krb5_stream_auth): Shut up compiler.
1382         * tape-src/output-file.c: Use SSIZE_MAX instead of SSIZE_T_MAX.
1383
1384 2006-05-25  Jean-Louis Martineau <martineau@zmanda.com>
1385         * configure.in(AM_INIT_AUTOMAKE): Fix.
1386
1387 2006-05-25  John Franks <jrfranks@zmanda.com>
1388         Pass user CFLAGS correctly to machine generated code and do not
1389         enforce code quality checks on them.
1390         * configure.in:
1391           Put compiler code check flags into existing, but previously
1392           unused, AM_CFLAGS for Makefiles to pick up.  CFLAGS should
1393           now only contain mandatory flags.
1394
1395         * recover-src/Makefile.am  oldrecover-src/Makefile.am:
1396           Use CFLAGS for compiling C code generated from uparse.y and uscan.l
1397
1398 2006-05-24  John Franks <jrfranks@zmanda.com>
1399         Add support for binary path names on disk and in configuration files.
1400            (Allow spaces in filenames.)
1401
1402         Allow quoted strings for disklist entries.
1403
1404         Lint clean code using sun lint, splint and strict GCC warnings. 
1405         Type / size clean, dead code removal, portibility checks, etc.
1406         Many checks are still turned off.  See configure.in for lint flags used.
1407
1408         Increase debug output in /tmp/amanda/*debug files.
1409
1410         Set SO_REUSEADDR on sockets help avoid running out of ports.
1411
1412         * configure.in:
1413                 Added lint program discovery with specific targets for SUN lint and splint.
1414                 Check each compiler option to see if GCC supports it.
1415                 Enable more code quality warnings.
1416                 Change missing xsltproc to warning rather than error.
1417                 Define _GNU_SOURCES to build flags.
1418                 Make size_t and time_t printf format macros.
1419                 Check for isnormal() availability.
1420                 Don't install man pages if they are not built.
1421                 Fix man pages to not attempt build or install if
1422                         --without-built-manpages is set.
1423
1424         * Makefile.am amandad-src/Makefile.am changer-src/Makefile.am
1425           client-src/Makefile.am common-src/Makefile.am
1426           oldrecover-src/Makefile.am recover-src/Makefile.am
1427           restore-src/Makefile.am server-src/Makefile.am tape-src/Makefile.am:
1428                 Add lint target.
1429
1430         * common-src/amanda.h common-src/dgram.c common-src/stream.c
1431           common-src/util.c:
1432                 Keep checking for ports on all bind errors.
1433                 Delay and retry a few times if all ports are busy.
1434                 Retry bind failures after all methods fail.
1435                 increase bind checking timeout to 30 minutes.
1436
1437         * client-src/amandad.c
1438                 Issue wait when any child exits.  (Get rid of defunct processes)
1439                 Stat() index file before using system command.
1440                   (shell is not reporting failure if index is not present)
1441
1442         * recover-src/extract_list.c:
1443           Fix problem of 'add *' not adding directories.
1444           Fix problem of freeing pointer not obtained through malloc.
1445           Touch up file addition to actually use the file names
1446              retrieved when adding a directory and not the directory itself.
1447
1448         * server-src/taper.c
1449                 Strenghten error recovery for broken syncpipes and writer errors.
1450
1451         * changer-src/chg-scsi-chio.c client-src/amandates.c
1452           client-src/client_util.c client-src/findpass.c client-src/getfsent.c
1453           client-src/selfcheck.c client-src/sendbackup-gnutar.c
1454           client-src/sendbackup-star.c client-src/sendbackup.c
1455           client-src/sendsize.c common-src/bsd-security.c common-src/file.c
1456           common-src/krb5-security.c server-src/amcheck.c server-src/amindexd.c
1457           server-src/diskfile.c server-src/driver.c server-src/dumper.c
1458           server-src/holding.c server-src/infofile.c server-src/logfile.c
1459           server-src/tapefile.c:
1460                 allow empty lines in input streams.
1461
1462         * recover-src/uparse.y
1463                 print message when input is garbage.
1464
1465         * server-src/getconf.c:
1466                 Define HOSTNAME_INSTANCE if it was not already defined
1467                 for Kerberos.
1468
1469         * configure.in: Make readline warning less specific.  Readline is
1470           used by all input from terminal now.
1471
1472 2006-05-24  Kevin Till <ktill@@zmanda.com>
1473         * client-src/sendbackup.c: ignore SIGINT
1474         * common-src/ssh-security.c: add to total only when n > 0
1475         * common-src/ssh-security.c: add ssh to error,
1476           retry writev when EINTR, EAGAIN is seen
1477           to STDOUT. exit when options is chosen in template mode.
1478         * server-src/driver.c: make sure timestamp is not null
1479         * amanda/configure.in: remove template.d/amanda.conf which is a dup 
1480           of amanda-harddisk.conf
1481         * example/Makefile.am: add template.d/README
1482         * amanda-harddisk.conf.in: set tapedev
1483         * recover-src/amrecover.c: aclose socket before exit.
1484         * recover-src/extract_list.c: ditto
1485         * amanda_enterprise.spec: remove template.d/amanda.conf, add template.d/README
1486           in the failure cases. <> user input field.
1487         * server-src/amcheck.c: no quoted text is a warning
1488         * server-src/driver.c: no need to amfree qname
1489           argument. Search mtx in PATH too.
1490         * example/template.d/advanced.conf.in: fix comment for autoflush
1491         * example/template.d/advanced.conf.in: add usetimestamps
1492         * server-src/diskfile.c: to catch unsupported compress-encryption
1493           combination and abort amdump gracefully.
1494         * man/xml-source/amanda.conf.5.xml: fix syntax, add 
1495           dumptype references.  
1496         * man/xml-source/amanda.8.xml: fix syntax
1497         * configure.in:                 ditto
1498         * man/Makefile.am:              ditto
1499         * example/amanda.conf.in:       tidy up
1500         * man/xml-source/amaespipe.8.xml: add uuencode as requirement
1501         * man/xml-source/amcrypt.8.xml:   add uuencode as requirement
1502         * server-src/amcheck.c: catch dumptype misconfiguration
1503         * server-src/diskfile.c: ditto
1504         * server-src/driverio.c: ditto
1505         * server-src/planner.c:  ditto
1506         * server-src/conffile.c: check includefile before calling
1507           read_conffile_recursively
1508         * example/amanda.conf.in:       add public-key encryption dumptype example
1509         * man/xml-source/amanda.8.xml:  fix some formatting     
1510         * server-src/planner.c: adjust setuid() calling sequences so that ssh can work
1511         * server-src/dumper.c:  ditto
1512         * configure.in:              add LOW_TCPPORTRANGE for amrecover
1513         * common-src/stream.c:       use LOW_TCPPORTRANGE
1514         * server-src/amdump.sh.in:   check if config is supplied
1515         * man/xml-source/amrestore.8.xml: add notes on "-f" option
1516
1517 2006-05-24  Ian Turner <ian@zmanda.com>
1518         * configure.in: Properly document --without-xsltproc as itself, 
1519           and not the (nonexistant) option --without-built-manpages.
1520
1521 2006-05-16  John Franks <jrfranks@zmanda.com>
1522         * amandad-src/amandad.c client-src/clientconf.c common-src/bsd-security.c
1523           common-src/bsdudp-security.c common-src/dgram.c common-src/krb4-security.c
1524           common-src/krb5-security.c common-src/match.c common-src/packet.c
1525           common-src/security-util.c common-src/security-util.h
1526           common-src/security.h common-src/util.c oldrecover-src/Makefile.am
1527           oldrecover-src/set_commands.c recover-src/amrecover.c
1528           recover-src/extract_list.c server-src/conffile.c server-src/driver.c
1529           server-src/dumper.c server-src/planner.c server-src/reporter.c:
1530                 Minimal changes to get tree to compile along with some more
1531                 debugging output.
1532
1533 2006-05-15  Jean-Louis Martineau <martineau@zmanda.com>
1534         * server-src/amadmin.c (disklist_one): print spindle.
1535
1536 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1537         * commmon-src/bsd-security.c: Typo.
1538
1539 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1540         * common-src/Makefile.am (noinst_HEADERS): Add security-util.h.
1541
1542 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1543         Build a big tok_t enum for server and client config.
1544         * client-src/clientconf.c: Move many things to util.c.
1545         * client-src/clientconf.h: Remove extern variable.
1546         * common-src/util.c: Add common part of clientconf.c and conffile.c
1547         * common-src/util.h: Prototype.
1548         * server-src/conffile.c: Move many things to util.c.
1549         * server-src/diskfile.c(disk_parserror): Rename from parserror.
1550         * server-src/taper.c: Make many variable static.
1551
1552 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1553         * restore-src/restore.c: Fix use of possibly NULL input.
1554
1555 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1556         * common-src/ssh-security.c (ssh_connect): Retrieve ssh_keys from
1557                                                    configuration.
1558         * server-src/amadmin.c(disklist_one): Print ssh_keys.
1559         * server-src/conffile.c(SSH_KEYS): Parse new dumptype option.
1560         * server-src/conffile.h(dumptype_t): Add ssh_keys.
1561         * server-src/diskfile.c(parse_diskline): Copy new field.
1562         * server-src/diskfile.h(disk_t) Add ssh_keys.
1563         * server-src/driverio.c(dumper_cmd): Send dp->ssh_keys in a PORT_DUMP
1564                                              command to the dumper.
1565         * server-src/dumper.c: Parse ssh_keys in a PORT_DUMP command.
1566         * server-src/dumper.c(dumper_get_security_conf): Return the ssh_keys.
1567         * server-src/server_util.c(amhost_get_security_conf): Return the
1568                                                               ssh_keys.
1569
1570 2006-05-12  Jean-Louis Martineau <martineau@zmanda.com>
1571         * amandad-src/amandad.c: Set allow_many_services to 0 if auth=bsdtcp.
1572         * common-src/bsd-security.c: Use security-util.c.
1573         * common-src/bsdtcp-security.c: New security-api.
1574         * common-src/bsdudp-security.c: New secutity-api.
1575         * common-src/krb4-security.c: Use security-util.c.
1576         * common-src/krb5-security.c: Use security-util.c.
1577         * common-src/Makefile.am (libamanda_la_SOURCES): Add bsdtcp-security.c,
1578                                                              bsdtcp-security.c
1579                                                          and security-util.c.
1580         * common-src/protocol.c: Debuging cleanup.
1581         * common-src/rsh-security.c Use security-util.c.
1582         * common-src/security.c: Use bsdtcp_security_driver
1583                                  and bsdudp_security_driver.
1584         * common-src/security.h(accept): New prototype.
1585         * common-src/security-util.c: Many common function for security-api.
1586         * common-src/security-util.h: many prototype for security-api.
1587         * common-src/ssh-security.c Use security-util.c.
1588         * common-src/stream.c (stream_client_internal): Call connect_portrange.
1589         * common-src/util.c (make_socket): Make a socket.
1590         * common-src/util.c (connect_portrange): Make a socket, bind it and
1591                                                  connect.
1592         * common-src/util.h (connect_portrange): Prototype.
1593         * configure.in: new --with-bsdtcp-security and --with-bsdudp-security.
1594
1595 2006-05-10  Jean-Louis Martineau <martineau@zmanda.com>
1596         Patch by <amanda@inventivetechnology.at>
1597         * man/xml-source/amrecover.8.xml: Document listhost command.
1598
1599 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1600         Patch by <amanda@inventivetechnology.at>
1601         * server-src/amindexd.c: new LISTHOST command.
1602         * recover-src/set_commands.c (list_host): New function.
1603         * recover-src/amrecover.h (list_host): Prototype.
1604         * recover-src/help.c (list_host): Print help.
1605         * recover-src/uscan.l: Parse listhost command.
1606         * recover-src/uparse.y: LISTHOST command.
1607         * oldrecover-src/set_commands.c (list_host): New function.
1608         * oldrecover-src/amrecover.h (list_host): Prototype.
1609         * oldrecover-src/help.c (list_host): Print help.
1610         * oldrecover-src/uscan.l: Parse listhost command.
1611         * oldrecover-src/uparse.y: LISTHOST command.
1612
1613 2006-05-08  Ian Turner <ian@zmanda.com>
1614         * server-src/amcheck.c: Make it an error when the expected new 
1615           tape cannot be found. Thanks to Paul Bijnens
1616           <paul.bijnens@xplanation.com> for the patch and to Jason L 
1617           Tibbitts III <tibbs@math.uh.edu> for noticing this problem.
1618
1619 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1620         * driverio.h (shed_s): Add est_nsize, est_csize, degr_nsize, degr_csize
1621                                for nativa and compressed estimate size.
1622         * planner.c: Send the native and compressed estimate size to the driver.
1623         * driver.c: log with L_STATS the estimate of a successful dump.
1624         * reporter.c: Parse the L_STATS.
1625         * reporter.c(generate_bad_estimate): New function that will put in the
1626                                              NOTES section all bad estimate.
1627
1628 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1629         * configure.in (AC_CONFIG_FILES): Add oldrecover-src/Makefile.
1630         * Makefile.am (RECOVER_SUBDIRS): Add oldrecover-src.
1631         * oldrecover-src/amrecover.c: Copy of old recover-src/amrecover.c
1632         * oldrecover-src/amrecover.h: Copy of old recover-src/amrecover.h
1633         * oldrecover-src/display_commands.c: Copy of old
1634                                              recover-src/display_commands.c
1635         * oldrecover-src/extract_list.c: Copy of old recover-src/extract_list.c
1636         * oldrecover-src/help.c: Copy of old recover-src/help.c
1637         * oldrecover-src/Makefile.am: Copy of old recover-src/Makefile.am
1638         * oldrecover-src/set_commands.c: Copy of old recover-src/set_commands.c
1639         * oldrecover-src/uparse.y: Copy of old recover-src/uparse.y
1640         * oldrecover-src/uscan.l: Copy of old recover-src/uscan.l
1641         * recover-src/amrecover.c: Works with security-api.
1642         * recover-src/amrecover.h: Works with security-api.
1643         * recover-src/extract_list.c: Works with security-api.
1644
1645 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1646         * amandad-src/amandad.c: Fixup.
1647
1648 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1649         * common-src/packet.h: pkt_t.body is now a char*.
1650         * common-src/packet.c (pkt_init): Return an alloced pkt.body.
1651         * common-src/packet.c (pkt_cat): Increade pkt.body size if needed.
1652         * common-src/protocol.c: Free allocated pkt.body.
1653         * common-src/dgram.c (dgram_cat): Return int.
1654         * common-src/dgram.h (dgram_cat): New prototype.
1655         * common-src/krb5-security.c: Work with dynamicaly allocated packet
1656                                       body.
1657         * common-src/rsh-security.c: Work with dynamicaly allocated packet
1658                                      body.
1659         * common-src/ssh-security.c: Work with dynamicaly allocated packet
1660                                      body.
1661         * amandad-src/amandad.c: Work with dynamicaly allocated packet body.
1662         * server-src/amcheck.c: Don't limit packet size.
1663         * server-src/planner.c: Don't limit packet size.
1664
1665 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1666         * amandad-src/amandad.c (service_new): Apply the correct patch.
1667
1668 2006-05-08  Jean-Louis Martineau <martineau@zmanda.com>
1669         * server-src/taper.c: Fix compiler warning.
1670         * common-src/match.c: Many function get const parameters.
1671         * common-src/amanda.h: Prototype change.
1672
1673 2006-05-07  Jean-Louis Martineau <martineau@zmanda.com>
1674         * amandad-src/amandad.c (service_new): Make sur that the 3 data_read[]
1675           and the 3 data_write[] fd are not in the range DATA_FD_OFFSET to
1676           DATA_FD_OFFSET+DATA_FD_COUNT-1.
1677
1678 2006-05-05  Jean-Louis Martineau <martineau@zmanda.com>
1679         * common-src/tapelist.c (append_to_tapelist): Remove bad amfree.
1680
1681 2006-05-05  Nikhil Bandiwadekar <nikhil@zmanda.com>
1682         * server-src/conffile.c: fix to correctly handle am64 datatype
1683
1684 2006-05-04  Jean-Louis Martineau <martineau@zmanda.com>
1685         * server-src/taper.c: Write the slot number in the
1686                               'taper: wrote label' line.
1687         * server-src/amverifyrun.sh.in: Parse that line.
1688
1689 2006-05-02  Jean-Louis Martineau <martineau@zmanda.com>
1690         * amstatus.pl.in: Limit characters for hostname in setup_estimate line.
1691
1692 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
1693         * common-src/rsh-security.c: Pass "amdump amindexd amidxtaped" option
1694                                      to amandad.
1695         * common-src/ssh-security.c: Ditto.
1696
1697 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
1698         * amandad-src/amandad.c: Accept a list of services on the command line.
1699
1700 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
1701         * common-src/tapelist.c (append_to_tapelist): Fix memory leak.
1702
1703 2006-04-27  Jean-Louis Martineau <martineau@zmanda.com>
1704         * amandad-src/amandad.c: Fix memory leak.
1705         * amandad-src/amandad.h (free_g_options): Prototype.
1706         * amandad-src/amandad_util.c (free_g_options): New function to free a
1707                                                        g_option_t.
1708         * server-src/amcleanupdisk.c: Fix memory leak.
1709         * server-src/reporter.c: Fix memory leak.
1710         * server-src/tapefile.c: Fix memory leak.
1711         * server-src/taperscan.c: Put message in error_message.
1712
1713 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1714         * server-src/amcheck.c (start_server_check): Memory leak.
1715
1716 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1717         * amandad-src/Makefile.am (noinst_HEADERS): Add amandad.h.
1718         * client-src/Makefile.am (noinst_HEADERS): Add clientconf.h.
1719
1720 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1721         * man/xml-source/amanda-client.conf.5.xml: New file.
1722
1723 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1724         * common-src/amanda.h (check_user_ruserok, check_user_amandahosts):
1725           Remove prototype.
1726         * common-src/bsd-security.c: Pass the service name across check_user*
1727           function and validate it from the .amandahosts file.
1728
1729 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1730         * restore-src/amidxtaped.c: Can be launched by amandad.
1731         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
1732         * server-src/Makefile.am (amidxtaped__LDADD): Link with libamandad.
1733         * restore-src/restore.c: Fix indentation.
1734
1735 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1736         * server-src/amindexd.c: Can be launched by amandad
1737         * server-src/Makefile.am (INCLUDES): Add -I$(top_srcdir)/amandad-src
1738         * server-src/Makefile.am (amindexd_LDADD): Link with libamandad.
1739
1740 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1741         * amandad-src/amandad.c: New file.
1742         * amandad-src/amandad.h: New file.
1743         * amandad-src/amandad_util.c: New file, add function init_g_options
1744                                       parse_g_options.
1745         * amandad-src/Makefile.am: New file.
1746         * client-src/amandad.c: Removed file.
1747         * client-src/amandad.h: Removed file.
1748         * client-src/client_util.c (init_g_options, parse_g_options): Remove.
1749         * client-src/client_util.h (init_g_options, parse_g_options): Remove.
1750         * client-src/Makefile.am (INCLUDES): -I$(top_srcdir)/amandad-src
1751         * client-src/Makefile.am (libexec_PROGRAMS): Remove amandad.
1752         * client-src/Makefile.am (LDADD): Add
1753                                   ../amandad-src/libamandad.$(LIB_EXTENSION).
1754         * client-src/selfcheck.c: #include "amandad.h".
1755         * client-src/sendsize.c: #include "amandad.h".
1756         * configure.in (AC_CONFIG_FILES): amandad-src/Makefile.
1757         * Makefile.am (SUBDIRS): amandad-src.
1758
1759 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1760         * docs/security-api.txt: Document security_read_sync.
1761         * common-src/security.h: Typo.
1762
1763 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1764         * client-src/amandad.c (service_new): Pass the "amandad" argument to
1765                                               the service.
1766
1767 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1768         * common-src/bsd-security.c: Allow to run many services on the same
1769                                      client. Cleanup.
1770         * common-src/rsh-security.c: Ditto.
1771         * common-src/ssh-security.c: Ditto.
1772
1773 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1774         * common-src/security.h (security_stream_read_sync): Prototype.
1775         * common-src/bsd-security.c (bsd_stream_read_sync): New function.
1776         * common-src/krb4-security.c (krb4_stream_read_sync): New function.
1777         * common-src/krb5-security.c (krb5_stream_read_sync): New function.
1778         * common-src/rsh-security.c (rsh_stream_read_sync): New function.
1779         * common-src/ssh-security.c (ssh_stream_read_sync): New function.
1780
1781 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1782         * client-src/amandad.c: Open pipe in both direction to the services.
1783         * client-src/sendbackup.c: Deal with the newer pipe.
1784
1785 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1786         * client-src/clientconf.c: New file to read the client configuration
1787                                    file.
1788         * client-src/clientconf.h: Header.
1789         * client-src/Makefile.am: Link clientconf into libamclient.
1790         * configure.in (AC_CONFIG_FILES): example/amanda-client.conf.
1791         * docs/amanda-client.conf.5.txt: New documentation.
1792         * docs/Makefile.am (pkgdata_DATA): amanda-client.conf.5.txt.
1793         * example/amanda-client.conf.in: exemple.
1794         * example/Makefile.am  (noinst_DATA): amanda-client.conf.
1795         * man/entities/global.entities: amclientconf.
1796         * man/Makefile.am (COMMON_MAN5_PAGES): amanda-client.conf.5.
1797         * man/xml-source/amanda.8.xml (SEE ALSO): amanda-client.conf(5).
1798         * man/xml-source/amanda.conf.5.xml (SEE ALSO): amanda-client.conf(5).
1799         * man/xml-source/amrecover.8.xml (SEE ALSO): amanda-client.conf(5).
1800
1801 2006-04-26  K. K. George<kkg@zmanda.com>
1802         * server-src/reporter.c: Fix to untaint the mailto parameter.
1803         * server-src/amcheck.c: Fix to untaint the mailto parameter
1804         * changer-src/chg-scsi.c: Fix to untaint the mailto parameter.
1805         * changer-src/chg-scsi-chio.c: Fix to untaint the mailto parameter.
1806         * common-src/util.h: Added function to check if the mailto 
1807           parameter is untainted
1808         * common-src/util.c: Added function to check if the mailto 
1809           parameter is untainted
1810
1811 2006-04-26  Jean-Louis Martineau <martineau@zmanda.com>
1812         * common-src/event.c(event_wait): New function.
1813         * common-src/event.h(event_wait): prototype.
1814         * docs/eventapi.txt: Document event_wait.
1815
1816 2006-04-24  Jean-Louis Martineau <martineau@zmanda.com>
1817         * server-src/planner.c: Fix divide by zero if runtapes==0.
1818
1819 2006-04-24  K. K. George<kkg@zmanda.com>
1820         * server-src/reporter.c: Fix to make the mailto parameter in
1821           amanda.conf optional. Added two more commandline options
1822           -i & -Maddress.
1823         * server-src/amcheck.c: Fix to make the mailto parameter in
1824           amanda.conf optional.
1825         * man/xml-source/amreport.8.xml: Modified to document the
1826           -i & -Maddress commandline parameters
1827         * docs/amreport.8.txt: Modified to document the
1828           -i & -Maddress commandline parameters
1829         * changer-src/chg-scsi.c: Fix to make the mailto parameter in
1830           amanda.conf optional.
1831         * changer-src/chg-scsi-chio.c: Fix to make the mailto parameter in
1832           amanda.conf optional.
1833
1834 2006-04-23  Jean-Louis Martineau <martineau@zmanda.com>
1835         * server-src/driver.c (handle_chunker_result): make sure that
1836                                                        est_size > act-size.
1837
1838 2006-04-21  Jean-Louis Martineau <martineau@zmanda.com>
1839         * server-src/changer.c (changer_command): Make sure fd[0] != 1.
1840
1841 2006-04-19  Jean-Louis Martineau <martineau@zmanda.com>
1842         * restore-src/amidxtaped.c: Cleanup.
1843
1844 2006-04-19  Ian Turner <ian@zmanda.com>
1845         * tape-src/output-tape.c: Do a more thourough check to ensure 
1846           that we actually got a tape device, before proceeding to use 
1847           it.
1848
1849 2006-04-18  Ian Turner <ian@zmanda.com>
1850         * changer-src/chg-disk.sh.in: Check that the virtual device is a 
1851           directory with proper permissions.
1852         * server-src/changer.c: Do the right thing (failure) if there is 
1853           a problem with the changer.
1854
1855 2006-04-18  Ian Turner <ian@zmanda.com>
1856         * recover-src/uscan.l: Accept setdate of the form
1857           yyyy-MM-dd-hh-mm in addition to yyyy-MM-dd-hh-mm-ss.
1858         * man/xml-source/amrecover.8.xml: Document this change.
1859
1860 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
1861         * recover-src/help.c: Document setdate YYYY-MM-DD-HH-MM-SS format.
1862         * man/xml-source/amrecover.8.xml: Ditto.
1863
1864 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
1865         * client-src/amandad.c: Use %p to printf pointer.
1866
1867 2006-04-14  Jean-Louis Martineau <martineau@zmanda.com>
1868         * server-src/amtape.c: Add update command.
1869
1870 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
1871         * server-src/taper.c: log_add(L_WARNING) the output of taper_scan if
1872                                no valid tape are found.
1873
1874 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
1875         * server-src/amcheck.c: Call taper_scan with
1876                 (..., FILE_taperscan_output_callback,outf) arguments.
1877         * server-src/amtape.c:  Call taper_scan with
1878                 (..., FILE_taperscan_output_callback,stderr) arguments.
1879         * server-src/taper.c:   Call taper_scan with
1880                 (..., CHAR_taperscan_output_callback, &error_msg) arguments.
1881         * server-src/taperscan.h(FILE_taperscan_output_callback,
1882                                  CHAR_taperscan_output_callback): Protoype.
1883         * server-src/taperscan.h(taper_scan): New protoype, remove
1884           error_message arg, add taperscan_output_callback and data arg.
1885         * server-src/taperscan.c(FILE_taperscan_output_callback): Callback
1886           that print the msg to it's arg, which is FILE*.
1887         * server-src/taperscan.c(CHAR_taperscan_output_callback): Callback
1888           that append the msg to it's arg, which is char*.
1889         * server-src/taperscan.c(taper_scan): Fix for new arguments.
1890         * server-src/taperscan.c(changer_taper_scan): Fix for new arguments.
1891
1892 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
1893         * man/xml-source/amanda.conf.5.xml: Document amandad_path and
1894                                             client_username dumptype option.
1895
1896 2006-04-11  Jean-Louis Martineau <martineau@zmanda.com>
1897         * common-src/krb4-security.c: Increase timeout to 60 seconds.
1898         * common-src/rsh-security.c: Increase timeout to 60 seconds.
1899         * common-src/ssh-security.c: Increase timeout to 60 seconds.
1900
1901 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
1902         * server-src/conffile.c: New configuration option usetimestamps.
1903         * server-src/conffile.h: New configuration option usetimestamps.
1904         * example/amanda.conf.in: Document new usetimestamps options.
1905         * man/xml-source/amanda.conf.5.xml: Document new usetimestamps options.
1906         * server-src/amflush.c: Use datestamp or timestamp depending of
1907                                 usetimesstamps.
1908         * server-src/planner.c: Use datestamp or timestamp depending of
1909                                 usetimesstamps.
1910         * server-src/driver.c: Log an ERROR if many run a day and
1911                                usetimestamps us set to no.
1912
1913 2006-04-07  Ian Turner <ian@zmanda.com>
1914         * server-src/changer.c: Don't crash if we go to taperscan "Plan 
1915           B".
1916
1917 2006-04-07  Ian Turner <ian@zmanda.com>
1918         * server-src/changer.c: Only print changer debug messages if 
1919           there was a problem.
1920
1921 2006-04-07  Ian Turner <ian@zmanda.com>
1922         * recover-src/amrecover.c: Print a more helpful command if mount
1923           point autodetection fails.
1924         * recover-src/display_commands.c: Print a more helpful message
1925           if the user tries to ls without having setdisk earlier.
1926
1927 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
1928         * server-src/amadmin.c: Fix use of datestamp as int.
1929         * server-src/find.c: Ditto.
1930         * server-src/reporter.c: Ditto.
1931         * server-src/tapefile.c: Ditto.
1932
1933 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
1934         * common-src/Makefile.am: Fix dependency between genversion and
1935                                   versuff.o.
1936
1937 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
1938         * recover-src/amrecover.c: Change initialization of server_name and
1939                                    tape_server_name.
1940
1941 2006-04-07  Jean-Louis Martineau <martineau@zmanda.com>
1942         * restore-src/amrestore.c: reset count_error to 0 on a restore.
1943
1944 2006-04-06  Kevin Till <ktill@zmanda.com>
1945         * server-src/Makefile.am: always install planner/dumper setuid-root
1946         * server-src/amcheck.c:   check planner/dumper for setuid-root
1947         * server-src/dumper.c:    drop privilege asap. Switch between bsd 
1948           and ssh auth is now possible with the same installation.
1949         * server-src/planner.c:   ditto
1950
1951 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
1952         * server-src/taperscan.c (changer_taper_scan): Pass a pointer to the
1953           changer_loadslot call.
1954
1955 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
1956         * server-src/tapefile.c (lookup_last_reusable_tape): Fix a datestamp
1957           test with an int.
1958
1959 2006-04-06  Ian Turner <vectro@vectro.org>
1960         * recover-src/amrecover.c (main): Check AMANDA_SERVER and 
1961           AMANDA_TAPE_SERVER environment variables before falling back 
1962           to compiled-in defaults. Document this new behavior. Thanks to 
1963           Malcolm Locke <malc@hoodee.co.uk> for the idea and patch.
1964
1965 2006-04-06  Jean-Louis Martineau <martineau@zmanda.com>
1966         * server-src/reporter.c (handle_chunk): CHUNK line always have the
1967           datestamp.
1968
1969 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
1970         * server-src/krb5-security.c: Fix for krb5_connect call in
1971            open_callback.
1972
1973 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
1974         * server-src/driver.c (start_some_dumps): Recover correctly if the
1975           chunker reply with something that is not a PORT command.
1976         * server-src/driver.c (dump_to_tape): remove duplicate free_serial.
1977         * server-src/driverio.c: Improve debugging.
1978
1979 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
1980         * common-src/tapelist.c(unmarshal_tapelist_str): Fix
1981           "value computed is not used" compiler warning.
1982
1983 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
1984         * common-src/bsd-security.c (bsd_connect): New datap argument.
1985         * common-src/krb4-security.c (krb4_connect): New datap argument.
1986         * common-src/krb5-security.c (krb5_connect): New datap argument.
1987         * common-src/rsh-security.c (rsh_connect): New datap argument,
1988                  retrieve amanda_path and client_username from configuration.
1989         * common-src/ssh-security.c (ssh_connect): New datap argument,
1990                 retrieve amanda_path and client_username from configuration.
1991         * common-src/protocol.c: Pass new datap argument to security_connect.
1992         * common-src/security.h(connect): New prototype.
1993         * common-src/security.h(security_connect): Add datap to macro.
1994         * server-src/amadmin.c(disklist_one): Print amandad_path and
1995                                               client_username.
1996         * server-src/conffile.c(AMANDAD_PATH, CLIENT_USERNAME): Parse new
1997                                 dumptype option.
1998         * server-src/conffile.h(dumptype_t): Add amandad_path and
1999                                              client_username.
2000         * server-src/diskfile.c(parse_diskline): Copy new field.
2001         * server-src/diskfile.h(disk_t) Add amandad_path and client_username.
2002         * server-src/driverio.c(dumper_cmd): Send dp->amandad_path and
2003           dp->client_username in a PORT_DUMP command to the dumper.
2004         * server-src/dumper.c: Parse amandad_path and client_username in a
2005                                PORT_DUMP command.
2006         * server-src/dumper.c(dumper_get_security_conf): New function to return
2007                                 configuration option to the security-api.
2008         * server-src/dumper.c: Use dumper_get_security_conf for the callback
2009                                to protocol_sendreq.
2010         * server-src/planner.c Use amhost_get_security_conf for the callback
2011                                to protocol_sendreq.
2012         * server-src/amcheck.c: Use amhost_get_security_conf for the callback
2013                                 to protocol_sendreq.
2014         * server-src/server_util.c(amhost_get_security_conf): New function to
2015                         return configuration option to the security-api,
2016                         it expect an am_host_t arg.
2017         * server-src/server_util.h(amhost_get_security_conf): Prototype.
2018
2019 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2020         * server-src/amstatus.pl.in: Remove duplicate instruction.
2021
2022 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2023         * server-src/amindexd.c: Remove all code that set str_buffer_size,
2024                                  rename str_buffer_size to reply_buffer_size,
2025                                  rename buf to reply_buffer,
2026         * server-src/amindexd.c(reply, lreply_backend): Increase reply_buffer
2027                                                         size if required.
2028
2029 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2030         * common-src/amfeatures.h: Add fe_amrecover_timestamp amfeature.
2031         * common-src/amfeatures.c (am_init_feature_set):
2032                                                  Add fe_amrecover_timestamp.
2033         * server-src/amindexd.c(opaque_ls_one): New function.
2034         * server-src/amindexd.c(disk_history_list,opaque_ls_one): Send only a
2035           datestamp if client doesn't have fe_amrecover_timestamp.
2036
2037 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2038         * recover-src/uscan.l: Parse "setdate YYYY-MM-DD-HH-MM-SS".
2039         * server-src/amindexd.c (cmp_date): New function to cmp datestamp with
2040                                             timestamp, use it where needed.
2041         * server-src/amindexd.c (amindexd_nicedate): Fix for timestamp.
2042         * server-src/amtrmidx.c: Fix for timestamp.
2043         * server-src/disk_history.h (DUMP_ITEM): Increase size of date.
2044
2045 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2046         * server-src/amflush.c: Send DATE line to driver, use timestamp.
2047         * server-src/amindex.c (getindexfname): Increase datebuf size.
2048         * server-src/amtrmlog.c: Fix bug with date_keep computation if
2049                                  dumpcycle is INF.
2050         * server-src/amtrmlog.c: rotate timestamped log file.
2051         * server-src/chunker.c: Receive START cmd, use timestamp.
2052         * server-src/driver.c: Receive DATE line, send START cmd to chunker,
2053                                use timestamp.
2054         * server-src/driverio.c (startup_dump_processes): Send START cmd to
2055                                                           dumper.
2056         * server-src/driverio.c (dumper_cmd, chunker_cmd): Send START command.
2057         * server-src/driverio.h (startup_dump_processes): Prototype change,
2058                                                           need the timestamp.
2059         * server-src/dumper.c: Receive START cmd, use timestamp.
2060         * server-src/find.c (find_nicedate): Fix for timestamp.
2061         * server-src/planner.c: Send DATE line to driver, use timestamp.
2062         * server-src/server_util.c (cmdstr): Add START.
2063         * server-src/server_util.h (cmd_t): Add START.
2064         * server-src/taper.c: Get timestamp from TAPER_START command.
2065
2066 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2067         * server-src/amindexd.c (amindexd_nicedate): New function.
2068         * server-src/find.h (struct find_result_s): Remove datestamp and
2069                  datestamp_aux field, only timestamp will be used.
2070         * restore-src/amfetchdump.c: Convert datestamp to 'char *'.
2071         * restore-src/restore.c: Convert datestamp to 'char *'.
2072         * server-src/amindexd.c: Convert datestamp to 'char *'.
2073         * server-src/amlabel.c: Convert datestamp to 'char *'.
2074         * server-src/amtrmidx.c: Convert datestamp to 'char *'.
2075         * server-src/find.c: Convert datestamp to 'char *'.
2076         * server-src/reporter.c: Convert datestamp to 'char *'.
2077         * server-src/tapefile.c: Convert datestamp to 'char *'.
2078         * server-src/tapefile.h: Convert datestamp to 'char *'.
2079         * server-src/taper.c: Convert datestamp to 'char *'.
2080
2081 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2082         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.1b1).
2083
2084 2006-04-05  Jean-Louis Martineau <martineau@zmanda.com>
2085         * server-src/driver.c: Change expression to remove overflow.
2086
2087 2006-03-29  Jean-Louis Martineau <martineau@zmanda.com>
2088         * client-src/calcsize.c: Don't use declaration after instruction,
2089           older compiler don't accept it.
2090
2091 2006-03-23  Jean-Louis Martineau <martineau@zmanda.com>
2092         * Amanda 2.5.0 released.
2093         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0).
2094         * NEWS: Update for 2.5.0
2095
2096 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
2097         * server-src/dumper.c: wait for compress/index/encryp subprocess.
2098
2099 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
2100         * server-src/amstatus.pl.in: Parse PARTIAL reply.
2101
2102 2006-03-22  Jean-Louis Martineau <martineau@zmanda.com>
2103         * server-src/driver.c: Put '#define HOLD_DEBUG' in comment.
2104
2105 2006-03-21  Jean-Louis Martineau <martineau@zmanda.com>
2106         * server-src/chunker.c: Don't loop on startup_chunker.
2107         * server-src/dumper.c: Don't wait for all children, some process (ssh)
2108           might not terminate.
2109
2110 2006-03-17  Ian Turner <ian@zmanda.com>
2111         * server-src/taper.c (read_file): When finished flushing a 
2112           chunked dump, print information about the whole dump, not just 
2113           the last chunk. Also, fix some memory leaks.
2114
2115 2006-03-16  Kevin Till <ktill@zmanda.com>
2116         * server-src/amverify.sh.in: check for EOI. amrestore only 
2117           reports EOI for some tapetypes.
2118
2119 2006-03-15  Jean-Louis Martineau <martineau@zmanda.com>
2120         * server-src/conffile.c: Fix heritage of auth.
2121
2122 2006-03-14  Kevin Till <ktill@@zmanda.com>
2123         * example/amanda.conf.in: add dumptype custom-compress. 
2124           add ssh,krb5 as valid input for auth. 
2125         * man/xml-source/amanda.conf.5.xml: give reference to 
2126           custom-compress, encrypt-fast dumptypes.
2127
2128 2006-03-14  Jean-Louis Martineau <martineau@zmanda.com>
2129         * common-src/amfeatures.h: Rename fe_amidxtaped_FEEDME to
2130                                           fe_amrecover_FEEDME
2131         * common-src/amfeatures.c (am_init_feature_set): Set
2132                                                          fe_amrecover_FEEDME.
2133         * restore-src/restore.h (search_tapes): Add their_features parameter.
2134         * restore-src/amfetchdump.c: Add NULL pointer to search_tapes call.
2135         * restore-src/amidxtaped.c: Add their_features to search_tapes call.
2136         * restore-src/restore.c (search_tapes): Send FEEDME only if client
2137                                                 support it.
2138
2139 2006-03-11  Jean-Louis Martineau <martineau@zmanda.com>
2140         * server-src/driverio.c : Fix errors found using Coverity tools.
2141
2142 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
2143         * server-src/taperscan.c: Fix Coverity fix.
2144
2145 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
2146         * changer-src/scsi-changer-driver.c:
2147                                          Fix errors found using Coverity tools.
2148         * server-src/diskfile.c: Fix errors found using Coverity tools.
2149         * server-src/planner.c: Fix errors found using Coverity tools.
2150         * server-src/taperscan.c: Fix errors found using Coverity tools.
2151
2152 2006-03-10  Jean-Louis Martineau <martineau@zmanda.com>
2153         * server-src/driverio.c: Undo my bad fix.
2154         * server-src/infofile.c: Fix errors found using Coverity tools.
2155         * tape-src/tapetype.c: Fix errors found using Coverity tools.
2156
2157 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
2158         * restore-src/restore.c: Fix errors found using Coverity tools.
2159
2160 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
2161         * server-src/holding.c: Fix errors found using Coverity tools.
2162
2163 2006-03-09  Jean-Louis Martineau <martineau@zmanda.com>
2164         * server-src/driverio.c: Fix errors found using Coverity tools.
2165         * server-src/planner.c: Fix errors found using Coverity tools.
2166
2167 2006-03-09  John Franks <jrfranks@zmanda.com>
2168         * changer-src/chg-scsi.c:        Fix errors found using Coverity tools.
2169         * changer-src/scsi-changer-driver.c:
2170                                          Fix errors found using Coverity tools.
2171         * changer-src/sense.c:           Fix errors found using Coverity tools.
2172         * client-src/sendbackup-dump.c:  Fix errors found using Coverity tools.
2173         * client-src/sendbackup.c:       Fix errors found using Coverity tools.
2174         * recover-src/display_commands.c:Fix errors found using Coverity tools.
2175         * regex-src/regcomp.c:           Fix errors found using Coverity tools.
2176         * restore-src/restore.c:         Fix errors found using Coverity tools.
2177         * server-src/amindexd.c:         Fix errors found using Coverity tools.
2178         * server-src/diskfile.c:         Fix errors found using Coverity tools.
2179         * server-src/driver.c:           Fix errors found using Coverity tools.
2180         * server-src/driverio.c:         Fix errors found using Coverity tools.
2181         * server-src/infofile.c:         Fix errors found using Coverity tools.
2182         * server-src/planner.c:          Fix errors found using Coverity tools.
2183         * server-src/taper.c:            Fix errors found using Coverity tools.
2184         * server-src/taperscan.c:        Fix errors found using Coverity tools.
2185         * server-src/conffile.c:         Change report default to use at least
2186                                          one space between every column.
2187
2188 2006-03-08  Jean-Louis Martineau <martineau@zmanda.com>
2189         * client-src/amandad.c: Fix coverity bug.
2190         * client-src/calcsize.c: Fix coverity bug.
2191         * client-src/client_util.c: Fix coverity bug.
2192         * client-src/sendbackup.c: Fix coverity bug.
2193         * client-src/sendsize.c: Fix coverity bug.
2194         * common-src/bsd-security.c: Fix coverity bug.
2195         * common-src/file.c: Fix coverity bug.
2196         * common-src/fileheader.c: Fix coverity bug.
2197         * common-src/pipespawn.c: Fix coverity bug.
2198         * recover-src/extract_list.c: Fix coverity bug.
2199         * restore-src/restore.c: Fix coverity bug.
2200         * server-src/amindexd.c: Fix coverity bug.
2201         * server-src/conffile.c: Fix coverity bug.
2202         * server-src/diskfile.c: Fix coverity bug.
2203         * server-src/driverio.c: Fix coverity bug.
2204         * server-src/dumper.c: Fix coverity bug.
2205         * server-src/planner.c: Fix coverity bug.
2206         * server-src/reporter.c: Fix coverity bug.
2207
2208 2006-03-07  Paddy Sreenivasan <paddy@zmanda.com>
2209         * man/xml-source/amanda.8.xml: added amaespipe and amcrypt.
2210
2211 2006-03-07  Jean-Louis Martineau <martineau@zmanda.com>
2212         * server-src/taper.c: Don't log a multi-line message in no-tape case.
2213
2214 2006-03-06  John Franks <jrfranks@zmanda.com>
2215         * recover-src/extract_list.c:
2216           1) Don't add '.' directory twice to tar extract list.
2217           2) Don't prepend extra '/' to extract patterns starting with '/'.
2218           3) Convert "/" extract pattern to "*" equivalent.
2219
2220 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
2221         * server-src/taperscan.c (scan_slot): append slotstr to
2222           ct->error_message.
2223         * server-src/taperscan.c: Add a '\n' after each slot error message.
2224
2225 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
2226         * server-src/reporter.c (handle_error): Handle error from taper.
2227
2228 2006-03-06  Jean-Louis Martineau <martineau@zmanda.com>
2229         * server-src/taper.c (label_tape): Set errstr and return 0 if no
2230           valid tape are available.
2231
2232 2006-03-03  Ian Turner <ian@zmanda.com>
2233         * common-src/amanda.h: New macros MAX_TAPE_LABEL_LEN and 
2234           MAX_TAPE_LABEL_BUF.
2235         * common-src/amfeatures.h: New amfeature fe_amidxtaped_FEEDME
2236         * recover-src/extract_list.c: Accept port number with CONNECT; 
2237           implement fe_amidxtaped_FEEDME.
2238         * restore-src/amidxtaped.c: Introduce port number with CONNECT. 
2239           (closes SF bug 1431623)
2240         * restore-src/restore.c: Implement fe_amidxtaped_FEEDME.
2241           (closes SF bug 1421433)
2242         * restore-src/restore.h: Properly name rst_flags.
2243
2244 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
2245         * common-src/bsd-security.c (bsd_connect, netfd_read_callback, main):
2246           Set bh->proto_handle to NULL after allocating bh.
2247         * common-src/bsd-security.c (bsd_close): Donothing if
2248           bh->proto_handle == NULL.
2249
2250 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
2251         * common-src/protocol.c (s_repwait): Decrease p->timeout on receive
2252                                              of a PREP.
2253
2254 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
2255         * server-src/driver.c: Print dumper TRY_AGAIN message.
2256
2257 2006-02-28  Jean-Louis Martineau <martineau@zmanda.com>
2258         * server-src/planner.c: Don't print estimate size if estimate failed.
2259
2260 2006-02-25  Ian Turner <ian@zmanda.com>
2261         * man/Makefile.am: Don't use static patterns (as they are not 
2262           portable), use implicit rules instead.
2263
2264 2006-02-20  Kevin Till <ktill@zmanda.com>
2265         * common-src/krb4-security.c: changes needed for krb4/5 to compile. Thanks to
2266                                       Orion Poplawski.
2267         * common-src/krb5-security.c: ditto.
2268
2269 2006-02-16  Kevin Till <ktill@zmanda.com>
2270         * example/amanda.conf.in: dumptype option is "encrypt"
2271         * man/xml-source/amanda.conf.5.xml: ditto
2272         * server-src/holding.c: util.h is include'd twice
2273         * common-src/ssh-security.c: set correct debug print 
2274
2275 2006-02-10  Kevin Till <ktill@zmanda.com>
2276         * man/xml-source/amanda.8.xml: replace informaltable with literallayout 
2277
2278 2006-02-13  John Franks <jrfranks@zmanda.com>
2279         * server-src/driver.c: Pring a more precise message when taper
2280           returns an error.  Include error message from taper in log.
2281           Print out "protocol error" if taper returns a bogus command.
2282
2283 2006-02-10  Kevin Till <ktill@zmanda.com>
2284         * man/xml-source/amanda.conf.5.xml: add note about first character of a 
2285                         tapetype string must be alphabet
2286
2287 2006-02-10  John Franks <jrfranks@zmanda.com>
2288         * server-src/taper.c: Call error() if an invalid string is read
2289           by syncpipe_getstr().
2290  
2291 2006-02-09  John Franks <jrfranks@zmanda.com>
2292         * Makefile.am, */Makefile.am:  Corrections generated by David Braun
2293           dustybird@users.sourceforge.net to properly set source directories
2294           for remote (VPATH) builds.
2295         * man/Makefile.am:  Fixed man page builds to use proper source and
2296           build paths.
2297         * autogen: Force rebuilding everything and print only syntax errors.
2298           (Errors are seen occasionally in system autogen files...)
2299         * configure.in: Eliminate possibility of empty string in shell tests.
2300           fix quoting of '[' and ']' characters in help messages.
2301           Fix default value for DUMPER_DIR to pick up EPREFIX correctly.
2302  
2303 2006-02-08  Ian Turner <ian@zmanda.com>
2304         * server-src/driver.c (handle_taper_result): Properly handle 
2305           SPLIT_NEEDNEXT case. Thanks to Josef Wolf for finding this bug.
2306           Also reindent.
2307
2308 2006-02-06 Kevin Till <ktill@zmanda.com> 
2309         * restore-src/restore.c: fix comment formatting on version 1.2.1
2310
2311 2006-02-06 Kevin Till <ktill@zmanda.com>
2312         * configure.in: Bug 1423731, SSH_SECURITY set only when --with-ssh-security used
2313         * server-src/Makefile.am:: not to install planner/dumper setuid-root --with-ssh-security
2314         * server-src/amcheck.c:    ditto
2315         * server-src/dumper.c:     ditto
2316         * restore-src/restore.c:    add missing "}"
2317         
2318 2006-02-06  Ian Turner <ian@zmanda.com>
2319         * restore-src/amidxtaped.c: Properly handle changers, 
2320           tape-label checking, and tape prompting in amrecover, 
2321           amindexd, and amidextaped. Thanks to Paul Bijnens 
2322           <pbijnens@users.sourceforge.net> for the patch.
2323         * restore-src/restore.c: ditto.
2324         * server-src/amindexd.c: ditto.
2325
2326 2006-02-04  Paddy Sreenivasan <paddy@zmanda.com>
2327         * man/xml-source/amfetchdump.8.xml
2328         * man/xml-source/amcrypt.8.xml
2329         * man/xml-source/amanda.conf.5.xml
2330         * man/xml-source/amanda.8.xml
2331         * man/xml-source/amaespipe.8.xml
2332         * man/entities/global.entities: Merged changes from xml-docs tree
2333
2334 2006-02-03  John Franks <jrfranks@zmanda.com>
2335         * server-src/taper.c: Fix null string printout in CHUNKERSUCCESS log line.
2336
2337 2006-02-03  Ian Turner <ian@zmanda.com>
2338         * server-src/amadmin.c (main): Don't free conf_tapelist too 
2339           early. Thanks to Cédric Lucantis
2340           <cedric-lucantis@users.sourceforge.net> for the patch.
2341
2342 2006-02-02 Kevin Till <ktill@zmanda.com>
2343         * man/xml-source/amanda.8.xml: fix formatting. <informaltable> problem 
2344                                        to be fixed.
2345         * man/xml-source/amrecover.8.xml: add note on client-encrypted tapes.
2346
2347 2006-02-02  Ian Turner <ian@zmanda.com>
2348         * recover-src/extract_list.c (extract_files_child): Run tar with 
2349           --numeric-owner if we are extracting a non-sambafied tar file. 
2350           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for 
2351           the patch. Thanks also to Mark Schaefer for suggesting this 
2352           change.
2353
2354 2006-02-01  Jean-Louis Martineau <martineau@zmanda.com>
2355         * restore-src/restore.c: Use OFF_T_FMT to printf off_t variable,
2356           cast size_t to am64_t and use AM64_FMT to printf them.
2357
2358 2006-01-31  Jean-Louis Martineau <martineau@zmanda.com>
2359         * server-src/driver.c (dumper_result): Reset sched(dp)->attempted to 0
2360           before adding it to tapeq.
2361
2362 2006-01-27  Ian Turner <ian@zmanda.com>
2363         * configure.in: Add new option --without-xsltproc (and
2364           --with-xsltproc), which turns off (or forces) the use of xsltproc to
2365           build manpages. Thanks to Paul Bijnens
2366           <pbijnens@users.sourceforge.net> for suggesting this feature.
2367
2368 2006-01-27  Ian Turner <ian@zmanda.com>
2369         * restore-src/amfetchdump.c: Properly clean up logfiles. Also, 
2370           run as user amanda even if we are started as some other user.
2371           Thanks to Paul Bijnens <pbijnens@users.sourceforge.net> for the 
2372           patch.
2373
2374 2006-01-25  Paddy Sreenivasan <paddy@zmanda.com>
2375         * common-src/amanda.h:     Removed unnecessary header include files.
2376
2377 2006-01-25  Kevin Till<ktill@zmanda.com>
2378         * server-src/amadmin.c: fix for sourceforge bug 1412698
2379                                 add missing parameters to "amadmin x disklist"
2380         * server-src/amstatus.pl.in: untaint user input, enforce known path.
2381         * server-src/amoverview.pl.in: untaint user input (bug 1353481)
2382
2383 2006-01-25  Kevin Till<ktill@zmanda.com>
2384         * man/xml-source/amanda.conf.5.xml: fix formatting (<para> is not compatible 
2385                                             with some tag) add supported auth types.
2386
2387 2006-01-25  Kevin Till<ktill@zmanda.com>
2388         * common-src/bsd-security.c: move check_security to bsd_security.c, 
2389                                      fix faulty return
2390                                      Thanks to Paul Bijnens
2391         * restore-src/amidxtaped.c:  ditto
2392         * server-src/amindexd.c:     ditto and no need to tell client 
2393                                      about reason for denial
2394         * common-src/amanda.h:       add proto of check_security
2395         * server-src/conffile.c:     don't list CRYPT in the summary report 
2396                                      for now
2397         * restore-src/restore.c:     set outfd correctly for amfetchdump cases
2398                                      Thanks to Paul Bijnens
2399
2400 2006-01-24  Ian Turner <ian@zmanda.com>
2401         * man/xml-source/amanda.conf.5.xml: Put documentation of 
2402           split-dump options in the right place. Thanks to Paul Bijnens 
2403           <pbijnens@users.sourceforge.net> for the fix.
2404         * man/xml-source/amanda.8.xml: ditto.
2405
2406 2006-01-23  Ian Turner <ian@zmanda.com>
2407         * server-src/taperscan.c (find_brand_new_tape_label): Start 
2408           brand new tape labels at 1 instead of 0. Thanks to Paul 
2409           Bijnens <pbijnens@users.sourceforge.net> for the fix.
2410
2411 2006-01-18  Jean-Louis Martineau <martineau@zmanda.com>
2412         * Amanda 2.5.0b2 released.
2413         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b2).
2414         * NEWS: Update for 2.5.0b2
2415         
2416 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
2417         * server-src/disk_history.c: Fix memory leak.
2418
2419 2006-01-15  Jean-Louis Martineau <martineau@zmanda.com>
2420         * common-src/bsd-security.c: Fix memory leak.
2421         * common-src/tapelist.c: Fix memory leak.
2422         * restore-src/amidxtaped.c: Fix memory leak.
2423         * restore-src/restore.c: Fix memory leak.
2424         * server-src/amindexd.c: Fix memory leak.
2425         * server-src/conffile.c: Fix memory leak.
2426         * server-src/disk_history.c: Fix memory leak.
2427         * server-src/find.c: Fix memory leak.
2428
2429 2006-01-13  John Franks <jrfranks@zmanda.com>
2430         * client-src/amandad.c:      Remove SO_LINGER and TCP_NDELAY.
2431                                      Loop on I/O if EINTR or EAGAIN.
2432         * client-src/noop.c:         Loop on I/O if EINTR or EAGAIN.
2433         * client-src/sendbackup.c:   Remove SIGPIPE handler.
2434                                      Loop on I/O if EINTR or EAGAIN.
2435                                      Check for EPIPE on writes.
2436         * common-src/bsd-security.c: Loop on I/O if EINTR or EAGAIN.
2437         * common-src/stream.c:       Remove SO_LINGER and TCP_NDELAY.
2438         * common-src/util.c:         Loop on I/O if EINTR or EAGAIN.
2439         * recover-src/amrecover.c:   Write commanda atomically in sigint handler
2440         * recover-src/extract_list.c:Remove SIGPIPE handler.
2441                                      Loop on I/O if EINTR or EAGAIN.
2442                                      Check for EPIPE on writes.
2443                                      Remove shutdown functions.
2444         * restore-src/amfetchdump.c: Remove SIGPIPE handler.
2445         * restore-src/amidxtaped.c:  Remove SO_LINGER and TCP_NDELAY.
2446                                      Remove SIGPIPE handler.
2447                                      read_file_header does not return if it
2448                                      Fix infinite loop on EOF or error and
2449                                      fail if memory reallocation failure in
2450                                      get_client_line_fd.
2451         * restore-src/restore.c:     Remove SIGPIPE handler.
2452                                      Loop on I/O if EINTR or EAGAIN.
2453                                      Remove shutdown functions.
2454                                      Simplify read loop.
2455         * restore-src/restore.h:     Change read_file_header to return void
2456         * server-src/amcheck.c:      Use fullread() to handel EINTR etc.
2457                                      Remove unused variable.
2458         * server-src/changer.c:      Remove SO_LINGER and TCP_NDELAY.
2459                                      Use fullwrite on socket.
2460         * server-src/driverio.c:     Remove SO_LINGER and TCP_NDELAY.
2461         * server-src/taper.c:        Use fullwrite() to write data.
2462                                      Use fullread() to read data.
2463         * tape-src/output-file.c;    Use fullwrite() to write data.
2464
2465 2006-01-13  Jean-Louis Martineau <martineau@zmanda.com>
2466         * server-src/amcheck.c (start_server_check): Remove unused variable
2467           errstr.
2468         * restore-src/restore.c (restore): Remove unused variable s, l and
2469           dataeof.
2470
2471 2006-01-12  Jean-Louis Martineau <martineau@zmanda.com>
2472         * recover-src/extract_list.c (send_to_tape_server): Do only on write.
2473         * restore-src/amidxtaped.c (get_client_line_fd): New function to read
2474           one complete line from an fd.
2475
2476 2006-01-09  John Franks <jrfranks@zmanda.com>
2477         * common-src/amanda.h:  Include tcp.h
2478         * client-src/amandad.c: Set TCP_NODELAY and SO_LINGER on sockets.
2479         * common-src/dgram.c:   No linger on datagrams
2480         * common-src/stream.c:  Set TCP_NODELAY and SO_LINGER on sockets.
2481         * common-src/util.c:    Fix fullwrite to return # of bytes written
2482                                 before failure.
2483         * example/amanda.conf.in: Cleanup exclude list template.
2484                                 Use configure directlries instead of /usr/local
2485         * recover-src/extract_list.c: Cleanup read loops.
2486                                 Use real fullwrite instead of inline versions.
2487                                 Remove extra setting of LINGER on socket.
2488         * restore-src/amidxtaped.c: Set TCP_NODELAY and SO_LINGER on sockets.
2489         * restore-src/restore.c:Use real fullwrite instead of inline versions.
2490         * server-src/changer.c: Set TCP_NODELAY and SO_LINGER on sockets.
2491         * server-src/chunker.c: Use real fullwrite instead of inline versions.
2492         * server-src/driverio.c:Set TCP_NODELAY and SO_LINGER on sockets.
2493         * server-src/dumper.c:  Use real fullwrite instead of inline versions.
2494
2495 2006-01-09  Ian Turner <ian@zmanda.com>
2496         * changer-src/scsi-changer-driver.c: If there is a problem opening
2497           the device during GenericRewind, don't retry for 201 minutes; give
2498           up after only 200 seconds.
2499
2500 2006-01-09  Ian Turner <ian@zmanda.com>
2501         * server-src/taperscan.c: When doing taper-scan algorithm, properly
2502           accept new tapes.
2503
2504 2006-01-09  Ian Turner <ian@zmanda.com>
2505         * tape-src/tapeio.c: Generate a more reasonable message when
2506         reading an empty tape label on brand-new tapes.
2507
2508 2006-01-09  Ian Turner <ian@zmanda.com>
2509         * server-src/amcheck.c: Actually do what the documentation for 
2510           amcheck -w says; that is, overwrite labels on tapes.
2511
2512 2006-01-06  Kevin Till<ktill@zmanda.com>
2513         * server-src/amcheck.c: check if encrypt or compress program is 
2514           executable. Check encrypt/compress configuration.
2515         * server-src/dumper.c: kill encrypt child when dump is stopped
2516         * server-src/amcrypt.sh.in: check for aespipe
2517         * server-src/amaespipe.sh.in: adjust PATH
2518         * man/xml-source/amtapetype.8.xml: fix format problem.
2519
2520 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
2521         * recover-src/extract-list.c: Remove 'U' argument for gtar extraction.
2522
2523 2006-01-06  Jean-Louis Martineau <martineau@zmanda.com>
2524         * restore-src/restore.c (flush_open_outputs): Another shutdown is
2525           required.
2526
2527 2006-01-05  John Franks <jrfranks@zmanda.com>
2528         * recover-src/extract_list.c: Extend linger timeouts to 60 seconds.
2529           Use shutdown() on sockets.
2530           Retry reads in case of EINTR or EAGAIN.
2531         * common-src/stream.c: set linger on correct socket.
2532           Extend linger timeouts to 60 seconds.
2533         * restore-src/restore.c: Fix compiler warnings.
2534         * Call shutdown in more cases.
2535
2536 2006-01-05  John Franks <jrfranks@zmanda.com>
2537         * client-src/amandad.c: Set SO_LINGER on sockets.
2538         * common-src/dgram.c:   Set SO_LINGER on sockets.
2539         * common-src/stream.c:  Set SO_LINGER on sockets.
2540         * common-src/util.c:    Return any bytes already read on error or EOF.
2541         * recover-src/extract_list.c: Set SO_LINGER on data socket.
2542           Fix printf of unterminated string data.
2543           Check return codes on socket header reads.
2544         * restore-src/amidxtaped.c: Set SO_LINGER on sockets.
2545           Check return codes on socket header reads.
2546         * restore-src/restore.c:
2547           Flush newline after operator prompt.
2548         * common-src/debug.c:
2549           Fix memory leak when debug file name already exists.
2550           Print error text upon hard open() error.
2551           Allow group members read only access to log files.
2552
2553 2006-01-05  Kevin Till<ktill@zmanda.com>
2554         * restore-src/restore.c: handle sigpipe. Some program (e.g. bzip2) closes reading pipe
2555           early when it sees trailing garbage after EOF.
2556
2557 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
2558         * common-src/amanda.h: Add a FD_COPY macro.
2559         * recover-src/extract_list.c (writer_intermediary): Don't use
2560           writer_intermediary, do the select locally.
2561
2562 2006-01-02  Jean-Louis Martineau <martineau@zmanda.com>
2563         * restore-src/restore.c (flush_open_outputs): Call shutdown before
2564           close.
2565
2566 2005-12-30  John Franks <jrfranks@zmanda.com>
2567         * recover-src/extract_list.c:
2568           Fix double clearing of buffer during normal read path.
2569         * restore-src/amidxtaped.c
2570           Actually initialize changer if it is needed.  (Set use_changer
2571           before checking it...)
2572         * Fix control messages being sent down the data pipe when
2573           restoring to client that does not support split dumps.
2574         * Print error and exit if a split dump is needed during restore
2575           and client can not handle it. 
2576
2577 2005-12-30  Ian Turner <ian@zmanda.com>
2578         * common-src/fileheader.c: Remove xx/UNKNOWN split-dump header 
2579           syntax, in favor of xx/-1.
2580
2581 2005-12-29  John Franks <jrfranks@zmanda.com>
2582         * recover-src/display_commands.c
2583           Fix list deletion which did not update list root with NULL pointer.
2584           Make free_dir_item() a non-recursive function to prevent stack bloat.
2585           Fix list insertion code which inserts item in list initializes entry.
2586         * recover-src/extract_list.c
2587           Fix to initialize lditem before using it...
2588           Prevent multiple frees of cmd string.
2589           Do not free err which is only initialized with static string pointers.
2590           Fix typo which caused newstralloc() to free the wrong memory.
2591         * server-src/amindexd.c
2592           Fix Compiler warning of unused variable.
2593         * server-src/taperscan.c
2594           Fix Compiler warning of bogus format specifier.
2595   
2596 2005-12-29  Kevin Till<ktill@zmanda.com>
2597         * man/xml-source/amcrypt.8.xml: add new amcrypt man page
2598         * man/xml-source/amaespipe.8.xml: add new amaespipe man page
2599
2600 2005-12-29  Ian Turner <ian@zmanda.com>
2601         * man/xml-source/amanda.conf.5.xml: Document label_new_tapes 
2602           config option.
2603
2604 2005-12-28  Ian Turner <ian@zmanda.com>
2605         * recover-src/amrecover.h: Use dynamic strings in struct DIR_ITEM.
2606         * recover-src/display_commands.c: ditto
2607         * recover-src/extract_list.c: ditto. Also use dynamic strings in
2608           struct EXTRACT_LIST and struct EXTRACT_LIST_ITEM.
2609
2610 2005-12-28  Ian Turner <ian@zmanda.com>
2611         * common-src/amfeatures.h: Add three new amfeatures:
2612           fe_amindexd_marshall_in_OLSD, fe_amindexd_marshall_in_ORLD,
2613           fe_amindexd_marshall_in_DHST.
2614         * common-src/amfeatures.c: ditto.
2615         * server-src/amindexd.c: Talk well to older clients.
2616
2617 2005-12-23  Ian Turner <ian@zmanda.com>
2618         * server-src/taperscan.c: Don't crash if find_brand_new_tape_label
2619           returns NULL. Also, don't return NULL from
2620           find_brand_new_tape_label without a good excuse.
2621         
2622 2005-12-23  Kevin Till <ktill@zmanda.com>
2623         * client-src/client_util.c: change server_decrypt_option to
2624           server-decrypt-option
2625         * client-src/sendbackup.c:  change client_decrypt_option to
2626           client-decrypt-option
2627         * server-src/dumper.c:      ditto
2628         * common-src/amfeatures.c:  add crypt related amfeaturs
2629         * common-src/amfeatures.h:  ditto  
2630         * server-src/diskfile.c:    amfeatures checking and warns on
2631           mis-configuration
2632
2633 2005-12-23  Paddy Sreenivasan <paddy@zmanda.com>
2634          * restore-src/restore.c:
2635          * server-src/amtape.c:
2636          * server-src/taperscan.c : Make scan_init static function
2637
2638 2005-12-23  John Franks <jrfranks@zmanda.com>
2639         * server-src/taper.c: Reduce I/O's system call overhead by 30%
2640           in main read / write loop. 
2641
2642 2005-12-23  John Franks <jrfranks@zmanda.com>
2643         * recover-src/restore.c  Remove inapproriate aclose which caused
2644           broken restore pipe.
2645         * recover-src/extract_list.c  Fix and cleanup read_buffer()
2646           mainly to fix hole that drops parital buffer of data if end
2647           of file is reached or an error occured..  Touched up calling
2648           functions to make sure EOF/timeouts are handled correctly.
2649           Increased normal path read timeout value from on second to
2650           whatever READ_TIMEOUT is set to.
2651
2652 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
2653
2654         * restore-src/restore.c (restore): Remova an aclose.
2655
2656 2005-12-22  Jean-Louis Martineau <martineau@zmanda.com>
2657
2658         * restore-src/amidxtaped.c (cleanup): Function registered with atexit
2659           to remove the log file.
2660
2661 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
2662
2663         * server-src/Makefile.am (noinst_HEADERS): Add taperscan.h.
2664
2665 2005-12-20  John Franks <jrfranks@zmanda.com>
2666
2667         * restore-src/restore.c: Remove unused variables.
2668                                  Fix uninitialize reference to bytes_read.
2669         * server-src/amcheck.c:  Remove unused variables.
2670                                  Include taperscan.h for missing prototype.
2671         * server-src/amtape.c:   Remove unused variables.
2672                                  Include taperscan.h for missing prototype.
2673         * server-src/taper.c:    Remove unused variables.
2674                                  Minor indenting changes.
2675         * server-src/taperscan.c:Remove unused variables.
2676                                  Fix typo which assigns NULL rather than
2677                                   checks for NULL.
2678                                  Commented out reference to auto_pos which
2679                                   is assigned but never used...
2680
2681 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
2682
2683         * common-src/fileheader.c (parse_file_header): Parse '/' in part.
2684         * common-src/fileheader.c (build_header): Add space ' ' before "part".
2685
2686 2005-12-20  Jean-Louis Martineau <martineau@zmanda.com>
2687
2688         * server-src/reporter.c: Fix report of output size.
2689
2690 2005-12-19  Ian Turner <ian@zmanda.com>
2691         * server-src/taperscan.c: Check that automatic tape labels satisfy
2692         the labelstr.
2693
2694 2005-12-19  Ian Turner <ian@zmanda.com>
2695         * server-src/fileheader.c: Fix broken split-dump file headers.
2696
2697 2005-12-18  Jean-Louis Martineau <martineau@zmanda.com>
2698         Patch by Paul Bijnens
2699
2700         * server-src/amcheck.c: Tapelist file is regular file.
2701
2702 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
2703
2704         * restore-src/restore.c (get_block): Return a ssize_t.
2705         * restore-src/restore.c: convert ssize_t to long for printing.
2706         * restore-src/restore.c (restore>): Remove unused variable, outpipe,
2707            outpipe2, i.
2708
2709 2005-12-17  John R. Franks <jrfranks@zmanda.com>
2710
2711         * restore-src/restore.h (read_file_header, restore): Return a ssize_t
2712           instead of using a global variable bytes_read.
2713         * restore-src/restore.c: Use local variable instead of global
2714           bytes_read. Many memory management fixe. Fixe pipe handling,
2715         * restore-src/amrestore.c: Use new read_file_header and restore.
2716         * restore-src/amfetchdump.c: Use new read_file_header and restore.
2717
2718 2005-12-17  Jean-Louis Martineau <martineau@zmanda.com>
2719         With Kevin Till <ktill@zmanda.com>
2720
2721         * common-src/fileheader.c (parse_file_header): Fix parsing of first
2722           line.
2723         * common-src/fileheader.c (build_header): Print crypt after programi
2724            and only if it is needed.
2725
2726 2005-12-14  Ian Turner <ian@zmanda.com>
2727
2728         * common-src/alloc.c: Add new function vstrextend, which extends an
2729           existing string.
2730         * common-src/amanda.h: Define vstrextend.
2731         * example/amanda.conf.in: Document new option
2732           label_new_tapes. Change default labelstr.
2733         * man/xml-source/amcheck.8.xml: Emphasize the destructiveness of
2734           amcheck -w.
2735         * restore-src/restore.c: Use the new changer_find interface.
2736         * server-src/Makefile.am: Add new file taperscan.c
2737         * server-src/amcheck.c: Use the taper-scan algorithm in taperscan.c,
2738           instead of the previous separate amcheck implementation.
2739         * server-src/amtape.c: Use the taper-scan algorithm in taperscan.c,
2740           instead of the previous separate amtape implementation. Also, use
2741           the new changer_find interface for other kinds of tape finding.
2742         * server-src/changer.c: Eliminate changer_scan. Change the API to
2743           changer_find, so that callers can pass a user-data object, instead
2744           of using globals.
2745         * server-src/changer.h: Declare and document new changer_find
2746           interface.
2747         * server-src/conffile.c: Add new config option label_new_tapes.
2748         * server-src/conffile.h: ditto.
2749         * server-src/taper.c: Use the taper-scan algorithm in taperscan.c,
2750           instead of the previous separate taper implementation. Also,
2751           combine tape-label-reading for ZFTAPE and non-ZFTAPE drives (the
2752           difference only matters on writing).
2753         * server-src/taperscan.c: Refactor the taper-scan algorithm from
2754           taper, amtape, and amcheck. Implement label_new_tapes feature.
2755         * server-src/taperscan.h: Declare and document new taperscan
2756           interface.
2757         * tape-src/tapeio.c: Notice the difference between a non-Amanda tape
2758           and some other tape-reading problem.
2759         * tape-src/tapeio.h: New declarations.
2760
2761 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
2762
2763         * server-src/reporter.c (handle_success): On a taper line, the outsize
2764           should only count dump to tape, not flush.
2765
2766 2005-12-13  Jean-Louis Martineau <martineau@zmanda.com>
2767
2768         * server-src/amstatus.pl.in: Parse chunker DONE line to set output size.
2769
2770 2005-12-09  John Franks <jrfranks@zmanda.com>
2771
2772         * client-src/Makefile.am: Do not include tape library if
2773           configuring with --without-server option.
2774         * recover-src/Makefile.am: Do not include tape library if
2775           configuring with --without-server option.
2776
2777 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2778
2779         * configure.in: Move the size detection after detection of large
2780           file support. That change the size of off_t.
2781
2782 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2783
2784         * common-src/amanda.h: Set OFF_T_FMT to printf format of a off_t.
2785         * server-src/taper.c: Use OFF_T_FMT.
2786
2787 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2788
2789         * configure.in: Set LL_FMT correctly.
2790         * server-src/conffile.c: Use LL_FMT.
2791
2792 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2793
2794         * server-src/conffile.c: Maxdumpsize is a AM64.
2795         * server-src/planner.c: conf_maxdumpsize, total_size, tape_length and
2796           tape_mark are am64_t.
2797
2798 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2799
2800         * configure.in: Check for sizeof of many type. Check printf format of
2801           a 64-bit integers.
2802         * common-src/amanda.h: Typedef am64_t to a 64 bits signed type,i
2803           set AM64_FMT to the printf format of a am64_t variable.
2804         * server-src/conffile.c: New AM64 type.
2805         * server-src/conffile.h(getconf_am64): Prototype.
2806
2807 2005-12-08  Jean-Louis Martineau <martineau@zmanda.com>
2808
2809         * client-src/Makefile.am: Remove amqde.
2810         * client-src/sendsize.c: Remove code to call amqde.
2811         * client-src/amqde.c: Remove file.
2812         * configure.in: Remove '--with-qde' option.
2813
2814 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
2815
2816         * server-src/amindexd.c (reply, lreply, fast_lreply): Must use
2817           str_buffer_sizebuf instead of sizeof(bug).
2818
2819 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
2820
2821         * server-src/planner.c: Print the time in the FINISH line.
2822         * server-src/reporter.c: The estimate time is based on the planner
2823           FINISH line.
2824
2825 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
2826
2827         * common-src/Makefile.am (bsdsecurity_LDADD): Add ssh-security.
2828
2829 2005-12-05  Jean-Louis Martineau <martineau@zmanda.com>
2830
2831         * server-src/holding.c (scan_holdingdisk): Static function.
2832         * server-src/taper.c (signal_handler, install_signal_handlers): Ditto.
2833         * server-src/reporter.c (output_strange,do_postscript_output): Ditto.
2834
2835 2005-12-04  Jean-Louis Martineau <martineau@zmanda.com>
2836
2837         * server-src/logfile.c (logtype_str): Add important ','.
2838
2839 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
2840
2841         * server-src/planner.c (setup_estimate): Fix wrong order for argument.
2842
2843 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
2844
2845         * server-src/driver.c (start_some_dumps): Don't test for
2846           cur_idle == NOT_IDLE.
2847
2848 2005-12-03  Jean-Louis Martineau <martineau@zmanda.com>
2849
2850         * server-src/driverio.c (check_unfree_serial): New fonction to check
2851           unfreed serial number.
2852         * server-src/driverio.c (free_serial_dp): Set stable[s].dp to NULL.
2853         * server-src/driverio.h (check_unfree_serial): Prototype.
2854         * server-src/driver.c (main): Call check_unfree_serial.
2855
2856 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
2857         Patch by Franz Fischer
2858
2859         * config/acinclude.m4i: Fix for __alpha.
2860
2861 2005-12-02  Jean-Louis Martineau <martineau@zmanda.com>
2862
2863         * common-src/util.c: Debug must end with '\n'.
2864
2865 2005-12-01  Jean-Louis Martineau <martineau@zmanda.com>
2866
2867         * configure.in: Amanda support x86_64-unknown-linux-gnu.
2868
2869 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
2870
2871         * common-src/rsh-security.c (rsh_sendpkt): buf is a char array.
2872         * common-src/ssh-security.c (rsh_sendpkt): buf is a char array.
2873         * config/acinclude.m4i (AX_CREATE_STDINT_H): Newer macro.
2874
2875 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
2876
2877         * client-src/rundump.c: undef USE_RUNDUMP before define.
2878
2879 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
2880         Patch by Franz Fischer
2881
2882         * client-src/amqde.c: Fix compiler warning.
2883
2884 2005-11-30  Jean-Louis Martineau <martineau@zmanda.com>
2885         Patch by Franz Fischer
2886
2887         * common-src/event.h: Fix compiler warning.
2888         * server-src/conffile.h: Fix compiler warning.
2889
2890 2005-11-30  Kevin Till  <ktill@zmanda.com>
2891         
2892         * client-src/client_util.c add server-side, client-side encryption
2893           as well as custom compression. Custom compression patch is
2894           orginally created by Matthieu Lochegnies.
2895         * client-src/client_util.h Ditto
2896         * client-src/selfcheck.c Ditto
2897         * client-src/sendbackup-dump.c Ditto
2898         * client-src/sendbackup-gnutar.c Ditto
2899         * client-src/sendbackup.c Ditto
2900         * client-src/sendbackup.h Ditto
2901         * common-src/fileheader.c Ditto
2902         * common-src/fileheader.h Ditto
2903         * common-src/util.h Ditto
2904         * example/amanda.conf.in Ditto
2905         * man/xml-source/amanda.conf.5.xml Ditto
2906         * restore-src/amrestore.c Ditto
2907         * restore-src/restore.c Ditto
2908         * server-src/conffile.c Ditto
2909         * server-src/conffile.h Ditto
2910         * server-src/diskfile.c Ditto
2911         * server-src/diskfile.h Ditto
2912         * server-src/dumper.c Ditto
2913         
2914 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
2915
2916         * config/libtool.m4i: libtool 1.5.20
2917         * config/ltmain.sh: libtool 1.5.20
2918
2919 2005-11-29  Jean-Louis Martineau <martineau@zmanda.com>
2920         Patch by Franz Fischer
2921
2922         * common-src/fileheader.c (build_header): Declation before instruction.
2923         * restore-src/amfetchdump.c: Don't use C++ style comment.
2924         * restore-src/restore.c: Don't use C++ style comment.
2925         * server-src/amindexd.c (reply, lreply, fast_lreply): buf must be
2926            dynamicaly allocated.
2927         * server-src/logfile.h: Don't use C++ style comment.
2928         * server-src/taper.c (free_split_buffer): Test splitbuf against NULL.
2929
2930 2005-11-22 Paddy Sreenivasan <paddy@zmanda.com>
2931         * common-src/rsh-security.c: Fix x86_64 compile warnings.
2932         * common-src/ssh-security.c: Fix x86_64 compile warnings.
2933         * man/Makefile.am: Added EXTRA_XML files.
2934         * man/xml-source/amanda.8.xml: Added spanning patch variables.
2935         * man/xml-source/amrecover.8.xml: Added amfetchdump to SEE ALSO.
2936         * xslt/global.entities: Removed file.
2937
2938 2005-11-20  Jean-Louis Martineau <martineau@zmanda.com>
2939         Patch by Jon H. LaBadie
2940
2941         * changer-src/chg-disk.sh.in: Check permission on file access.
2942
2943 2005-11-17  Paddy Sreenivasan <paddy@zmanda.com>
2944         * man/entities/global.entities: New file. Added man page entities.
2945         * man/entities/xinclude.dtd: New file.
2946         * man/xslt/man.xsl: Correct include path for settings.xsl.
2947
2948 2005-11-15  John R. Franks <jrfranks@zmanda.com>
2949         * changer-src/scsi-changer-driver.c: Fix IA-64 compile warnings.
2950         * common-src/rsh-security.c: Fix IA-64 compile warnings.
2951         * common-src/ssh-security.c: Fix IA-64 compile warnings.
2952         * regex-src/engine.c: Fix IA-64 compile warnings.
2953         * regex-src/regexec.c: Fix IA-64 compile warnings.
2954
2955 2005-11-15  Paddy Sreenivasan <paddy@zmanda.com>
2956
2957         * configure.in:  Changed defaults for tape_dev and nr_tape_dev.
2958         * example/amanda.conf.in: Leave only changerfile definition
2959           uncommented.
2960         * man/xml-source/amanda.conf.5.xml: Updated defaults for 
2961           tapedev and rawtapedev
2962
2963 2005-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2964
2965         * server-src/planner.c: Fix incronly.
2966
2967 2005-11-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2968
2969         * man/Makefile.am: Set man_MANS,
2970
2971 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2972
2973         * man/Makefile.am: Set man5_MANS and man8_MANS,
2974           install-data-hook use them.
2975
2976 2005-11-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2977         Patch by Olivier Cherrier
2978
2979         * man/Makefile.am (install-data-hook): Set protection correclty
2980           for man5 and man8.
2981
2982 2005-10-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2983
2984         * common-src/util.c (bind_portrange): Increase port in all case.
2985
2986 2005-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2987
2988         * server-src/conffile.c: Allow runtapes==0.
2989         * server-src/driver.c: Use a global conf_runtapes. Don't start a
2990           taper if runtapes==0.
2991         * server-src/reporter.c: Don't print The next tapes if runtapes==0.
2992
2993
2994 2005-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
2995
2996         * Amanda 2.5.0b1 released.
2997         * configure.in: AM_INIT_AUTOMAKE(amanda, 2.5.0b1).
2998         * NEWS: Update for 2.5.0b1.
2999
3000 2005-10-25  Ian Turner <ian@zmanda.com>
3001         
3002         * man/Makefile.am: include amfetchdump.8.
3003         * man/xml-source/amadmin.8.xml: Add spanning-patch documentation.
3004         * man/xml-source/amanda.8.xml: ditto
3005         * man/xml-source/amrecover.8.xml: ditto
3006         * man/xml-source/amfetchdump.8.xml: ditto (new file)
3007         * man/xslt/global.entities: Add myself, Zmanda Inc.
3008         
3009 2005-10-24  Jean-Louis Martineau <martineau@zmanda.com>
3010
3011         * client-src/sendsize.c (getsize_wrapper): Add a NULL at the end of
3012           the argvchild array.
3013
3014 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
3015
3016         * server-src/server_util.c (getcmd): Print DEBUG to stderr.
3017
3018 2005-10-20  Ian Turner <ian@zmanda.com>
3019
3020         * configure.in: Check for xsltproc.
3021         * man/Makefile.am: Properly build, clean, and distribute generated
3022           manpages from XML source.
3023         * man/amadmin.8: Remove from CVS
3024         * man/amanda.8: Remove from CVS
3025         * man/amanda.conf.5: Remove from CVS
3026         * man/amcheck.8: Remove from CVS
3027         * man/amcheckdb.8: Remove from CVS
3028         * man/amcleanup.8: Remove from CVS
3029         * man/amdd.8: Remove from CVS
3030         * man/amdump.8: Remove from CVS
3031         * man/amflush.8: Remove from CVS
3032         * man/amgetconf.8: Remove from CVS
3033         * man/amlabel.8: Remove from CVS
3034         * man/ammt.8: Remove from CVS
3035         * man/amoverview.8: Remove from CVS
3036         * man/amplot.8: Remove from CVS
3037         * man/amrecover.8: Remove from CVS
3038         * man/amreport.8: Remove from CVS
3039         * man/amrestore.8: Remove from CVS
3040         * man/amrmtape.8: Remove from CVS
3041         * man/amstatus.8: Remove from CVS
3042         * man/amtape.8: Remove from CVS
3043         * man/amtapetype.8: Remove from CVS
3044         * man/amtoc.8: Remove from CVS
3045         * man/amverify.8: Remove from CVS
3046         * man/amverifyrun.8: Remove from CVS
3047         * man/xml-source/amadmin.8.xml: Add from xml-docs
3048         * man/xml-source/amanda.8.xml: Add from xml-docs
3049         * man/xml-source/amanda.conf.5.xml: Add from xml-docs
3050         * man/xml-source/amcheck.8.xml: Add from xml-docs
3051         * man/xml-source/amcheckdb.8.xml: Add from xml-docs
3052         * man/xml-source/amcleanup.8.xml: Add from xml-docs
3053         * man/xml-source/amdd.8.xml: Add from xml-docs
3054         * man/xml-source/amdump.8.xml: Add from xml-docs
3055         * man/xml-source/amflush.8.xml: Add from xml-docs
3056         * man/xml-source/amgetconf.8.xml: Add from xml-docs
3057         * man/xml-source/amlabel.8.xml: Add from xml-docs
3058         * man/xml-source/ammt.8.xml: Add from xml-docs
3059         * man/xml-source/amoverview.8.xml: Add from xml-docs
3060         * man/xml-source/amplot.8.xml: Add from xml-docs
3061         * man/xml-source/amrecover.8.xml: Add from xml-docs
3062         * man/xml-source/amreport.8.xml: Add from xml-docs
3063         * man/xml-source/amrestore.8.xml: Add from xml-docs
3064         * man/xml-source/amrmtape.8.xml: Add from xml-docs
3065         * man/xml-source/amstatus.8.xml: Add from xml-docs
3066         * man/xml-source/amtape.8.xml: Add from xml-docs
3067         * man/xml-source/amtapetype.8.xml: Add from xml-docs
3068         * man/xml-source/amtoc.8.xml: Add from xml-docs
3069         * man/xml-source/amverify.8.xml: Add from xml-docs
3070         * man/xml-source/amverifyrun.8.xml: Add from xml-docs
3071         * man/xslt/expand-sambadoc.xsl: Add from xml-docs
3072         * man/xslt/global.entities: Add from xml-docs
3073         * man/xslt/man.xsl: Add from xml-docs
3074         * man/xslt/settings.xsl: Add from xml-docs
3075
3076 2005-10-20  Jean-Louis Martineau <martineau@zmanda.com>
3077
3078         * server-src/amstatus.pl.in: a FLUSH command can't be in an estimate
3079           phase.
3080         * server-src/driver.c: Start autoflush while waiting for estimate.
3081         * server-src/planner.c: Write FLUSH line before estimate.
3082
3083 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
3084         Patch by John R. Franks <jrfranks@zmanda.com>
3085
3086         * server-src/taper.c (create_split_buffer): Should not use sizeof().
3087
3088 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
3089
3090         * server-src/taper.c (read_file): Move the putresult(DONE) to the
3091           right place, some cleanup.
3092
3093 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
3094
3095         * server-src/planner.c: Increase DEFAULT_DUMPRATE to 1024 K/s.
3096
3097 2005-10-17  Ian Turner <ian@zmanda.com>
3098
3099         * Changelog: Fix line breaks.
3100         * restore-src/restore.c: Give more useful FSF error messages.
3101         * recover-src/extract_list.c: Do better error checking on passed port
3102           number.
3103         * common-src/tapelist.c: Do proper memory management of strings.
3104           Otherwise really bad stuff happens.
3105
3106 2005-10-17  Jean-Louis Martineau <martineau@zmanda.com>
3107
3108         * server-src/taper.c: Set SIGPIPE to SIG_IGN, the code already
3109           handle it correctly.
3110
3111 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
3112
3113         * server-src/taper.c (signal_handler): Don't REMOVE_SHARED_MEMORY, it
3114           is done by exit.
3115
3116 2005-10-16  Jean-Louis Martineau <martineau@zmanda.com>
3117
3118         * server-src/driverio.c (serial2disk): Print str if error.
3119
3120 2005-10-15  Paddy Sreenivasan <paddy@zmanda.com>
3121
3122         * server-src/taper.c: Shared memory need not be removed in normal paths.
3123           Done as part of atexit. 
3124
3125 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
3126         Patch by John R. Franks <jrfranks@zmanda.com>
3127
3128         * changer-src/scsi-aix.c: calls to open/openx guages success by
3129           checking for a file descriptor greater than 0.  0 is also a valid
3130           descriptor so the check should be >= 0.
3131           Calls to SCSI_OpenDevice does not check for error return.
3132           Calls to SCSI_OpenDevice does not check for error return.
3133           Calls to SCSI_OpenDevice does not check for error return.
3134           Call to opendir() does not check for error.
3135         * changer-src/scsi-hpux_new.c: Ditto.
3136         * changer-src/scsi-irix.c: Ditto.
3137         * changer-src/scsi-linux.c: Ditto.
3138         * changer-src/scsi-solaris.c: Ditto.
3139         * client-src/selfcheck.c: Call to open() does not check for error.
3140         * client-src/sendbackup.c: Call to freopen() does not check for error.
3141         * client-src/sendsize.c: Call to open() does not check for error.
3142         * common-src/bsd-security.c: Call to open() does not check for error.
3143         * common-src/file.c: Call to open() does not check for error.
3144         * restore-src/amrestore.c: Calls to tape_open() do not always check
3145           return code.  open() is called with open flags set to 0
3146           (Call always fails with an EINVAL)
3147         * restore-src/restore.c: fopen() return error check  is "fopen() < 0".
3148           fopen returns a pointer and the proper check should be
3149           "fopen() == NULL".
3150           Call to open() does not check for error.
3151         * tape-src/tapeio.c: tape_open() is called here and other places with a
3152           variable number of arguments, and yet is not defined as a varargs
3153           function...
3154         * tape-src/tapeio.h: Prototype for tape_open.
3155
3156 2005-10-15  Jean-Louis Martineau <martineau@zmanda.com>
3157         Patch by Paddy Sreenivasan <paddy@zmanda.com>
3158
3159         * client-src/sendsize.c: Log message changes.
3160         * server-src/taper.c: And an atexit function to detach shared memory.
3161           Trap some signal and detach shared memory.
3162
3163 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
3164
3165         * regex-src/regcomp.c (findmust): Initialized start to NULL.
3166
3167 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
3168         Patch by John R. Franks <jrfranks@zmanda.com>
3169
3170         * regex-src/cclass.h: Fixed to add missing braces and reformat long
3171           strings to fix in 80 columns.
3172         * regex-src/cname.h: Fixed by adding braces and tidying up code a bit.
3173         * regex-src/regcomp.c (p_ere): Initialized prevback and prevfwd to 0.
3174           ifdef out unused mcsub, mcin and mcfind functions.
3175           (findmust) Initialized newstart to NULL.
3176         * regex-src/regerror.c: Adds missing braces.
3177         * regex-src/regexec.c (nope): Use only in assert, so it is not only
3178           defined if NDEBUG is not defined.
3179
3180 2005-10-14  Jean-Louis Martineau <martineau@zmanda.com>
3181         Patch by John R. Franks <jrfranks@zmanda.com>
3182
3183         * common-src/krb4-security.c (krb4_security_dummy): Rename from dummy,
3184           it is not static int.
3185         * common-src/krb5-security.c (krb5_security_dummy): Rename from dummy,
3186           it is not static int.
3187
3188 2005-10-13  Jean-Louis Martineau <martineau@zmanda.com>
3189
3190         * common-src/util.c (bind_portrange): New argument proto.
3191           Check for reserved port.
3192         * common-src/util.h (bind_portrange): New prototype.
3193         * common-src/bsd-security.c (bind_portrange): New prototype.
3194         * common-src/dgram.c: Add "udp" as argument to bind_portrange.
3195         * common-src/stream.c: Add "tcp" as argument to bind_portrange.
3196
3197 2005-10-12  Jean-Louis Martineau <martineau@zmanda.com>
3198
3199         * restore-src/amidxtaped.c (check_security_buffer): i is a socklen_t.
3200         * restore-src/amidxtaped.c (main): Remove i, fd, amrestore_path, pid,
3201           isafile, stat_tape, tapename, s, fp, ch and errstr variable.
3202
3203 2005-10-11  Ian Turner <ian@zmanda.com>
3204         Patch by  Jean-Louis Martineau <martineau@zmanda.com>
3205         
3206         * restore-src/amfetchdump.c: Remove unused variable debug.
3207         * restore-src/amidxtaped.c: Remove lock_logfile(), which is also 
3208           in restore.c.
3209         * restore-src/Makefile.am: Include libamanda twice, to fix build 
3210           on some machines.
3211
3212 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3213
3214         * restore-src/Makefile (noinst_HEADERS): Add restore.h.
3215         * restore-src/restore.c (search_tapes): Add the fourth argument to
3216           read_file_header.
3217
3218 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3219
3220         * server-src/conffile.c: dpcur.s_split_diskbuffer must be initialize
3221           to 0.
3222         * server-src/reporter.c (handle_partial): Set repdata to the result
3223           of handle_success.
3224         * server-src/taper.c: Set the first-file.
3225
3226 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3227
3228         * client-src/client_util.c, server-src/amcheck.c,
3229           server-src/reporter.c: Add missing type for arguments.
3230
3231 2005-10-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3232
3233         * server-src/taper.c (tape_writer_side): detach_buffers on normal exit.
3234
3235 2005-10-10  Ian Turner <ian@zmanda.com>
3236
3237         * server-src/amtape.h: Apply tape-spanning patch by John Stange
3238           <building@cs.umd.edu> as ported to 2.5.0 by Ian Turner, with
3239           contributions by Christopher Pascoe <c.pascoe@itee.uq.edu.au>.
3240         * configure.in: Ditto
3241         * amplot/Makefile.am: Ditto
3242         * changer-src/Makefile.am: Ditto
3243         * client-src/Makefile.am: Ditto
3244         * common-src/Makefile.am: Ditto
3245         * common-src/amanda.h: Ditto
3246         * common-src/amfeatures.c: Ditto
3247         * common-src/amfeatures.h: Ditto
3248         * common-src/fileheader.c: Ditto
3249         * common-src/fileheader.h: Ditto
3250         * common-src/match.c: Ditto
3251         * common-src/tapelist.c: Ditto
3252         * common-src/tapelist.h: Ditto
3253         * example/amanda.conf.in: Ditto
3254         * man/Makefile.am: Ditto
3255         * recover-src/amrecover.c: Ditto
3256         * recover-src/amrecover.h: Ditto
3257         * recover-src/display_commands.c: Ditto
3258         * recover-src/extract_list.c: Ditto
3259         * restore-src/Makefile.am: Ditto
3260         * restore-src/amfetchdump.c: Ditto
3261         * restore-src/amfetchdump.h: Ditto
3262         * restore-src/amidxtaped.c: Ditto
3263         * restore-src/amrestore.c: Ditto
3264         * restore-src/restore.c: Ditto
3265         * restore-src/restore.h: Ditto
3266         * server-src/Makefile.am: Ditto
3267         * server-src/amadmin.c: Ditto
3268         * server-src/amindexd.c: Ditto
3269         * server-src/amoverview.pl.in: Ditto
3270         * server-src/amtoc.pl.in: Ditto
3271         * server-src/amverify.sh.in: Ditto
3272         * server-src/changer.c: Ditto
3273         * server-src/conffile.c: Ditto
3274         * server-src/conffile.h: Ditto
3275         * server-src/disk_history.c: Ditto
3276         * server-src/disk_history.h: Ditto
3277         * server-src/diskfile.c: Ditto
3278         * server-src/diskfile.h: Ditto
3279         * server-src/driver.c: Ditto
3280         * server-src/driverio.c: Ditto
3281         * server-src/find.c: Ditto
3282         * server-src/find.h: Ditto
3283         * server-src/holding.c: Ditto
3284         * server-src/holding.h: Ditto
3285         * server-src/logfile.c: Ditto
3286         * server-src/logfile.h: Ditto
3287         * server-src/planner.c: Ditto
3288         * server-src/reporter.c: Ditto
3289         * server-src/server_util.c: Ditto
3290         * server-src/server_util.h: Ditto
3291         * server-src/taper.c: Ditto
3292
3293 2005-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3294
3295         * server-src/taper.c: Change message: on new tape due to
3296
3297 2005-10-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3298         Patch by John R. Franks 
3299
3300         * common-src/amflock.c (main): Don't call safe_fd, it's not needed
3301           during configure.
3302         * configure.in: '#include <sys/types.h>' in the check
3303           'for Linux like scsi support (sg)'
3304
3305 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3306
3307         * client-src/amandad.c (writebuf): Call waitpid in the parent.
3308
3309 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3310
3311         * client-src/amandad.c (service_delete): Remove call to sleep.
3312         * common-src/bsd-security.c: Add bsdprintf. Add more debug.
3313           The handle is used as a string, instead of 2 int.
3314
3315 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3316
3317         * common-src/rsh-security.c: rshprintf should call dbprint.
3318         * common-src/ssh-security.c: rshprintf should call dbprint, add many
3319           rshprintf.
3320         * common-src/event.c: Add eventprintf, use it. Add debug_prefix_time
3321           to the log. 
3322
3323 2005-10-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3324
3325         * common-src/stream.c: len is a socklen_t.
3326         * server-src/amindexd.c: Add socklen as a socklen_t.
3327         * restore-src/amidxtaped.c: Add socklen as a socklen_t.
3328         * tape-src/tapetype.c: Change printf format.
3329         * server-src/amlabel.c: Add a variable isa_zftape. init fd to -1.
3330         * server-src/dumper.c: Init outfd to -1.
3331         * common-src/file.c (areads_getbuf): First argument is const.
3332
3333 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3334
3335         * server-src/reporter.c: Don't trunk hostname/diskname in
3336           'FAILURE AND STRANGE DUMP SUMMARY' section.
3337
3338 2005-10-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3339
3340         * server-src/chunker.c (main): Remove outfd.
3341
3342 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3343
3344         * server-src/conffile.c, server-src/diskfile.c, server-src/infofile.c,
3345           client-src/getfsent.c, common-src/statfs.c, common-src/token.c
3346           (main): Remove fd declaration.
3347
3348 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3349
3350         * client-src/runtar.c: 'e' and 'bdf' are only needed if GNUTAR.
3351
3352 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3353
3354         * common-src/sl.c (insert_sort_sl). Typo.
3355
3356 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3357
3358         * config/config.guess: Update from automake 1.9.5.
3359         * config/config.sub: Update from automake 1.9.5.
3360         * config/depcomp: Update from automake 1.9.5.
3361         * config/install-sh: Update from automake 1.9.5.
3362         * config/missing: Update from automake 1.9.5.
3363         * config/mkinstalldirs: Update from automake 1.9.5.
3364         * config/ltmain.sh: Update from libtool-1.5.16.
3365         * config/libtool.m4i: Update from libtool-1.5.16.
3366
3367 2005-09-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3368
3369         * common-src/bsd-security.c: Fix small bug.
3370
3371 2005-09-22  John R. Jackson <jrj@purdue.edu>
3372
3373         * configure.in: If --without-server is specified, either on the
3374           command line or via config.site, make sure --without-restore
3375           is also in effect.  Avoids compilation errors if mismatched.
3376         * example/config.site: Document above.
3377
3378 2005-09-21  John R. Jackson <jrj@purdue.edu>
3379
3380         * server-src/getconf.c: Allow CLIENT_LOGIN to be retrieved via
3381           "amgetconf build.CLIENT_LOGIN".
3382
3383 2005-09-21  John R. Jackson <jrj@purdue.edu>
3384
3385         * server-src/amlabel.c: 'int fd' is only needed if HAVE_LINUX_ZFTAPE_H
3386           is defined.
3387
3388 2005-09-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3389
3390         * server-src/amlabel.c: 'int fd' is needed.
3391
3392 2005-09-20  John R. Jackson <jrj@purdue.edu>
3393
3394         * server-src/reporter.c: Fix minor typo noticed by Scott R. Burns
3395           <Scott.Burns@Netcontech.Com>.
3396
3397 2005-09-20  John R. Jackson <jrj@purdue.edu>
3398
3399         * common-src/file.c: Create safe_fd() to do common file descriptor
3400           safety operations at the start of every program.  In addition
3401           to closing everything from three on up that used to be done
3402           with explicit code, make sure stdin, stdout and stderr are
3403           open per a potential (but unlikely) security report from Ben
3404           Schwarz <bschwarz@EECS.berkeley.EDU>.
3405         * common-src/amanda.h: Ditto.
3406         * client-src/amandad.c: Ditto.
3407         * client-src/calcsize.c: Ditto.
3408         * client-src/getfsent.c: Ditto.
3409         * client-src/killpgrp.c: Ditto.
3410         * client-src/rundump.c: Ditto.
3411         * client-src/runtar.c: Ditto.
3412         * client-src/selfcheck.c: Ditto.
3413         * client-src/sendbackup.c: Ditto.
3414         * client-src/sendsize.c: Ditto.
3415         * client-src/versionsuffix.c: Ditto.
3416         * common-src/amflock.c: Ditto.
3417         * common-src/rsh-security.c: Ditto.
3418         * common-src/ssh-security.c: Ditto.
3419         * common-src/statfs.c: Ditto.
3420         * common-src/token.c: Ditto.
3421         * recover-src/amrecover.c: Ditto.
3422         * restore-src/amidxtaped.c: Ditto.
3423         * restore-src/amrestore.c: Ditto.
3424         * server-src/amadmin.c: Ditto.
3425         * server-src/amcheck.c: Ditto.
3426         * server-src/amcleanupdisk.c: Ditto.
3427         * server-src/amflush.c: Ditto.
3428         * server-src/amindexd.c: Ditto.
3429         * server-src/amlabel.c: Ditto.
3430         * server-src/amlogroll.c: Ditto.
3431         * server-src/amtape.c: Ditto.
3432         * server-src/amtrmidx.c: Ditto.
3433         * server-src/amtrmlog.c: Ditto.
3434         * server-src/chunker.c: Ditto.
3435         * server-src/conffile.c: Ditto.
3436         * server-src/diskfile.c: Ditto.
3437         * server-src/driver.c: Ditto.
3438         * server-src/getconf.c: Ditto.
3439         * server-src/infofile.c: Ditto.
3440         * server-src/planner.c: Ditto.
3441         * server-src/reporter.c: Ditto.
3442         * server-src/taper.c: Ditto.
3443         * server-src/dumper.c: Ditto plus remove incorrect chdir to hard
3444           coded "/tmp/amanda".
3445
3446 2005-09-20  John R. Jackson <jrj@purdue.edu>
3447
3448         * client-src/calcsize.c: Fix format string.
3449         * server-src/diskfile.c: Fix compiler warnings.
3450         * server-src/planner.c: Fix compiler warnings.
3451
3452 2005-09-20  John R. Jackson <jrj@purdue.edu>
3453
3454         * common-src/amanda.h: Add dbreopen() so debug file can be closed
3455           and then reopened if needed.
3456         * common-src/debug.c: Ditto.
3457         * client-src/runtar.c: Close the debug file (fd 10) around the
3458           exec of GNU tar.  Newer versions complain about stray file
3459           descriptors.
3460         * server-src/getconf.c: Use dbreopen() to create the debug file.
3461           Do not try to open config file unless needed (allows clients to
3462           use build.XXX/dbopen.XXX/dbclose.XXX).
3463
3464 2005-09-20  John R. Jackson <jrj@purdue.edu>
3465
3466         * client-src/sendbackup-dump.c: Ignore a new message from Solaris
3467           vxdump.
3468
3469 2005-09-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3470
3471         * common-src/bsd-security.c: Generate a unique event_id, thei
3472           proto_handle is not always unique.
3473
3474 2005-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3475
3476         * server-src/amverify.sh.in: Don't check for EOI, it's buggy.
3477
3478 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3479
3480         * server-src/driverio.c: Don't save history with size < 0.
3481
3482 2005-09-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3483         Patch by Geert Uytterhoeven <geert@linux-m68k.org>
3484
3485         * server-src/planner.c: Don't use history with size < 0.
3486
3487 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3488         Patch Paul Bijnens <paul.bijnens@xplanation.com>
3489
3490         * server-src/planner.c(delay_dumps): Delay incremental dump also
3491           larger than tape.
3492
3493 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3494         Patch by Orion Poplawski <orion@cora.nwra.com>
3495
3496         * server-src/amoverview.pl.in: Add options -last, -num0 and -togo0.
3497         * man/amoverview.8: Document -last, -num0 and -togo0.
3498
3499 2005-09-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3500         Patch by Orion Poplawski <orion@cora.nwra.com>
3501
3502         * server-src/driver.c: Make tape_length and tape_left unsigned long.
3503
3504 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3505         Patch by Stefan G. Weichinger <monitor@oops.co.at>
3506
3507         * client-src/sendbackup-gnutar.c: Added RE for new Samba-releases.
3508
3509 2005-07-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3510
3511         Bug found by John E Hein <jhein@timing.com>.
3512         * server-src/amadmin.c: Fix of by one with NB_HISTORY.
3513         * server-src/infofile.c:x: Fix of by one with NB_HISTORY.
3514
3515 2005-06-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3516         Patch by Jay Fenlason <fenlason@redhat.com>
3517
3518         * client-src/sendsize.c: Fix dbprintf call.
3519
3520 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3521             Stefan G. Weichinger <monitor@oops.co.at>
3522
3523         * example/amanda.conf.in: edited the default-value for the
3524                                   holdingdisk-usage to "use -100 Mb".
3525                                   The old value "use 290 Mb" didn't make much
3526                                   sense anymore.
3527
3528 2005-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3529
3530         * server-src/amverifyrun.sh.in: Remove buggy space.
3531
3532 2005-05-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3533
3534         * server-src/amadmin.c: Add [--days <num>] argument to tape subcommand.
3535
3536 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3537
3538         * example/amanda.conf.in: Update from 2.4.5.
3539
3540 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3541
3542         * docs/*: New documentation from xml-docs.
3543         * docs/Makefile.am (pkgdata_DATA): Update for new files.
3544
3545 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3546
3547         * man/Makefile.am (COMMON_MAN_PAGES): Add amanda.conf.5.
3548
3549 2005-05-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3550
3551         * man/*: Use man pages form xml-docs.
3552         * configure.in (AC_CONFIG_FILES): Remove all man pages.
3553         * man/Makefile.am (EXTRA_DIST): Add amadmin.8 amanda.8 amanda.conf.5 
3554           amcheck.8 amcheckdb.8 amcleanup.8 amdump.8 amflush.8 amgetconf.8
3555           amlabel.8 amoverview.8 amreport.8 amrecover.8 amrmtape.8 amstatus.8
3556           amtapetype.8 amtoc.8 amverify.8 amverifyrun.8
3557
3558 2005-05-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3559
3560         * common-src/rsh-security.c (net_read_fillbuf): Read only a packet,
3561           nothing more.
3562         * common-src/ssh-security.c (net_read_fillbuf): Read only a packet,
3563           nothing more.
3564         * common-src/rsh-security.c (conn_put): Don't kill the process, only do
3565           a wait with WNOHANG.
3566         * common-src/ssh-security.c (conn_put): Don't kill the process, only do
3567           a wait with WNOHANG.
3568
3569 2005-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3570
3571         * changer-src/chg-zd-mtx.sh.in: Improve handling of
3572           "Unknown Storage Element Loaded".
3573
3574 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3575         - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144052
3576
3577         * server-src/amverifyrun.sh.in: Filter changer log file.
3578
3579 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3580
3581         * server-src/amcheck.c: Improve messages.
3582
3583 2005-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3584
3585         * client-src/sendsize.c (generic_calc_estimates): Use amname instead
3586           of dirname in message.
3587
3588 2005-03-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3589
3590         * server-src/conffile.h: Rename getcont_unit_divisor to
3591           getconf_unit_divisor.
3592         * server-src/amadmin.c: Use getconf_unit_divisor.
3593         * server-src/amcheck.c: Use getconf_unit_divisor.
3594         * server-src/conffile.c: Use getconf_unit_divisor.
3595         * server-src/conffile.c (unit_divisor): Init to 1.
3596         * server-src/reporter.c: Use getconf_unit_divisor. The mb macro always
3597           divide by 1024. Add the du macro. Use mb or du where appropriate.
3598
3599 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3600
3601         * server-src/infofile.h (history_t): Add secs field.
3602         * server-src/infofile.c (read_txinfofile): Parse info file with secs
3603           in history.
3604         * server-src/infofile.c (write_txinfofile): Write secs in history.
3605         * server-src/driverio.c (update_info_dumper): Update secs in history.
3606
3607 2005-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3608
3609         * server-src/planner.c: Improve server estimate.
3610         * server-src/planner.c: Write server estimate like others estimate.
3611
3612 2005-02-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3613
3614         * server-src/amstatus.pl.in: last_level is negative, on new disk.
3615
3616 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3617
3618         * server-src/amstatus.pl.in: Use '-?' to match negative values
3619           instead of '-*'.
3620
3621 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3622         Patch by Orion Poplawski <orion@cora.nwra.com>
3623
3624         * server-src/amoverview.pl.in: Print the total number of level 0
3625           dumps for each disk and the number of runs until the last level 0
3626           dump will be overwritten.
3627
3628 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3629         Patch by Phil Homewood <pdh@snapgear.com>
3630
3631         * server-src/amoverview.pl.in: Add -skipmissed option.
3632
3633 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3634
3635         * server-src/driver.c: Print the chunksize to the log.
3636
3637 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3638
3639         * client-src/calcsize.c: Print estimate to STDERR.
3640         * client-src/sendsize.c (generic_calc_estimates): Read calcsize result,
3641           and send it to amandad. Write debuging message.
3642
3643 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3644         Patch by Franz G. Fischer
3645
3646         * server-src/conffile.c: Adds a value type LONG and a val_t.l long
3647           union member and changes get_number() to return long and
3648           get_simple() to fill val_t.l if called for a long value.  The
3649           get_simple() calls have been changed to LONG for typetype_t.blocksize
3650           typetype_t.length, typetype_t.filemark, holdingdisk_t.disksize and
3651           holdingdisk_t.chunksize.
3652
3653 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3654
3655         * server-src/amdump.sh.in: Redirect in append mode.
3656         * server-src/driver.c: Set stdout and stderr to not buffered.
3657         * server-src/planner.c: Set stderr to not buffered.
3658           Print 'setup_estimate:' on one line.
3659         * server-src/amstatus.pl.in: Parse new 'setup_estimate:' line.
3660
3661 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3662
3663         * client-src/calcsize.c: Improve estimate for sparse file and count
3664           space for filenames.
3665
3666 2005-02-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3667
3668         * server-src/planner.c: Improve message if no incremental estimate.
3669
3670 2004-12-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3671         Patch by Christopher Pascoe <c.pascoe@itee.uq.edu.au>
3672
3673         * common-src/match.c (match_glob, match_tar): Don't amfree(regex)
3674           before calling error().
3675
3676 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3677
3678         * server-src/driver.c (startaflush): Use ALGO_SMALLEST if nothing fit.
3679
3680 2004-11-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3681
3682         * server-src/driver.c: Typo.
3683
3684 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3685
3686         * restore-src/amrestore.c: Should now work correctly with empty file.
3687         * server-src/amverify.sh.in: Parse "End-of-Information detected."
3688           message from amrestore.
3689
3690 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3691
3692         * server-src/driver.c: tape_left should not become negative.
3693
3694 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3695         Patch by Orion Poplawski <orion@cora.nwra.com>
3696
3697         * server-src/diskfile.c: Parse negative spindle (-1).
3698
3699 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3700
3701         * server-src/amadmin.c: Balance subcommand use displayunit.
3702         * server-src/amcheck.c: Small cleanup.
3703
3704 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3705
3706         * restore-src/amrestore.c: Undo patch from 2004-11-11, it break
3707           the file: dirver.
3708
3709 2004-11-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3710
3711         * server-src/amstatus.pl.in: Remove trace.
3712
3713 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3714
3715         * server-src/diskfile.c: Compilation fix.
3716
3717 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3718
3719         * server-src/conffile.c: Parse displayunit,
3720           new fonction getcont_unit_divisor().
3721         * server-src/conffile.h: Prototype of getcont_unit_divisor().
3722         * server-src/amcheck.c: Use displayunit to display holding disk size.
3723         * server-src/amstatus.pl.in: Use displayunit to display dump size.
3724         * server-src/reporter.c: use displayunit to display dump size.
3725         * Document displayunit.
3726
3727 2004-11-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3728
3729         * server-src/reporter.c: Change 'Daily' for 'Incr.'.
3730
3731 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3732
3733         * server-src/amstatus.pl.in Fix for level -1.
3734
3735 2004-11-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3736         Patch by Daniel Widyono <widyono@seas.upenn.edu>
3737
3738         * changer-src/chg-zd-mtx.sh.in: Fix for library with barcode.
3739
3740 2004-11-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3741
3742         * restore-src/amrestore.c: Read empty file.
3743
3744 2004-11-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3745
3746         * tape-src/tapetype.c: Use new tape.
3747
3748 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3749
3750         * server-src/amstatus.pl.in: Display partial estimate.
3751
3752 2004-11-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3753
3754         * server-src/diskfile.c (read_diskline): A spindle must be numerical.
3755
3756 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3757
3758         * server-src/holding.c (rename_tmp_holding): Always rename files.
3759
3760 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3761
3762         * server-src/driver.c: Print message when too many retry.
3763         * server-src/amstatus.pl.in: Detect a failed dump after too many retry.
3764         * amplot/amplot.awk: Parse these message.
3765
3766 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3767
3768         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
3769           if dumper returns DONE and taper returns TRYAGAIN.
3770
3771 2004-10-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3772
3773         * server-src/driver.c (dump_to_tape): Don't retry a dump indefinitely
3774           if dumper returns TRYAGAIN and taper returns DONE.
3775
3776 2004-10-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3777
3778         * server-src/amflush.c: Don't start a driver if nothing to flush.
3779
3780 2004-10-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3781         Patch by Eric Siegerman <erics@telepres.com>
3782
3783         * example/3hole.ps: Fix for multiple tape.
3784
3785 2004-10-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3786
3787         * server-src/amverify.sh.in: Terminate if no tape online.
3788
3789 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3790
3791         * server-src/amadmin.c (main): Call check_dumpuser() as soon as posible.
3792
3793 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3794
3795         * server-src/conffile.c (getconf_byname): Special case for typ == BOOL.
3796
3797 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3798
3799         * server-src/planner.c (promote_hills): Use dumpcycle instead of
3800           tapecycle.
3801         * example/amanda.conf.in: Remove warning for tapecyle set to inf.
3802
3803 2004-09-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3804
3805         * server-src/amadmin.c (balance): Don't core dump if DUMPCYLE is too
3806           big.
3807
3808 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3809
3810         * tape-src/tapetype.c: New -o option, doesn't overwrite amanda
3811           tape without -o.
3812         * man/amtapetype.8.in: Document new -o option.
3813
3814 2004-09-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3815
3816         * server-src/amstatus.pl.in: Works with failed dump to tape.
3817
3818 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3819
3820         * client-src/sendbackup-gnutar.c (end_backup): Write warning message
3821           in not fatal error.
3822         * server-src/dumper.c (process_dumpline): Parse warning message.
3823         * server-src/reporter.c (handle_strange): Print warning message in
3824           the STRANGE summary.
3825
3826 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3827
3828         * server-src/driverio.c (free_serial): Set stable[s].dp to NULL.
3829         * server-src/driverio.c (disk2serial): Check that stable[s].dp == NULL.
3830
3831 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3832         Patch by Joe Rhett <jrhett@isite.net>
3833
3834         * common-src/alloc.c (safe_env): Keep SYSTEMROOT if __CYGWIN__.
3835
3836 2004-08-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3837         Patch by Orion Poplawski <orion@cora.nwra.com>
3838
3839         * server-src/conffile.c (copy_dumptype): Copy maxpromoteday.
3840
3841 2004-08-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3842
3843         * client-src/selfcheck.c (check_disk): More check for CALCSIZE.
3844
3845 2004-08-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3846
3847         * common-src/amfeatures.h (fe_selfcheck_calcsize): New feature.
3848         * common-src/amfeatures.c (am_init_feature_set): Set
3849           fe_selfcheck_calcsize.
3850         * client-src/selfcheck.c: Check if calcsize binary is available if
3851           it is needed.
3852         * server-src/amcheck.c (start_host): Call selfcheck with CALCSIZE
3853           if it support fe_selfcheck_calcsize.
3854
3855 2004-08-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3856
3857         * man/amanda.8.in: Document 'estimate' dumptype option.
3858
3859 2004-08-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3860
3861         * server-src/amrmtape.sh.in: Understand history info.
3862
3863 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3864
3865         * server-src/driver.c: Typo.
3866
3867 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3868
3869         * server-src/amstatus.pl.in: Parse CONTINUE and RQ-MORE-DISK line,
3870           print if a dump is waiting for holding disk space (roomq).
3871
3872 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3873
3874         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
3875           Don't call free_serial().
3876         * server-src/driver.c (dumper_result): Call free_serial_dp(dp).
3877         * server-src/driverio.c (dumper_cmd): Remove CONTINUE cmd.
3878         * server-src/driverio.c (chunker_cmd): Print serial number for CONTINUE
3879           command.
3880         * server-src/driverio.c (disk2serial): Try to find a 'dp' before
3881           allocating a new serial.
3882         * server-src/driverio.c (free_serial_dp): New function to remove the
3883           serial for a dp.
3884         * server-src/driverio.h (free_serial_dp): Prototype.
3885         * server-src/chunker.c (databuf_flush): Read serial number for CONTINUE
3886           command.
3887
3888 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3889
3890         * server-src/planner.c (getsize): Do SERVER estimate, call sendsize with
3891           CALCSIZE estimate.
3892
3893 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3894
3895         * client-src/calcsize.c: Support exclude and include like gnutar,
3896           change in program argument.
3897         * client-src/sendsize.c: Execute calcsize as requested.
3898         * common-src/amfeatures.h (fe_calcsize_estimate): New feature.
3899         * common-src/amfeatures.c (am_init_feature_set): set
3900           fe_calcsize_estimate.
3901         * server-src/amcheck.c (start_host): Check if client support CALCSIZE
3902           estimate.
3903
3904 2004-08-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3905
3906         * server-src/conffile.h (ES_CLIENT, ES_SERVER, ES_CALCSIZE): New define
3907           for estimate type.
3908         * server-src/conffile.h (dumptype_t): Add 'estimate' and 's_estimate'
3909         * server-src/conffile.c (get_estimate): New function to parse estimate
3910           type, ....
3911         * server-src/diskfile.c (read_diskline): Copy 'estimate'.
3912         * server-src/diskfile.h (disk_t): Add 'estimate'.
3913         * server-src/amadmin.c (disklist_one): Print estimate type.
3914
3915 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3916
3917         * common-src/match.c (match_tar, tar_to_regex): New fonction similar
3918           to the exclude option of tar.
3919         * common-src/amanda.h (match_tar, tar_to_regex): Prototype.
3920
3921 2004-08-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3922
3923         * server-src/infofile.h (history_t): new struct.
3924         * server-src/infofile.h (info_t): Add a history_t.
3925         * server-src/infofile.c (read_txinfofile): Parse history data.
3926         * server-src/infofile.c (write_txinfofile): Print history data.
3927         * server-src/amadmin.c (export_one): export history data.
3928         * server-src/amadmin.c (import_one): import history data.
3929         * server-src/driverio.c (update_info_dumper): update history data.
3930
3931 2004-05-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3932         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
3933
3934         * server-src/planner.c: Log L_DISK for autoflush disk.
3935
3936 2004-05-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3937
3938         * server-src/planner.c (handle_result): Add dp to pestq at the
3939           correct place.
3940
3941 2004-04-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3942
3943         * common-src/amanda.h: #include "amanda-int.h" only if !CONFIGURE_TEST.
3944
3945 2004-04-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3946
3947         * config/acinclude.m4i (AX_CREATE_STDINT_H) : New macro.
3948         * configure.in: Use AX_CREATE_STDINT_H(common-src/amanda-int.h).
3949         * common-src/amanda.h: include "common-src/amanda-int.h".
3950         * changer-src/scsi-cam.c: Change u_int32_t for uint32_t.
3951
3952 2004-04-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3953
3954         * configure.in: Fix for automake 1.8.4.
3955         * config/acinclude.m4i: Fix for automake 1.8.4.
3956
3957 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3958
3959         * configure.in: Result of autoupdate.
3960
3961 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3962
3963         * config/config.guess: Update from automake 1.8.
3964         * config/config.sub: Update from automake 1.8.
3965         * config/depcomp: Update from automake 1.8.
3966         * config/install-sh: Update from automake 1.8.
3967         * config/missing: Update from automake 1.8.
3968         * config/mkinstalldirs: Update from automake 1.8.
3969         * config/ltmain.sh: Update from libtool-1.5.6.
3970         * config/libtool.m4i: Update from libtool-1.5.6.
3971
3972 2004-04-26  Marc Mengel <mengel@fnal.gov>
3973
3974         * tape-src/output-rait.c: Verify reads correctly.
3975
3976 2004-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3977
3978         * server-src/driver.c (continue_dumps): Fix deadlock if holding disk
3979         fill up when in degraded mode.
3980
3981 2004-04-23  Eric Siegerman <eric_97@pobox.com>
3982
3983         Bug fix: amflush would run, and consume a tape, even if there
3984         were no Amanda directories waiting to be flushed:
3985         * common-src/sl.c (is_empty_sl): New function to test
3986           whether a list is empty.
3987         * common-src/sl.h (is_empty_sl): Prototype.
3988         * server-src/amflush.sh (main): Use is_empty_sl(),
3989           rather than ==NULL, to test emptiness of datestamp_list.
3990
3991 2004-04-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3992
3993         * server-src/planner.c (setup_estimate): Typo.
3994
3995 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
3996
3997         Allow bumpsize, bumppercent, bumpdays and bumpmult to be in a dumptype.
3998         * server-src/conffile.c: Parse.
3999         * server-src/conffile.h: Define.
4000         * server-src/amadmin.c (disklist_one): Use.
4001         * server-src/diskfile.c (read_diskline): Initialize.
4002         * server-src/diskfile.h: Define.
4003         * server-src/planner.c: Use.
4004         * man/amanda.8.in: Document.
4005
4006 2004-04-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4007         Fix by Paul Bijnens <paul.bijnens@xplanation.com>
4008
4009         * server-src/planner.c (setup_estimate): Only ask for level 0 estimate
4010           if strategy is noinc.
4011
4012 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4013         Documentation from Paul Bijnens <paul.bijnens@xplanation.com>
4014
4015         * man/amoverview.8.in: Document results.
4016
4017 2004-04-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4018         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4019
4020         * server-src/amoverview.pl.in: Print last two characters.
4021
4022 2004-04-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4023
4024         * changer-src/chg-disk.sh.in: Fix for sh compatibility.
4025
4026 2004-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4027         Fix by John Koyle <jkoyle@rfpdepot.com>
4028
4029         * common-src/dgram.c: Fix EAGAIN on Linux.
4030
4031 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4032
4033         * server-src/amadmin.c (bumpsize): Typo.
4034
4035 2004-04-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4036
4037         New bumppercent global option.
4038         * example/amanda.conf.in: Document it.
4039         * man/amanda.8.in: Document it.
4040         * server-src/amadmin.c (bumpsize): Write it.
4041         * server-src/conffile.c: Parse it.
4042         * server-src/conffile.h: Define It.
4043         * server-src/planner.c (bump_thresh): New size_level_0 parameter,
4044           use the new bumppercent option.
4045
4046 2004-04-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4047
4048         * server-src/amadmin.c: Rename host_t to amhost_t.
4049         * server-src/amcheck.c: Ditto.
4050         * server-src/amindexd.c: Ditto.
4051         * server-src/diskfile.c: Ditto.
4052         * server-src/diskfile.h: Ditto.
4053         * server-src/driver.c: Ditto.
4054         * server-src/planner.c: Ditto.
4055
4056 2004-03-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4057
4058         * amplot/amplot.awk: Parse "driver: tape size" line.
4059
4060 2004-03-22  Stefan G. Weichinger <monitor@oops.co.at>
4061
4062         * server-src/amcheck.c (start_host): Added warning for hostname
4063           localhost.
4064         * docs/TOP-TEN-QUESTIONS: added note about localhost-warning.
4065
4066 2004-03-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4067
4068         * docs/Makefile.am (pkgdata_DATA): Add TOP-TEN-QUESTIONS.
4069
4070 2004-03-18  Stefan G. Weichinger <monitor@oops.co.at>
4071
4072         * docs/TOP-TEN-QUESTIONS: New file.
4073
4074 2004-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4075
4076         * server-src/reporter.c (handle_success): Set stats[i].coutsize
4077           correctly.
4078         * server-src/taper.c: Do not subtract tt_blocksize_kb from filesize.
4079
4080 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4081
4082         * common-src/ssh-security.c: New ssh security driver.
4083         * common-src/Makefile.am (libamanda_la_SOURCES): Add ssh-security.c.
4084         * common-src/security.c: Add ssh security driver.
4085         * configure.in: Add --with-ssh-security. Define SSH_SECURITY.
4086
4087 2004-03-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4088
4089         * server-src/amcheck.c: Do labelstr check in correct order.
4090
4091 2004-03-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4092
4093         Use only one time event for all dumpers, no wait event.
4094         start_some_dumps is called everytime a dumper or taper finish.
4095         * server-src/driver.c (dumpers_ev_time): New global event.
4096         * server-src/driver.c (start_some_dumps): Remove dumper argument,
4097           can start many dump.
4098         * server-src/driver.c (dumper_result): Call start_some_dumps instead
4099           of event_wakeup.
4100         * server-src/driver.c (handle_idle_wait): Remove function.
4101         * server-src/driver.c (handle_dumpers_time): new handle for
4102           dumpers_ev_time, it call start_some_dumps.
4103         * server-src/driverio.h (dumper_t): Remove ev_wait.
4104         * server-src/driverio.c (startup_dump_process): Don't set ev_wait.
4105
4106 2004-03-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4107
4108         * common-src/fileheader.c (print_header): Fix fprintf use.
4109         * client-src/amqde.c (parse_exclude_path): Fix = by ==.
4110         * common-src/protocol.c (s_repwait): Fix compiler warning.
4111         * common-src/rsh-security.c (runrsh): Fix compiler warning.
4112
4113 2004-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4114
4115         * common-src/pipespawn.c (pipespawn): Remove passwdvar and passwdfd.
4116
4117 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4118         Reported by Allen Liu <allen@bellglobal.com>
4119
4120         * server-src/amverifyrun.sh.in: Replace '-e' test by '-f'.
4121
4122 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4123
4124         * server-src/amcheck.c: Verify the tape is listed in the tapelist file.
4125         * server-src/taper.c: Ditto
4126
4127 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4128
4129         * server-src/driver.c (dump_schedule): Print complete name.
4130
4131 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4132
4133         The estimate send a PREP (partial REP) packet after each estimate.
4134         * client-src/amandad.c: Send PREP packet if sendsize.
4135         * common-src/amfeatures.c (am_init_feature_set): Add
4136           fe_partial_estimate.
4137         * common-src/amfeatures.h (am_feature_e): Add fe_partial_estimate.
4138         * common-src/packet.c (pktypes[]): Add PREP.
4139         * common-src/packet.h (pktype_t): Add P_PREP.
4140         * common-src/protocol.c (action_t): Add A_CONTPEND.
4141         * common-src/protocol.c: Handle P_PREP packet.
4142         * server-src/amstatus.pl.in: Parse "got partial result" line.
4143         * server-src/planner.c: Handle P_PREP packet.
4144
4145 2004-02-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4146         Reported by Jason Brooks <jason.brooks@windriver.com>
4147
4148         * server-src/reporter.c: Remove duplicate setting of cd to
4149           &ColumnData[Level].
4150
4151 2004-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4152         Patch by Philippe Charnier <charnier@xp11.frmug.org>
4153
4154         * server-src/amtrmidx.c: Add '\n'.
4155
4156 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4157
4158         * recover-src/set_commands.c (cd_glob): Fix memory leak.
4159
4160 2004-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4161
4162         * recover-src/set_commands.c (cd_dir, set_directory): Fix memory leak.
4163         * recover-src/uscan.l: Fix double amfree.
4164
4165 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4166
4167         * server-src/driver.c: Build holding disk name with timestamp.
4168         * server-src/holding.c (is_datestr): Check also for timestamp.
4169         * server-src/planner.c: Flush today's dump with autoflush.
4170         * server-src/find.c: Find holding disk with timestamp.
4171         * server-src/find.h (find_result_t): Add timestamp field.
4172
4173 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4174
4175         * changer-src/chg-zd-mtx.sh.in: Works if all slot and tape are full.
4176
4177 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4178
4179         * server-src/amverifyrun.sh.in: Do not execute amverify if no tape
4180           to verify.
4181
4182 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4183
4184         * server-src/amdump.sh.in: Do not redirect to /dev/null.
4185
4186 2004-02-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4187
4188         * config/acinclude.m4i: Define CF_WAIT_INT.
4189         * configure.in: Call CF_WAIT_INT.
4190         * common-src/amanda.h: Try to make waitpid doesn't warn.
4191
4192 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4193
4194         * Makefile.am (EXTRA_DIST): Add contrib/mkamandisk.
4195
4196 2004-01-29  Christoph Pospiech <pospiech@de.ibm.com>
4197
4198         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-iomega.pl.
4199         * changer-src/Makefile.am (libexec_SCRIPTS) Add chg-iomega.
4200         * changer-src/chg-iomega.pl.in: New changer script.
4201         * docs/TAPE.CHANGERS: Document chg-iomega.
4202         * contrib/mkamandisk: Script to format iomega disk.
4203
4204 2004-01-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4205
4206         * restore-src/amidxtaped.c (scan_init): Remove the log file if it exit.
4207
4208 2004-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4209
4210         * configure.in: Set GNUTAR_LISTED_INCREMENTAL_DIRX.
4211         * example/amanda.conf.in: Update record documentation.
4212         * man/amanda.8.in: Update record documentation.
4213
4214 2004-01-14  Stefan G. Weichinger <monitor@oops.co.at>
4215
4216         * docs/INSTALL: Add config for xinetd.
4217
4218 2004-01-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4219
4220         * server-src/planner.c (handle_result): Detect bad estimate (-1).
4221         * server-src/planner.c (analyze_estimate): Don't schedule level
4222           if the estimate is bad.
4223
4224 2003-12-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4225
4226         * docs/HOWTO-FILE-DRIVER: New file.
4227         * docs/TAPE.CHANGERS: Explain chg-disk.
4228         * docs/Makefile.am (pkgdata_DATA): add HOWTO-FILE-DRIVER.
4229
4230 2003-12-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4231
4232         * docs/SYSTEM.NOTES: Add a note about sendsize coredump on AIX.
4233
4234 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4235         Patch by Jean-Christian SIMONETTI <simonetti@echo.fr>
4236
4237         * changer-src/chg-disk.sh.in: New changer script.
4238         * changer-src/Makefile.am (libexec_SCRIPTS): Add chg-disk.
4239         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-disk.sh.
4240
4241 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4242
4243         * tape-src/tapetype.c: extern int optind.
4244         * tape-src/tapeio.c: extern int optind.
4245
4246 2003-11-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4247         Patch by C.Scheeder <christoph.scheeder@scheeder.de>
4248
4249         * changer-src/sense.c (SenseType): Add "DAT AutoChanger" and "C1537A".
4250
4251 2003-11-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4252
4253         * server-src/driver.c: Print the tape size.
4254         * server-src/amstatus.pl.in: print % of tape use.
4255
4256 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4257
4258         * server-src/conffile.c (copy_dumptype): Copy in/exclude only if seen.
4259
4260 2003-11-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4261
4262         * server-src/reporter.c (output_tapeinfo): Fix printing of new tape.
4263
4264 2003-11-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4265
4266         * server-src/amcheck.c (taperscan_slot): Deal with label not in
4267           tapelist case.
4268         * server-src/amtape.c (taperscan_slot): Ditto.
4269         * server-src/taper.c (taperscan_slot): Ditto.
4270
4271 2003-11-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4272
4273         * server-src/driver.c (handle_taper_result): Always call
4274           continue_dumps() in TRYAGAIN case.
4275
4276 2003-11-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4277
4278         * changer-src/chg-chio.pl.in (getTapeStatus): Set $drives[$num] to 0
4279         if no tape in drive.
4280
4281 2003-11-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4282
4283         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-AFS.
4284
4285 2003-11-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4286         Patch by Mitch Collinsworth <mitch@ccmr.cornell.edu>
4287
4288         * client-src/selfcheck.c: Skip accessibility check for AFS entries.
4289         * docs/HOWTO-AFS: New file.
4290
4291 2003-11-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4292
4293         * server-src/amadmin.c (tape): Display the next new tapes.
4294         * server-src/reporter.c (output_tapeinfo): Ditto.
4295
4296 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4297
4298         * docs/Makefile.am (pkgdata_DATA): Add chg-scsi.notes.
4299
4300 2003-10-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4301
4302         * server-src/amcheck.c (taperscan_slot): Set found=3 if new tape.
4303         * server-src/amcheck.c (taper_scan): Handle found==3.
4304         * server-src/amtape.c (taperscan_slot): Set found=3 if new tape.
4305         * server-src/amtape.c (taper_scan): Handle found==3.
4306         * server-src/taper.c (taperscan_slot): Set found=3 if new tape.
4307         * server-src/taper.c (taper_scan): Handle found==3.
4308
4309 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4310
4311         * server-src/amcheck.c: Use stralloc(optarg).
4312         * tape-src/ammt.c: Use stralloc(optarg).
4313         * tape-src/tapetype.c: Use stralloc(optarg).
4314
4315 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4316         Patch by Jay Fenlason <fenlason@redhat.com>
4317
4318         * server-src/dumper.c: Don't set SIGCHLD to SIG_IGN.
4319
4320 2003-10-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4321         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
4322
4323         * client-src/sendbackup-gnutar.c (AM_SIZE_RE): Fix regex for samba3.
4324
4325 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4326
4327         * server-src/amadmin.c (find): Call find_dump to allow dynamic disklist.
4328         * server-src/amindexd.c: Call find_dump to allow dynamic disklist.
4329         * server-src/amtrmidx.c:  Call find_dump to allow dynamic disklist.
4330         * server-src/diskfile.c (add_disk): Set device and todo.
4331         * server-src/find.c: Build disklist dynamicaly from log files.
4332         * server-src/find.h (find_dump): New prototype.
4333
4334 2003-10-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4335
4336         * server-src/amlogroll.c: set_pname("amlogroll").
4337
4338 2003-10-24  Todd M. Kover <kovert@omniscient.com>
4339
4340         * add amqde for "quick and dirty estimates" under gnutar (program
4341           that will traverse the filesystem rather than invoke gnutar).
4342           controlled via configure option --with-qde.  This really wants to
4343           be configured in the server.
4344
4345 2003-10-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4346
4347         * server-src/amverify.sh.in: Fix usage message.
4348         * common-src/fileheader.c (print_header): fprintf to outf.
4349         * server-src/tapefile.c (lookup_last_reusable_tape): Check for
4350           tp->datestamp > 0.
4351         * server-src/amadmin.c (disklist_one): Don't print ':' on device line.
4352
4353 2003-10-23  Todd Kover <kovert@omniscient.com>
4354
4355         * make amrecover link against readline rather than libamanda so
4356           only amrecover would require the shared library (if it's found)
4357
4358 2003-10-22  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4359         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4360
4361         * client-src/amandates.c (finish_amandates): Call error() if the
4362           close of amdf fail.
4363         * common-src/amflock.c (create_lock): Return -1 if the close of f fail.
4364         * common-src/amflock.c (read_lock): Don't set f to NULL if the close
4365           fail.
4366         * server-src/tapefile.c (write_tapelist): Return 1 if the close of
4367           tapef fail.
4368
4369 2003-10-14  John R. Jackson (jrj@purdue.edu)
4370
4371         * docs/SYSTEM.NOTES: Add FreeBSD 5.1 note about setting the UDP packet
4372           size, compliments of Nicolas Ecarnot <nicolas.ecarnot@accim.com>.
4373
4374 2003-10-14  John R. Jackson (jrj@purdue.edu)
4375
4376         * client-src/sendsize.c: Handle case where PID's get re-used.
4377
4378 2003-10-14  John R. Jackson (jrj@purdue.edu)
4379
4380         * configure.in: Need to check for sys/gscdds.h on AIX to enable
4381           SCSI changer.
4382
4383 2003-10-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4384
4385         * common-src/genversion.c (prundefvar): New function to print an
4386           undefined variable.
4387         * common-src/genversion.c: Print undefined variable.
4388         * server-src/amcheck.c: Improve message for no LPRCMD defined.
4389
4390 2003-07-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4391
4392         * restore-src/amidxtaped.c: Don't clea re_label before checking
4393           for the changer.
4394
4395 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4396         Patch by Scott Mcdermott <smcdermott@questra.com>
4397
4398         * changer-src/chg-zd-mtx.sh.in (initial_poll_delay): New config
4399           variable to add a pause after a tape loading.
4400
4401 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4402         Fix by John E. Hein <jhein@timing.com>
4403
4404         * changer-src/chg-manual.sh.in: Quote @EGREP@.
4405         * changer-src/chg-null.sh.in: Quote @EGREP@.
4406
4407 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4408
4409         * amplot/amplot.sh.in: Remove files before runnig amplot.awk.
4410         * amplot/amplot.awk: Parse 'flush line', fix tape_wait line.
4411         * server-src/driver.c (read_flush): Write a 'flush size' to the
4412           debug file.
4413
4414 2003-07-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4415
4416         * changer-src/chg-chio.pl.in: Fix next/prev command.
4417
4418 2003-07-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4419         patch by Paul Bijnens <paul.bijnens@xplanation.com>
4420
4421         * client-src/client_util.c (add_include): Count include with 2 /,
4422           Fix descriptor leak.
4423
4424 2003-06-25  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4425
4426         * server-src/amstatus.pl.in: Fix print spacing for idle dumpers.
4427
4428 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4429
4430         * server-src/holding.c: Fix compiler error.
4431         * server-src/planner.c: Use snprintf.
4432
4433 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4434         patch by Paul Bijnens <paul.bijnens@xplanation.com>
4435
4436         * tape-src/tapetype.c: Avoid a numerical overflow for large tape
4437           capacities.
4438
4439 2003-06-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4440
4441         * server-src/amstatus.pl.in: Fix to failed tape.
4442
4443 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4444
4445         * server-src/planner.c (delay_dumps): Delay not delay forced full
4446           before forced full.
4447
4448 2003-06-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4449
4450         * changer-src/chg-zd-mtx.sh.in: Log the changer file used.
4451
4452 2003-06-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4453
4454         * server-src/amverify.sh.in: Do not advance to next tape.
4455
4456 2003-06-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4457         patch by Eric Siegerman <eric_97@pobox.com>
4458
4459         * server-src/planner.c: Make promote_hills() honour maxpromotedays.
4460
4461 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4462
4463         * changer-src/scsi-bsd.c: Use pDev[DeviceFD].fd instead of DeviceFD.
4464         * changer-src/scsi-hpux_new.c:Use pDev[DeviceFD].fd instead of DeviceFD.
4465         * changer-src/scsi-linux.c: Use pDev[ip].fd instead of DeviceFD.
4466
4467 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4468
4469         * client-src/noop.c: #include "util.h".
4470
4471 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4472
4473         * server-src/amflush.c: Implement new -b and -s options.
4474         * man/amflush.8.in: Document it.
4475
4476 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4477
4478         * server-src/driver.c (dump_to_tape): Don't go in degraded mode if
4479           taper reply DONE.
4480
4481 2003-06-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4482
4483         * tape-src/output-rait.c: Don't call waitpid if we didn't fork.
4484
4485 2003-06-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4486
4487         * server-src/amverify.sh.in: Use @MAXTAPEBLOCKSIZE@ instead of 32.
4488
4489 2003-06-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4490         Bug reported by Sven Rudolph <rudsve@drewag.de>
4491
4492         * server-src/holding.c (mkholdingdir): New function to create a holding
4493           directory.
4494         * server-src/holding.h (mkholdingdir): Prototype.
4495         * server-src/driver.c: Use mkholdingdir;
4496         * server-src/chunker.c: Call mkholdingdir before opening a file for
4497           writing.
4498
4499 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4500         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4501
4502         * server-src/amstatus.pl.in: Fix for missing amdump.1 or amflush.1.
4503
4504 2003-06-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4505         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4506
4507         * server-src/amstatus.pl.in: If nothing is active, it now gives the
4508           status of the last run (amdump or amflush).
4509         * man/amstatus.8.in: Document it.
4510
4511 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4512
4513         * tape-src/output-file.c (check_online): Write error if opendir failed.
4514
4515 2003-05-29  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4516         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4517
4518         * server-src/amoverview.pl.in: Use 'amadmin <conf> disklist' instead
4519           of parsing the disklist file.
4520
4521 2003-05-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4522
4523         * server-src/tapefile.c (read_tapelist,parse_tapeline): Fix for
4524           previous patch.
4525
4526 2003-05-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4527
4528         * common-src/versuff.c.in: Use @VERSION_SUFFIX@.
4529
4530 2003-05-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4531
4532         * example/amanda.conf.in: Add more amrecover_changer doc.
4533         * man/amanda.8.in: Add more amrecover_changer doc.
4534         * man/amrecover.8.in: Add more amrecover_changer doc.
4535
4536 2003-05-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4537
4538         * server-src/tapefile.c (read_tapelist): Ignore blank line.
4539         * server-src/tapefile.c (parse_tapeline): Newer status parameter, set
4540           it to '1' when reading blank line.
4541
4542 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4543
4544         * configure.in (AC_CHECK_HEADERS): Enleve linux/ftape-header-segment.h,
4545           linux/ftape-vendors.h et linux/ftape.h.
4546
4547 2003-04-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4548         Patch by Darin Dugan <dddugan@iastate.edu>
4549
4550         * server-src/amcheck.c: Change subject in email if no error.
4551
4552 2003-04-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4553
4554         * common-src/error.c (output_error_message): Always prepend program
4555           name.
4556
4557 2003-04-15  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4558
4559         * server-src/amstatus.pl.in: Fix for estimate disk.
4560
4561 2003-04-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4562
4563         * server-src/taper.c: Read holding file correctly if blocksize != 32k.
4564
4565 2003-04-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4566         New file by Robert C Dege <RDege@northropgrumman.com>
4567
4568         * configure.in: Find mcutil binary.
4569         * configure.in (AC_CONFIG_FILES): Add changer-src/chg-mcutil.sh and
4570           example/chg-mcutil.conf.
4571         * changer-src/Makefile (libexec_SCRIPTS): Add chg-mcutil.
4572         * changer-src/chg-mcutil.sh.in: New file.
4573         * example/Makefile (EXTRA_DIST): Add chg-mcutil.conf
4574         * example/chg-mcutil.conf.in: New file.
4575
4576 2003-04-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4577
4578         * man/amanda.8.in (blocksize): Document the --with-maxtapeblocksize
4579           configure option.
4580
4581 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4582
4583         * server-src/amverifyrun.sh.in: Run the amverify command.
4584
4585 2003-04-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4586         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4587
4588         * server-src/reporter.c: Get the filenumber correct.
4589
4590 2003-04-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4591         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4592
4593         * server-src/reporter.c: Print a postscript label for each tape used.
4594
4595 2003-03-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4596
4597         * configure.in (*-sco3.2v4*): It is not like *-sco3.2v5*,
4598           define DEV_PREFIX and RDEV_PREFIX.
4599
4600 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4601
4602         * configure.in: Typo.
4603
4604 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4605         Patch by Gert Doering <gert@greenie.muc.de>
4606
4607         * client-src/getfsent.c (get_fstab_nextentry): Compile on *-sco3.2v4*.
4608
4609 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4610
4611         * configure.in: Compile on *-sco3.2v4*
4612
4613 2003-03-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4614
4615         * configure.in: Use '=' instead of '=='.
4616
4617 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4618
4619         * recover-src/set_commands.c (set_tape): Recognize null:, rait:,
4620           file: and tape: as driver, not host name.
4621
4622 2003-03-14  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4623
4624         * server-src/amrmtape.sh.in: Print better output.
4625
4626 2003-03-13  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4627
4628         * changer-src/Makefile.am (libexec_SCRIPTS): Missing \.
4629
4630 2003-03-08  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4631
4632         * client-src/client_util.c (add_include): If include contain 2 '/' then
4633           use at asis, don't try to match it.
4634
4635 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4636
4637         * server-src/changer.h (changer_label): Return an int.
4638         * server-src/changer.h (changer_label): First parameter is char *.
4639
4640 2003-03-07  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4641
4642         * file tape-src/output-rait.c (rait_open): Call tapefd_set_master_fd();
4643         * file tape-src/tapeio.c (struct tape_info): Add master_fd field.
4644         * file tape-src/tapeio.c (tape_info_init): Set master_fd to -1;
4645         * file tape-src/tapeio.c (tapefd_getinfo_host, tapefd_getinfo_disk,
4646           tapefd_getinfo_level): Return info of master_fd.
4647         * file tape-src/tapeio.c (tapefd_set_master_fd): New function to set
4648           master_fd.
4649         * file tape-src/tapeio.h (tapefd_set_master_fd): Prototype.
4650
4651 2003-03-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4652
4653         * tape-src/output-file.c (file_tapefd_can_fork): New function that
4654           return 1 if the file: can be run under a forked process.
4655         * tape-src/output-file.h (file_tapefd_can_fork): Prototype.
4656         * tape-src/output-null.c (null_tapefd_can_fork): New function that
4657           return 1 if the null: can be run under a forked process.
4658         * tape-src/output-null.h (null_tapefd_can_fork): Prototype.
4659         * tape-src/output-rait.c (rait_close, rait_tapefd_ioctl): Fork only if
4660         * tapefd_can_fork() return 1.
4661         * tape-src/output-rait.c (rait_tapefd_can_fork): New function that
4662           return 1 if the rait: can be run under a forked process.
4663         * tape-src/output-rait.h (rait_tapefd_can_fork): Prototype.
4664         * tape-src/output-tape.c (tape_tapefd_can_fork): New function that
4665           return 1 if the tape: can be run under a forked process.
4666         * tape-src/output-tape.h (tape_tapefd_can_fork): Prototype.
4667         * tape-src/tapeio.c (struct virtualtape): Add xxx_tapefd_can_fork and
4668           initialize vtable[];
4669         * tape-src/tapeio.c (tapefd_can_fork): New function to can the driver
4670           xxx_tapefd_can_fork function.
4671         * tape-src/tapeio.h (tapefd_can_fork): Prototype.
4672
4673 2003-03-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4674
4675         * tape-src/output-file.c (file_tapefd_write): Call file_release(fd)
4676           before opening the file for writing.
4677
4678 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4679
4680         * changer-src/chg-zd-mtx.sh.in: Default for driveslot is 0.
4681
4682 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4683
4684         * amplot/amplot.sh.in: New -b option for b/w postscript.
4685         * amplot/amplot.awk: Add 'color' to command if bw is set.
4686         * amplot/amplot.g: Change line 6 to line 8.
4687         * man/amplot.8: Document -b option.
4688
4689 2003-03-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4690
4691         * recover-src/extract_list.c: Fix the name of the
4692           amidxtaped.<timestamp>.debug file.
4693
4694 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4695         Patch by Eric Doutreleau <Eric.Doutreleau@int-evry.fr>
4696         
4697         * restore-src/amidxtaped.c: Use the device sent by the changer.
4698
4699 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4700
4701         * restore-src/amidxtaped.c: Remove lock 'unlink(conf_logfile)' on
4702           all failure path.
4703
4704 2003-02-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4705
4706         * server-src/changer.c: Sync with 2.4.4.
4707
4708 2003-02-21  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4709
4710         * client-src/client_util.c: Print error except ENOENT for
4711           exclude/include files.
4712
4713 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4714
4715         * tape-src/tapetype.c: Use %ld to print some variable.
4716
4717 2003-02-20  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4718
4719         * server-src/conffile.c (init_defaults): conf_printer.s must be set
4720           with stralloc("").
4721
4722 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4723         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4724
4725         * tape-src/tapetype.c: Document -c option.
4726
4727 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4728
4729         * changer-src/chg-zd-mtx.sh.in:Print "are you sure your drive slot is n"
4730
4731 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4732
4733         * server-src/tapefile.c (read_tapelist): return 1 if can't open the
4734           tapelist file.
4735
4736 2003-02-12  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4737
4738         * man/amtapetype.8.in: Add doc from a mail by John R. Jackson.
4739
4740 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4741
4742         * server-src/amcheck.c: New -a option.
4743         * man/amcheck.8.in: Document it.
4744
4745 2003-02-11  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4746
4747         * server-src/amindexd.c (build_disk_table): Compare the level.
4748
4749 2003-02-10  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4750         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
4751
4752         * tape-src/tapetype.c: New -c argument to do only the compression test.
4753           Better detection of compression.
4754         * man/amtapetype.8.in: Document -c argument.
4755
4756 2003-02-09  John R. Jackson (jrj@purdue.edu)
4757
4758         * tape-src/tapetype.c: Allocate the I/O buffers on page boundaries.
4759           This helps performance on some OS's.
4760
4761 2003-02-08  John R. Jackson (jrj@purdue.edu)
4762
4763         * restore-src/amrestore.c: Clean up strtol() argument processing.
4764
4765 2003-02-08  John R. Jackson (jrj@purdue.edu)
4766
4767         * docs/INSTALL: Clean up supporting package versions and URL's.
4768
4769 2003-02-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4770
4771         * docs/Makefile.am (pkgdata_DATA): Add HOWTO-CYGWIN.html.
4772
4773 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4774         Patch by Christophe Kalt <kalt@taranis.org>
4775
4776         * client-src/sendbackup-dump.c: New AM_SIZE_RE for NetApp.
4777         * client-src/sendsize.c: New re_size for NetApp.
4778
4779 2003-02-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4780         Fix by Colin Henein <cmh@>
4781
4782         * common-src/amanda.h: Fix for the where S_ISDIR is not defined.
4783
4784 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4785         Patch by Doug Kingston <dpk@randomnotes.org>
4786
4787         * configure.in (NEED_SETUID_CLIENT): Set to false on *-pc-cygwin.
4788         * configure.in (WANT_SETUID_CLIENT): Set if NEED_SETUID_CLIENT != false.
4789         * client-src/Makefile.am: Don't chmod u+s if WANT_SETUID_CLIENT.
4790
4791 2003-02-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4792         Patch by Andrew Rucker Jones <arjones@simultan.dyndns.org>
4793
4794         * man/amtapetype.8.in: Fix example.
4795
4796 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4797
4798         * common-src/amanda.h: #define S_ISDIR if not already defined.
4799
4800 2003-01-31  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4801         File from Doug Kingston <dpk@randomnotes.org>
4802
4803         * docs/HOWTO-CYGWIN.html: New file.
4804
4805 2003-01-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4806
4807         * configure.in: Define WANT_RUNTIME_PSEUDO_RELOC on cygwin
4808         * client-src/Makefile.am: AM_LDFLAGS="-Wl,-enable-runtime-pseudo-reloc"
4809           if WANT_RUNTIME_PSEUDO_RELOC.
4810         * recover-src/Makefile.am: Ditto.
4811
4812 2003-01-28  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4813
4814         * tape-src/output-rait.h: #define stralloc strdup
4815         * tape-src/output-rait.c: Revert patch of 2003-01-26, we don't have
4816           vstralloc in standalone.
4817
4818 2003-01-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4819         Reported by Doug Kingston <dpk@randomnotes.org>
4820
4821         * recover-src/Makefile.am: Set AM_YFLAGS instead of YFLAGS.
4822
4823 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4824
4825         * tape-src/output-rait.c (tapeio_next_devname): Use vstralloc.
4826
4827 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4828
4829         * changer-src/chg-scsi-chio.c: Change strdup to stralloc.
4830         * changer-src/chg-scsi.c: Ditto.
4831         * changer-src/scsi-aix.c: Ditto.
4832         * changer-src/scsi-bsd.c: Ditto.
4833         * changer-src/scsi-cam.c: Ditto.
4834         * changer-src/scsi-changer-driver.c: Ditto.
4835         * changer-src/scsi-hpux_new.c: Ditto.
4836         * changer-src/scsi-irix.c: Ditto.
4837         * changer-src/scsi-linux.c: Ditto.
4838         * changer-src/scsi-solaris.c: Ditto.
4839         * changer-src/sense.c: Ditto.
4840         * tape-src/output-rait.c: Ditto.
4841
4842 2003-01-26  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4843
4844         * server-src/taper.c (read_file): Don't count header in filesize.
4845
4846 2003-01-25  John R. Jackson (jrj@purdue.edu)
4847
4848         * tape-src/tapeio.c: Fix tape_access() and tape_stat() problem caused
4849           by indeterminate compiler order of evaluation.
4850
4851 2003-01-25  John R. Jackson (jrj@purdue.edu)
4852
4853         * restore-src/amidxtaped.c: Log errno when tape_stat fails.
4854         * restore-src/amrestore.c: Ditto.
4855         * tape-src/output-rait.c: Ditto.
4856
4857 2003-01-24  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4858
4859         * server-src/amstatus.pl.in: print an usage by tape.
4860
4861 2003-01-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4862
4863         * recover-src/extract_list.c (add_extract_item, delete_extract_item):
4864           Check also for level when comparing label.
4865
4866 2003-01-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4867
4868         Do not build chg-scsi-chio, it is buggy.
4869         * changer-src/Makefile.am (libexec_PROGRAMS): remove $(CHIO_SCSI).
4870         * changer-src/Makefile.am (EXTRA_PROGRAMS): add $(CHIO_SCSI).
4871
4872 2003-01-16  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4873
4874         * configure.in: disable amrestore if --without-server is set.
4875
4876 2003-01-04  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4877
4878         * client-src/amandad.c: Use the dbfd macro instead of the external
4879           variable db_fd.
4880         * client-src/selfcheck.c: Ditto.
4881         * client-src/sendbackup.c: Ditto.
4882         * client-src/sendsize.c: Ditto.
4883         * client-src/sendbackup-gnutar.c: Use save_errno instead of errno.
4884         * common-src/debug.c: Move most declaration inside #ifdef DEBUG_CODE.
4885         * server-src/amindexd.c: dup db_fd() to stderr.
4886         * server-src/conffile.c: Don't call error() if the config file does not
4887           exist, just write to stderr and set got_parserror.
4888
4889 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4890
4891         * recover-src/amrecover.c: Fix memory leak.
4892
4893 2003-01-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4894
4895         Add new maxpromoteday option in a dumptype.
4896         * example/amanda.conf.in: Give an example
4897         * man/amanda.8.in: Document it.
4898         * server-src/amadmin.c: Print it in the disklist subcommand.
4899         * server-src/conffile.c: read it.
4900         * server-src/conffile.h (dumptype_t): Add maxpromoteday and
4901           s_maxpromoteday.
4902         * server-src/diskfile.c (read_diskline): Copy maxpromoteday from
4903           dumptype_t to disk_t.
4904         * server-src/diskfile.h (disk_t):  Add maxpromoteday.
4905         * server-src/planner.c (promote_highest_priority_incr): Don't promote
4906           a disk if est(dp)->next_level0 > dp->maxpromoteday.
4907
4908 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4909         Reported by Josh More <jmore@remote-print.com>
4910
4911         * client-src/client_util.c (add_exclude, add_include): Remove the
4912           need for MAXPATHLEN.
4913
4914 2003-01-02  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4915         Fix by Josh More <jmore@remote-print.com>
4916
4917         * tape-src/output-tape.c: Add a ; after f = MT_UNLOAD
4918
4919 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4920         Undo patch of 2002-11-27. That doesn't work well for the planner.
4921
4922         * common-src/amanda.h (days_diff): Revert to old macro.
4923         * server-src/amadmin.c: Undo Fix for newer days_diff.
4924         * server-src/planner.c: Undo Fix for newer days_diff.
4925
4926 2003-01-01  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4927
4928         * client-src/client_util.c: Fix memory leak reported by valgrind.
4929         * client-src/selfcheck.c: Ditto.
4930         * client-src/sendbackup.c: Ditto.
4931         * client-src/sendsize.c: Ditto.
4932         * common-src/amfeatures.c: Ditto.
4933         * common-src/debug.c: Ditto.
4934         * recover-src/amrecover.c: Ditto.
4935         * recover-src/extract_list.c: Ditto.
4936         * recover-src/set_commands.c: Ditto.
4937         * recover-src/uparse.y: Ditto.
4938         * recover-src/uscan.l: Ditto.
4939         * server-src/amindexd.c: Ditto.
4940         * server-src/amlabel.c: Ditto.
4941         * server-src/amtape.c: Ditto.
4942         * server-src/amtrmidx.c: Ditto.
4943         * server-src/amtrmlog.c: Ditto.
4944         * server-src/changer.c: Ditto.
4945         * server-src/conffile.c: Ditto.
4946         * server-src/driver.c: Ditto.
4947         * server-src/driverio.c: Ditto.
4948         * server-src/dumper.c: Ditto.
4949         * server-src/find.c: Ditto.
4950         * server-src/holding.c: Ditto.
4951         * server-src/logfile.c: Ditto.
4952         * server-src/planner.c: Ditto.
4953         * server-src/reporter.c: Ditto.
4954         * server-src/tapefile.c: Ditto.
4955         * server-src/taper.c: Ditto.
4956
4957 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4958
4959         * amplot/amplot.awk: Many fix.
4960
4961 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4962
4963         * server-src/planner.c (promote_highest_priority_incremental): Promote
4964           a disk > balanced size if no full today. Do not promote a disk it's
4965           the only disk due that day and no full today.
4966
4967 2002-12-30  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4968         Patch by Brad Roberts <braddr@puremagic.com>
4969
4970         * server-src/amflush.c: Remove 2 redundant amfree call after remove_sl.
4971         * server-src/holding.c (get_flush): Ditto.
4972
4973 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4974
4975         * server-src/conffile.c: New taperalgo configuration keyword.
4976         * server-src/conffile.h: Ditto.
4977         * man/amanda.8.in: Document it.
4978         * server-src/driver.c (startaflush): New function to start a flush to
4979           tape.
4980
4981 2002-12-27  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4982
4983         * server-src/diskfile.c (parse_diskline): Allow skip in dumptype.
4984
4985 2002-12-23  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4986
4987         * server-src/amstatus.pl.in: Parse features from PORT-WRITE line.
4988
4989 2002-12-19  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4990
4991         Don't use the G flag for samba backup restore by tar.
4992         * recover-src/extract_list.c (enum dumptypes): Add IS_SAMBA_TAR.
4993         * recover-src/extract_list.c (extract_files_child): Set dumptype to
4994           IS_SAMBA_TAR if it's a SAMBA backup. Don't pass the G flag to tar
4995           if it's IS_SAMBA_TAR.
4996
4997 2002-12-18  Jean-Louis Martineau <martineau@iro.umontreal.ca>
4998
4999         * amplot/amplot.awk: Parse line with features, parse ENDFLUSH line.
5000
5001 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5002
5003         * server-src/planner.c (promote_highest_priority_incremental): Newer
5004           algorithm that reduce the number of level 0 by hosts on a single day.
5005
5006 2002-12-17  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5007
5008         * amplot/amplot.awk: Parse newer log lines.
5009
5010 2002-12-11  Jean-Louis Martineau <martineau@iro.umontreal.ca> 
5011         * server-src/reporter.c (output_stats): Typo.
5012
5013 2002-12-09  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5014
5015         * server-src/reporter.c: Print an usage by tape.
5016
5017 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5018
5019         * tape-src/tapeio.c (do_read): Init count to 0.
5020
5021 2002-12-05  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5022
5023         * tape-src/Makefile.am: Install tapetype program as amtapetype.
5024         * docs/TAPETYPES: Change for amtapetype.
5025         * man/amtapetype.8.in: New man page
5026         * man/Makefile.am: Install it.
5027         * configure.in (AC_CONFIG_FILES): Add man/amtapetype.8.
5028
5029 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5030
5031         * tape-src/ammt.c (optind): Add prototype.
5032         * tape-src/amdd.c (optind): Add prototype.
5033
5034 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5035
5036         * common-src/arglist.h (printf_arglist_function,
5037           printf_arglist_function1, printf_arglist_function2): Define if
5038           STDC_HEADERS is not defined.
5039
5040 2002-12-03  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5041
5042         * server-src/amstatus.pl.in: New --date option to display datestamp.
5043         * server-src/amstatus.pl.in: Increase some field size.
5044         * server-src/amstatus.pl.in: The host field adjust it's length to the
5045          largest.
5046
5047 2002-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5048
5049         * common-src/amanda.h (days_diff): Don't add a half day.
5050         * server-src/amadmin.c: Fix for newer days_diff.
5051         * server-src/planner.c: Fix for newer days_diff.
5052
5053 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5054
5055         * client-src/amandad.c: Fix compiler warning.
5056         * common-src/Makefile.am (bsdsecurity): Link with file.o.
5057         * common-src/bsd-security.c: Fix compiler warning.
5058         * common-src/bsd-security.c (construct_datestamp, construct_timestamp):
5059           Add function if TEST.
5060         * server-src/chunker.c: Fix compiler warning.
5061         * server-src/dumper.c: Fix compiler warning.
5062
5063 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5064
5065         * tape-src/tapetype.c: Cast time_t to long for printing.
5066
5067 2002-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5068
5069         * server-src/amflush.c: Write a "amflush: start at ???" line.
5070         * server-src/amstatus.pl.in: parse the "amflush: start at ???" line.
5071
5072 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5073
5074         * server-src/planner.c (delay_dumps): Use snprintf.
5075
5076 2002-11-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5077
5078         * common-src/debug.c: Most of the code must in #ifdef DEBUG_CODE.
5079         * client-src/client_util.c: Use AMANDA_TMPDIR instead of AMANDA_DBGDIR.
5080
5081 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5082
5083         * docs/TAPE.CHANGERS: Sync with 2.4.3.
5084
5085 2002-11-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5086
5087         * server-src/amadmin.c: Cleanup.
5088
5089 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5090
5091         * man/amadmin.8.in: Document new --days option of balance subcommand.
5092
5093 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5094
5095         * server-src/amadmin.c (days_diff): Make next_level0 more acurate.
5096         * server-src/amadmin.c (balance): Improve output.
5097
5098 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5099
5100         * recover-src/extract_list.c: Add Retry and Skip command to amrecover.
5101
5102 2002-11-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5103
5104         * tape-src/output-tape.c (tape_tapefd_fsf): Must not be static.
5105
5106 2002-11-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5107
5108         * server-src/reporter.c: Fix for LPRCMD not defined.
5109
5110 2002-11-14  Marc Mengel <mengel@fnal.gov>
5111
5112         New changer scripts for use with rait: code, run several other
5113         changers in tandem and return a rait: tape device.  Makes fake
5114         amanda.conf files under AMANDA_DEBUGDIR for each changer used,
5115         then cleans up.
5116
5117         * changer-src/chg-rait.sh.in:   New file. Multi-changer script.
5118         * changer-src/chg-null.sh.in:   New File. Null-device changer script.
5119         * docs/TAPE.CHANGERS:  Descriptions of above.
5120         * configure.in: added above files.
5121         * changer-src/Makefile.am: Likewise.
5122
5123 2002-11-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5124         Patch by Orion Poplawski <orion@colorado-research.com>
5125
5126         * server-src/planner.c (delay_dumps): Add the estimate size to all call
5127           of delay_one_dump.
5128
5129 2002-11-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5130
5131         * server-src/reporter.c: Increase width of some field.
5132
5133 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5134
5135         * changer-src/scsi-solaris.c (SCSI_ExecuteCommand): Init ret to 0.
5136
5137 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5138
5139         * recover-src/extract_list.c (delete_file): j is int.
5140         * changer-src/scsi-defs.h (B, B1): Check if already defined.
5141         * server-src/taper.c: Some cast to int.
5142         * tape-src/amdd.c (read_func, write_func): Complete prototype.
5143         * tape-src/tapeio.h (tapefd_read, tapefd_write): return ssize_t,
5144           third argument is size_t.
5145         * tape-src/tapeio.c: Ditto.
5146         * tape-src/output-file.h (file_tapefd_read, file_tapefd_write): return
5147           ssize_t, third argument is size_t.
5148         * tape-src/output-file.c: Ditto.
5149         * tape-src/output-null.h (null_tapefd_read, null_tapefd_write): return
5150           ssize_t, third argument is size_t.
5151         * tape-src/output-null.c: Ditto.
5152         * tape-src/output-rait.h (rait_read, rait__write): return ssize_t,
5153           third argument is size_t.
5154         * tape-src/output-rait.c: Ditto.
5155         * tape-src/output-tape.h (tape_tapefd_read, tape_tapefd_write): return
5156           ssize_t, third argument is size_t.
5157         * tape-src/output-tape.c: Ditto.
5158
5159 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5160
5161         * configure.in: socklen_t default to int.
5162         * common-src/dgram.c (dgram_recv): addrlen is socklen_t.
5163         * common-src/stream.c (stream_server): len is socklen_t.
5164         * recover-src/extract_list.c (add_file): j is int.
5165
5166 2002-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5167
5168         * client-src/client_util.c (test_name_len) Remove variable.
5169         * common-src/match.c (len_prefix): Change type to int.
5170         * server-src/taper.c: Use %p to print pointer.
5171         * tape-src/amdd.c (read_func, write_func):Change return type to ssize_t.
5172         * tape-src/amdd.c (debug): Renamed to debug_amdd.
5173         * tape-src/ammt.c (debug): Renamed to debug_ammt.
5174
5175 2002-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5176
5177         * restore-src/amidxtaped.c: Fix restore from file.
5178
5179 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5180
5181         * restore-src/amidxtaped.c: Fix newline in string literal.
5182
5183 2002-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5184
5185         * server-src/conffile.c (maxdumpsize): New option.
5186         * server-src/conffile.h: Ditto.
5187         * server-src/planner.c: Use maxdumpsize if set.
5188         * example/amanda.conf.in: Document it.
5189         * man/amanda.8.in: Document it.
5190
5191 2002-11-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5192
5193         * common-src/amfeatures.h (fe_amidxtaped_fsf, fe_amidxtaped_label,
5194           fe_amidxtaped_device, fe_amidxtaped_host, fe_amidxtaped_disk,
5195           fe_amidxtaped_datestamp, fe_amidxtaped_header, fe_amidxtaped_nargs,
5196           fe_amidxtaped_config): New features.
5197         * common-src/amfeatures.c (am_init_feature_set): Set new features.
5198         * recover-src/extract_list.c: Send new protocol data to amidxtaped.
5199         * restore-src/Makefile.am: amidxtaped.c need libamserver.
5200         * restore-src/amidxtaped.c: Read new protocol data from amrecover.
5201         * restore-src/amidxtaped.c: Use new configuration options.
5202         * server-src/conffile.c (conf_amrecover_do_fsf,
5203           conf_amrecover_check_label, conf_amrecover_changer): New config.
5204         * server-src/conffile.h: New config options.
5205         * example/amanda.conf.in: Document them.
5206         * man/amanda.8.in: Document them.
5207
5208 2002-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5209
5210         * autogen: touch config/config.h.in
5211         * configure.in: Patch from autoupdate-2.53 and LIBOBJS.
5212         * common-src/Makefile.am: Build versuff.o before version.o
5213         * recover-src/Makefile.am: Remove work around for automake-1.2
5214
5215 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5216
5217         * configure.in: Remove --disable-libtool.
5218         * */Makefile.am: Remove WANT_LIBTOOL.
5219
5220 2002-11-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5221
5222         * changer-src/chg-scsi.c (config_name, config_dir): Remove declaration.
5223         * server-src/amadmin.c: Ditto.
5224         * server-src/amcheck.c: Ditto.
5225         * server-src/amcleanupdisk.c: Ditto.
5226         * server-src/amflush.c: Ditto.
5227         * server-src/amindexd.c: Ditto.
5228         * server-src/amlabel.c: Ditto.
5229         * server-src/amlogroll.c: Ditto.
5230         * server-src/amtape.c: Ditto.
5231         * server-src/amtrmidx.c: Ditto.
5232         * server-src/amtrmlog.c: Ditto.
5233         * server-src/chunker.c: Ditto.
5234         * server-src/diskfile.c: Ditto.
5235         * server-src/driver.c: Ditto.
5236         * server-src/dumper.c: Ditto.
5237         * server-src/getconf.c: Ditto.
5238         * server-src/planner.c: Ditto.
5239         * server-src/reporter.c: Ditto.
5240         * server-src/taper.c: Ditto.
5241         * server-src/conffile.c (config_name, config_dir): Add declaration.
5242
5243 2002-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5244
5245         * man/amrestore.8: Amrestore doesn't use a changer.
5246
5247 2002-11-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5248
5249         * configure.in (SHELL): Don't set it, libtool do it.
5250
5251 2002-10-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5252
5253         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.3.
5254
5255 2002-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5256
5257         * restore-src/amrestore.c: New '-l <label>' flag, Do a rewind and
5258           check the label before restoring.
5259         * man/amrestore.8: Document -l flag.
5260
5261 2002-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5262
5263         * configure.in (AM_HAVE_MT_FLAGS, AM_HAVE_MT_FILENO, AM_HAVE_MT_BLKNO,
5264           AM_HAVE_MT_DSREG,AM_HAVE_MT_ERREG): Rename to HAVE_MT_FLAGS,
5265           HAVE_MT_FILENO, HAVE_MT_BLKNO, HAVE_MT_DSREG and HAVE_MT_ERREG.
5266         * tape-src/output-tape.c: Ditto.
5267
5268 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5269         Undo patch of 2002-10-24. They are needed by amrecover.
5270
5271         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
5272           is_local_fstype): Add Prototype.
5273         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
5274           is_local_fstype): remove Prototype.
5275
5276 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5277         Patch by Paul Bijnens <paul.bijnens@xplanation.com>
5278
5279         * tape-src/tapetype.c: Detects and warns the user if the tape drive
5280           has hardware compression enabled.
5281
5282 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5283
5284         * restore-src/amrestore.c: New '-f <fileno>' flag, Do a rewind and
5285           'fsf <fileno>' if -f is set.
5286         * man/amrestore.8: Document -f flag.
5287         
5288 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5289
5290         * common-src/amfeatures.h (fe_amindexd_fileno_in_OLSD, 
5291           fe_amindexd_fileno_in_ORLD): New amfeatures.
5292         * common-src/amfeatures.c (am_init_feature_set): Set
5293           fe_amindexd_fileno_in_OLSD and fe_amindexd_fileno_in_ORLD.
5294         * recover-src/amrecover.h (struct DIR_ITEM): Add fileno.
5295         * recover-src/display_commands.c (add_dir_list_item): Set fileno
5296           in struct DIR_ITEM.
5297         * recover-src/display_commands.c (suck_dir_list_from_server): Read
5298           fileno if fe_amindexd_fileno_in_OLSD is set.
5299         * recover-src/extract_list.c (struct EXTRACT_LIST): Add fileno.
5300         * recover-src/extract_list.c (add_file): Read fileno if
5301           fe_amindexd_fileno_in_ORLD is set.
5302         * recover-src/extract_list.c (delete_file): Read fileno if
5303           fe_amindexd_fileno_in_ORLD is set.
5304         * server-src/amindexd.c (opaque_ls): Write fileno if
5305           fe_amindexd_fileno_in_OLSD or fe_amindexd_fileno_in_ORLD are set.
5306
5307 2002-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5308         patch by Doug Kingston <dpk@pobox.com>
5309
5310         * configure.in (NEED_PATH_ENV, IGNORE_UID_CHECK, IGNORE_FSTAB,
5311           DONT_SUID_ROOT): Defined if on *-pc-cygwin.
5312         * client-src/Makefile.am: Fix for cygwin.
5313         * client-src/getfsent.c: Don't use fstab if IGNORE_FSTAB.
5314         * client-src/killpgrp.c: Don't suid(0) if DONT_SUID_ROOT.
5315         * client-src/rundump.c: Don't suid(0) if DONT_SUID_ROOT.
5316         * client-src/runtar.c: Don't suid(0) if DONT_SUID_ROOT.
5317         * client-src/selfcheck.c (check_suid): Don't check uid if
5318           IGNORE_UID_CHECK.
5319         * common-src/alloc.c (safe_env): Add PATH to ENV if NEED_PATH_ENV.
5320         * recover-src/amrecover.c: Don't check uid if IGNORE_UID_CHECK.
5321
5322 2002-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5323
5324         * client-src/getfsent.h (open_fstab, close_fstab, get_fstab_nextentry,
5325           is_local_fstype): Remove Prototype.
5326         * client-src/getfsent.c (open_fstab, close_fstab, get_fstab_nextentry,
5327           is_local_fstype): Add Prototype.
5328
5329 2002-10-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5330
5331         * server-src/amindexd.c: New FEATURES command that read the features
5332           set from the client and reply the features set of the server.
5333         * recover-src/amrecover.h: include "amfeatures.h"
5334         * recover-src/amrecover.c: Send the FEATURES command to the server
5335           and read it's features set.
5336
5337 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5338
5339         * client-src/Makefile.am: Work around for CYGWIN.
5340         * server-src/Makefile.am: Ditto.
5341
5342 2002-10-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5343
5344         * configure.in: Remove empty command from $program_transform_name.
5345
5346 2002-10-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5347
5348         * recover-src/extract_list.c (READ_TIMEOUT): Increased to 240*60.
5349
5350 2002-09-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5351
5352         * client-src/getfsent.c (open_fstab): Check if MNTTAB is defined.
5353
5354 2002-09-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5355
5356         * server-src/amverifyrun.sh.in: New program.
5357         * man/amverifyrun.8.in: Man page for amverifyrun.
5358         * configure.in (AC_OUTPUT): add man/amverifyrun.8 and
5359           server-src/amverifyrun.sh.
5360         * man/Makefile.am (SERVER_MAN_PAGES): Add amverifyrun.8.
5361         * man/amanda.8.in: Add amdd, ammt and amverifyrun in SEE ALSO.
5362         * man/amverify.8.in: Add amverifyrun(8) in SEE ALSO.
5363         * server-src/Makefile.am (sbin_SCRIPTS): Add amverifyrun.
5364
5365 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5366
5367         * server-src/amverify.sh.in: Accept runtapes as a third argument.
5368         * man/amverify.8.in: Document it.
5369
5370 2002-09-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5371
5372         * config/missing: Updated from automake-1.5.
5373
5374 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5375
5376         * config/config.guess: Updated from ftp://ftp.gnu.org/gnu/config/
5377         * config/config.sub: Updated from ftp://ftp.gnu.org/gnu/config/
5378
5379 2002-09-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5380
5381         * client-src/sendsize.c (getsize_dump): Print the fstype.
5382         * client-src/sendbackup-dump.c (start_backup): Print the fstype.
5383
5384 2002-09-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5385         Patch by  Florian Hars <hars@bik-gmbh.de>
5386
5387         * changer-src/chg-zd-mtx.sh.in: Fix default value for cleancycle.
5388
5389 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5390
5391         * recover-src/extract_list.c (extract_files): print tape drive
5392           and host before asking to load tape.
5393
5394 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5395
5396         * server-src/taper.c (read_file): Initialize file, 
5397           stat(file.cont_filename) before opening it.
5398           
5399 2002-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5400
5401         * server-src/amverify.sh.in: Don't check that the device is
5402           a character device, it could be a file: or rait:
5403
5404 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5405
5406         * common-src/amfeatures.c (am_set_default_feature_set):
5407           fe_rep_options_sendbackup_options is a default feature.
5408
5409 2002-09-06  Jean-Louis Martineau <martineau@iro.umontreal.ca>
5410
5411         * server-src/amstatus.pl.in: Sort a disk in datestamp order.
5412
5413 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5414         Text by Jean-Francois Malouin <Jean-Francois.Malouin@bic.mni.mcgill.ca>
5415
5416         * docs/EXCLUDE: Improve documentation.
5417
5418 2002-09-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5419
5420         * server-src/reporter.c: Fix compilation error if LPRCMD is not defined.
5421
5422 2002-08-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5423         Patch by Jason Brooks <jason0@mail.wrs.com>
5424
5425         * docs/chg-scsi.notes: New document.
5426         * changer-src/chg-scsi.c: Adding printout of "emubarcode" values 
5427           in the debug file.
5428         * changer-src/scsi-changer-driver.c: Added dlt8000 and L500 to 
5429           ChangerIO[].
5430         * changer-src/sense.c: Added dlt8000 and L500 to SenseType[].
5431
5432 2002-08-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5433
5434         * tape-src/output-null.c (null_tape_stat, null_tape_access): Use
5435           "/dev/null" instead of filename.
5436
5437 2002-08-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5438
5439         * changer-src/chg-mtx.sh.in: Sync with 2.4.3 branch.
5440         * changer-src/chg-scsi-chio.c: Ditto.
5441         * changer-src/chg-scsi.c: Ditto.
5442         * changer-src/scsi-aix.c: Ditto.
5443         * changer-src/scsi-bsd.c: Ditto.
5444         * changer-src/scsi-cam.c: Ditto.
5445         * changer-src/scsi-changer-driver.c: Ditto.
5446         * changer-src/scsi-defs.h: Ditto.
5447         * changer-src/scsi-hpux_new.c: Ditto.
5448         * changer-src/scsi-irix.c: Ditto.
5449         * changer-src/scsi-linux.c: Ditto.
5450         * changer-src/scsi-solaris.c: Ditto.
5451         * tape-src/tapeio.c: Ditto.
5452
5453 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5454
5455         * recover-src/uparse.y: Fix compiler warning.
5456
5457 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5458
5459         * server-src/amtrmidx.c: Continue if a directory doesn't exist.
5460
5461 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5462
5463         * man/amanda.8.in (tapecycle): Improve documentation.
5464
5465 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5466
5467         * server-src/amstatus.pl.in: Works with features.
5468
5469 2002-08-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5470
5471         * common-src/amfeatures.c (am_feature_to_string): Return the string
5472           "UNKNOWNFEATURE" if no features.
5473         * common-src/amfeatures.c (am_string_to_feature): Return NULL if the
5474           string is "UNKNOWNFEATURE".
5475
5476 2002-08-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5477
5478         * common-src/file.c (debug_agets): line_free was badly set when
5479         the buffer size in increased.
5480
5481 2002-07-19  John R. Jackson (jrj@purdue.edu)
5482
5483         * common-src/amanda.h: Fix bad #define.
5484
5485 2002-07-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5486         Patch by
5487           David Munro <D.Munro@surrey.ac.uk>
5488
5489         * common-src/sl.c (new_sl): Alloc (sl_t) instead of (sl_t *).
5490           
5491 2002-06-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5492         Bug reported by 
5493           Jonathan R. Johnson <Jonathan.Johnson@MinnetonkaSoftware.com>
5494
5495         * server-src/reporter.c: Fix psfname filename.
5496
5497 2002-05-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5498
5499         * client-src/sendbackup.c: Don't do compression if it is server side.
5500         * client-src/sendbackup-dump.c: Ditto.
5501         * client-src/sendbackup-gnutar.c: Ditto.
5502
5503 2002-05-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5504         Patch by Manuel Bouyer <bouyer@antioche.lip6.fr>
5505
5506         * server-src/taper.c (detach_buffers): Fix compilation with mmap.
5507
5508 2002-04-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5509
5510         * recover-src/extract_list.c (extract_files): Set dump_device_name
5511           after the call of okay_to_continue.
5512
5513 2002-04-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5514
5515         New features to describe the OPTIONS line of a REP packet.
5516         * common-src/amfeatures.h: Add fetures fe_rep_options_maxdumps,
5517           fe_rep_options_hostname, fe_rep_options_features and
5518           fe_rep_options_sendbackup_options.
5519         * common-src/amfeatures.c (am_init_feature_set): Add
5520           fe_rep_options_features.
5521         * client-src/selfcheck.c: Write REP packet according to server features.        * client-src/sendbackup.c: Ditto.
5522         * client-src/sendsize.c: Ditto.
5523
5524 2002-04-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5525
5526         * common-src/amfeatures.h:
5527              Rename fe_g_options_maxdump  to fe_req_options_maxdumps
5528              Rename fe_g_options_hostname to fe_req_options_hostname
5529              Rename fe_g_options_features to fe_req_options_features
5530         * common-src/amfeatures.c: Ditto
5531         * server-src/amcheck.c: Ditto
5532         * server-src/dumper.c: Ditto
5533         * server-src/planner.c: Ditto
5534
5535 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5536
5537         * server-src/amcheck.c: Check if it can send features, hostname or
5538           maxdumps on the global options line. Don't send hostname and
5539           maxdumps for a noop service.
5540         * server-src/dumper.c: Ditto.
5541         * server-src/planner.c: Ditto.
5542
5543 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5544
5545         * client-src/sendbackup.c: (optionstr): Add srvcomp-best and
5546           srvcomp-fast options.
5547
5548 2002-04-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5549
5550         * server-src/amcheck.c (start_host): Check the todo bit before 
5551           sending noop REQ.
5552
5553 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5554
5555         * client-src/client_util.c (parse_options, parse_g_options): Check
5556           for duplication options.
5557         * client-src/client_util.h (COMPR_SERVER_FAST, COMPR_SERVER_BEST):
5558           Declare.
5559         * client-src/selfcheck.c: Check for COMPR_FAST or COMPR_BEST.
5560
5561 2002-04-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5562
5563         * client-src/selfcheck.c (host):Remove variable,use g_options->hostname.
5564         * client-src/sendbackup.c: Ditto.
5565         * client-src/sendsize.c: Ditto.
5566
5567 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5568
5569         * client-src/client_util.c (parse_g_options) New function to parse
5570           the global options string.
5571         * client-src/client_util.h (parse_g_options): Prototype.
5572         * client-src/selfcheck.c: use parse_g_options.
5573         * client-src/sendbackup.c: use parse_g_options.
5574         * client-src/sendsize.c: use parse_g_options.
5575
5576 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5577
5578         * server-src/diskfile.c: Improve message for missing features.
5579
5580 2002-04-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5581
5582         Add many features.
5583         * common-src/amfeatures.c (am_set_default_feature_set): New function 
5584           to set the default features set.
5585         * common-src/amfeatures.h (am_set_default_feature_set): Prototype.
5586         * common-src/amfeatures.h: Rename amanda_feature_auth_keyword to 
5587           fe_options_auth.
5588         * client-src/client_util.c: Check features.
5589         * server-src/amcheck.c: Ditto.
5590         * server-src/diskfile.c: Ditto.
5591         * server-src/driverio.c: Ditto.
5592         * server-src/planner.c: Ditto.
5593         * server-src/diskfile.h (optionstr): Change prototype.
5594         * client-src/sendsize.c: Fix compiler warning.
5595
5596 2002-04-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5597
5598         * common-src/amfeatures.c: Include "amfeatures.h"
5599         * common-src/rsh-security.c: Don't assert on undefined variable.
5600
5601 2002-04-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5602
5603         * common-src/amfeatures.c: Renamed from features.c
5604         * common-src/amfeatures.h: Renamed from features.h
5605         * common-src/Makefile.am: Rename features to amfeatures.
5606         * client-src/amandad.c: Ditto.
5607         * client-src/client_util.h: Ditto.
5608         * client-src/selfcheck.c: Ditto.
5609         * client-src/sendbackup.c: Ditto.
5610         * client-src/sendsize.c: Ditto.
5611         * server-src/amcheck.c: Ditto.
5612         * server-src/chunker.h: Ditto.
5613         * server-src/diskfile.h: Ditto.
5614         * server-src/dumper.c: Ditto.
5615         * server-src/planner.c: Ditto.
5616         * server-src/taper.c: Ditto.
5617
5618 2002-04-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5619
5620         * server-src/conffile.c: Default dumporder set to "ttt".
5621         * server-src/driver.c: If dumporder is too short, use t and T.
5622         * man/amanda.8.in: Default dumporder set to "ttt".
5623
5624 2002-04-13  John R. Jackson (jrj@purdue.edu)
5625
5626         * common-src/features.c: Add amanda_feature_auth_keyword feature so
5627           authorization in the OPTIONS string is backward compatible.
5628         * common-src/features.h: Ditto.
5629         * client-src/client_util.c: Ditto.
5630         * client-src/client_util.h: Ditto.
5631         * client-src/selfcheck.c: Ditto.
5632         * client-src/sendbackup.c: Ditto.
5633         * client-src/sendsize.c: Ditto.
5634         * server-src/diskfile.c: Ditto.
5635         * server-src/planner.c: Fix compiler warning.
5636
5637 2002-04-13  John R. Jackson (jrj@purdue.edu)
5638
5639         * server-src/diskfile.c: Fix memory leak.
5640
5641 2002-04-13  John R. Jackson (jrj@purdue.edu)
5642
5643         * server-src/amcheck.c: Fix error parsing in packet.
5644
5645 2002-04-13  John R. Jackson (jrj@purdue.edu)
5646
5647         * common-src/features.c: New file.  Add support for feature sets so
5648           different Amanda versions can work together.
5649         * common-src/features.h: Ditto.
5650         * common-src/Makefile.am: Ditto.  Add "features" test program.
5651         * client-src/amandad.c: Add "noop" service to return the feature set.
5652         * client-src/selfcheck.c: Accept and return a feature set in OPTIONS.
5653           Improve parsing.
5654         * client-src/sendbackup.c: Ditto.
5655         * client-src/sendsize.c: Ditto.
5656         * common-src/bsd-security.c: Minor message change.
5657         * common-src/error.c: Use strcasecmp.
5658         * common-src/protocol.c: Use dbprintf for PROTO_DEBUG and improve
5659           messages.
5660         * restore-src/amidxtaped.c: Improve parsing.
5661         * server-src/amcheck.c: Ask for client features via "noop" before
5662           doing the real "selfcheck" service requests.  Improve parsing.
5663         * server-src/amflush.c: Minor coding format cleanup.
5664         * restore-src/amindexd.c: Improve parsing.
5665         * server-src/chunker.c: Deal with features string in commands.  Improve
5666           parsing.
5667         * server-src/diskfile.c: Initialize the features hosttype field.
5668         * server-src/diskfile.h: Add the features hosttype field.
5669         * server-src/driver.c: Save the features from the schedule.  Clean
5670           up some error messages.
5671         * server-src/driverio.c: Add features string to several commands.
5672         * server-src/dumper.c: Deal with features string in commands.  Improve
5673           parsing.
5674         * server-src/planner.c: Ask for client features via "noop" before
5675           doing the real "sendsize" service requests.  Improve parsing.
5676         * server-src/server_util.c: Minor coding cleanup.
5677         * server-src/server_util.h: Increase the number of args allowed on
5678           commands.
5679         * server-src/taper.c: Deal with features string in commands.  Improve
5680           parsing.
5681
5682 2002-04-12  John R. Jackson (jrj@purdue.edu)
5683
5684         * server-src/driver.c: Fix crash when only processing a tape queue
5685           (e.g. amflush).
5686
5687 2002-04-11  John R. Jackson (jrj@purdue.edu)
5688
5689         * server-src/driver.c: Protect against crash when taper has died.
5690
5691 2002-04-11  John R. Jackson (jrj@purdue.edu)
5692
5693         * common-src/stream.c: Clean up an error message.
5694
5695 2002-04-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5696
5697         * docs/DUMPER-API: Remove the section about USER and GROUP.
5698
5699 2002-04-09  John R. Jackson (jrj@purdue.edu)
5700
5701         * server-src/driver.c: Fix send of QUIT to taper when it is down.
5702
5703 2002-04-07  John R. Jackson (jrj@purdue.edu)
5704
5705         * server-src/dumper.c: Change sendbackup response parsing to handle
5706           2.4 changes.  Improve packet parse error processing.  Make packet
5707           logging conditional on an #ifdef instead of commented out.
5708
5709 2002-04-07  John R. Jackson (jrj@purdue.edu)
5710
5711         * client-src/amandad.c: Fix FORCE_USERID to run the service as the
5712           client user if amandad was started as root.
5713
5714 2002-04-07  John R. Jackson (jrj@purdue.edu)
5715
5716         * common-src/clock.c: Move definition of amanda_gettimeofday() macro
5717           to the header file so it could be used other places.  Use new
5718           amanda_timezone macro to avoid some #ifdef's.
5719         * common-src/clock.h: Ditto.
5720         * common-src/bsd-security.c: Fix compatibility problems with pre-2.5
5721           servers trying to talk to 2.5 clients.  The HANDLE value was not
5722           being properly handled, and the sequence number was being ignored.
5723
5724 2002-04-07  John R. Jackson (jrj@purdue.edu)
5725
5726         * server-src/reporter.c: Move column routines to conffile.c so amcheck
5727           can use them in its tests.  Do not abort on several failures, but
5728           generate messages in the FAILURE AND STRANGE DUMP SUMMARY section.
5729         * server-src/conffile.c: Move column routines to here.
5730         * server-src/conffile.h: Ditto.
5731         * server-src/amcheck.c: Add several config file tests.
5732         * server-src/logfile.c: Change "reporter" to "amreport".
5733
5734 2002-04-07  John R. Jackson (jrj@purdue.edu)
5735
5736         * configure.in: Add /usr/local/sbin to LOCPATH.
5737
5738 2002-03-31  John R. Jackson (jrj@purdue.edu)
5739
5740         * server-src/amcheck.c: Send maxdumps and hostname in packet OPTIONS.
5741
5742 2002-03-31  John R. Jackson (jrj@purdue.edu)
5743
5744         * changer-src/scsi-defs.h: Fix compiler warning and bug it was hiding.
5745         * changer-src/scsi-solaris.c: Ditto.
5746
5747 2002-03-31  John R. Jackson (jrj@purdue.edu)
5748
5749         * client-src/amandad.c: Fix arguments to pkt_cat.
5750         * common-src/bsd-security.c: Ditto.
5751
5752 2002-03-31  John R. Jackson (jrj@purdue.edu)
5753
5754         * client-src/amandad.c: Add relative timestamps to a lot of debug
5755           file messages, and add more messages, to better track what is
5756           going on.  Various general cleanup.
5757         * client-src/calcsize.c: Ditto.
5758         * client-src/client_util.c: Ditto.
5759         * client-src/selfcheck.c: Ditto.
5760         * client-src/sendbackup-dump.c: Ditto.
5761         * client-src/sendbackup-gnutar.c: Ditto.
5762         * client-src/sendbackup.c: Ditto.
5763         * client-src/sendbackup.h: Ditto.
5764         * client-src/sendsize.c: Ditto.
5765         * common-src/amanda.h: Ditto.
5766         * common-src/bsd-security.c: Ditto.
5767         * common-src/clock.c: Ditto.
5768         * common-src/clock.h: Ditto.
5769         * common-src/debug.c: Ditto.
5770         * common-src/dgram.c: Ditto.
5771         * common-src/error.c: Ditto.
5772         * common-src/file.c: Ditto.
5773         * common-src/pipespawn.c: Ditto.
5774         * common-src/stream.c: Ditto.
5775         * common-src/util.c: Ditto.
5776         * man/amanda.8.in: Ditto.
5777         * restore-src/amidxtaped.c: Ditto.
5778         * restore-src/amrestore.c: Ditto.
5779         * server-src/amindexd.c: Ditto.
5780         * server-src/getconf.c: Ditto.
5781         * server-src/planner.c: Ditto.
5782
5783 2002-03-31  John R. Jackson (jrj@purdue.edu)
5784
5785         * client-src/sendsize.c: Pay attention to the spindle number.
5786
5787 2002-03-30  John R. Jackson (jrj@purdue.edu)
5788
5789         * server-src/planner.c: General delay_dumps code cleanup.
5790
5791 2002-03-30  John R. Jackson (jrj@purdue.edu)
5792
5793         * server-src/planner.c: Make sure individual dumps larger than a tape
5794           are not added back into the schedule.  Found by Uncle George
5795           <gatgul@voicenet.com>.
5796
5797 2002-03-29  John R. Jackson (jrj@purdue.edu)
5798
5799         * man/amanda.8.in: Move "comment" in tapetype after inclusion of
5800           previous definition.  Found by Uncle George <gatgul@voicenet.com>.
5801
5802 2002-03-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5803
5804         * client-src/client_util.c (fixup_relative): New function to prepend
5805           the dirname if relative.
5806         * client-src/client_util.c (build_exclude, build_include): Use
5807           fixup_relative.
5808         * client-src/client_util.c (parse_options): Do not prepend the dirname.
5809         * client-src/selfcheck.c (check_options): Don't generate ERROR for samba
5810           if optional is set.
5811
5812 2002-03-24  John R. Jackson (jrj@purdue.edu)
5813
5814         * common-src/debug.c: Change dbopen() message slightly to match what
5815           amdump generates, making it easier to parse.
5816
5817 2002-03-24  John R. Jackson (jrj@purdue.edu)
5818
5819         * common-src/Makefile.am: Move clock routines to common-src so
5820           everyone may use them.
5821         * server-src/Makefile.am: Ditto.
5822
5823 2002-03-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5824
5825         * client-src/sendbackup-gnutar.c: Fix use of no_record.
5826
5827 2002-03-24  John R. Jackson (jrj@purdue.edu)
5828
5829         * client-src/amandad.c: Make sure argv[0] is valid before using it.
5830         * restore-src/amidxtaped.c: Ditto.
5831         * server-src/amindexd.c: Ditto.
5832
5833 2002-03-24  John R. Jackson (jrj@purdue.edu)
5834
5835         * client-src/client_util.c: Use the Amanda memory allocation code.
5836         * client-src/sendbackup-gnutar.c: Ditto.
5837         * client-src/sendsize.c: Ditto.
5838         * common-src/match.c: Ditto.
5839         * recover-src/amrecover.c: Ditto.
5840         * recover-src/display_commands.c: Ditto.
5841         * recover-src/extract_list.c: Ditto.
5842         * restore-src/amidxtaped.c: Ditto.
5843         * server-src/amflush.c: Ditto.
5844         * server-src/disk_history.c: Ditto.
5845         * server-src/driver.c: Ditto.
5846         * server-src/dumper.c: Ditto.
5847         * common-src/amanda.h: Always pass the source file and line number
5848           to the memory routines to make it easier to debug.
5849         * common-src/alloc.c: Ditto.
5850         * common-src/file.c: Ditto.
5851
5852 2002-03-23  John R. Jackson (jrj@purdue.edu)
5853
5854         * changer-src/chg-scsi-chio.c: Use agets instead of fgets.
5855         * changer-src/chg-scsi.c: Use agets instead of fgets.
5856         * client-src/client_util.c: Use agets instead of fgets.
5857         * recover-src/amrecover.c: Clean up output on EOF.
5858         * recover-src/extract_list.c: Use agets instead of direct stdio.
5859           Clean up output on EOF.  Add '?' help.
5860         * recover-src/set_commands.c: Quote the new device in the verify
5861           output to make it stand out.
5862         * server-src/amflush.c: Clean up output on EOF.  Clean up output
5863           when multiple holding disk areas selected.  Clean up parsing.
5864           Loop until valid user response.
5865         * server-src/find.c: Do not complain if log file is missing for
5866           a new (datestamp == 0) tape.
5867         * server-src/holding.c: Use agets instead of fgets. Clean up
5868           interactive input and output.
5869
5870 2002-03-23  John R. Jackson (jrj@purdue.edu)
5871
5872         * client-src/selfcheck.c: Fix a compiler warning.
5873         * client-src/sendbackup.c: Ditto.
5874         * client-src/sendsize.c: Ditto.
5875
5876 2002-03-23  John R. Jackson (jrj@purdue.edu)
5877
5878         * client-src/getfsent.c (close_fstab()): Call endfsent() instead
5879           of fclose(), if available.
5880
5881 2002-03-23  John R. Jackson (jrj@purdue.edu)
5882
5883         * common-src/dbprintf (debug_printf): Make sure errno is preserved
5884           across dbprint() calls.
5885
5886 2002-03-23  John R. Jackson (jrj@purdue.edu)
5887
5888         * configure.in: Add -R$dir as well as -L$dir on Solaris when processing
5889           --with-libraries to support shared libraries of support products.
5890
5891 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5892
5893         * server-src/chunker.c: Get result from dumper.
5894         * server-src/driver.c: Send dumper result to chunker.
5895         * server-src/driverio.c (chunker_cmd): Send DONE and FAILED command.
5896         * server-src/driverio.h (chunker_t): New down field.
5897         * server-src/dumper.c: Cleanup.
5898         * server-src/logfile.c (logtype_str): Add "PARTIAL".
5899         * server-src/logfile.h (logtype_e): Add L_PARTIAL log.
5900         * server-src/reporter.c: Handle PARTIAL log.
5901         * server-src/server_util.c (cmdstr): Add "PARTIAL".
5902         * server-src/server_util.h (cmd_t): Add PARTIAL command.
5903         * server-src/taper.c (read_file): Result is PARTIAL if dumper
5904           result is not DONE.
5905
5906 2002-03-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5907
5908         * server-src/tapefile.c (write_tapelist): Write to a temp file and
5909           rename it.
5910         * server-src/amlabel.c: Do not rename the tapelist file.
5911         * server-src/taper.c (label_tape): Do not rename the tapelist file.
5912
5913 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5914
5915         * client-src/client_util.c (parse_options): Do not check if the
5916           exclude file exist, it's done later.
5917
5918 2002-03-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5919
5920         * client-src/client_util.c (parse_options): Parse exclude-optional and
5921           include-optional.
5922         * client-src/client_util.h (option_t): New exclude_optional and
5923           include_optional field.
5924         * man/amanda.8.in: Document optional.
5925         * server-src/amadmin.c (disklist_one): Display optional.
5926         * server-src/conffile.c: Parse optional keyword.
5927         * server-src/conffile.h (dumptype_t): New exclude_optional and
5928           include_optional field.
5929         * server-src/diskfile.c (read_diskline): Copy optional bits.
5930         * server-src/diskfile.c (optionstr): Print optional bits.
5931         * server-src/diskfile.h (disk_t): New exclude_optional and
5932           include_optional field.
5933         * server-src/planner.c (getsize): Use new sendsize format if optional
5934           bits are used.
5935
5936 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5937
5938         * server-src/driver.c (dump_to_tape): Call start_degraded_mode() if
5939           taper failed.
5940
5941 2002-03-21  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5942
5943         * recover-src/extract_list.c (extract_files_setup): Add ^$ to host.
5944
5945 2002-03-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5946         Patch from Michael Frankowski <mfrankow@winternet.com>
5947
5948         * client-src/sendbackup-gnutar.c: Test for subdir before dbprintf.
5949
5950 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5951
5952         * client-src/client_util.c (init_options): New function.
5953         * client-src/client_util.h (init_options): Prototype.
5954         * client-src/sendsize.c (main): Use init_options.
5955
5956 2002-03-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5957
5958         * client-src/client-util.c: Check for include and exclude files.
5959
5960 2002-03-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5961
5962         * server-src/amstatus.pl.in: Fix.
5963         * server-src/conffile.c(get-compress): Change message for bad 
5964           compress argument.
5965
5966 2002-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5967
5968         * server-src/amstatus.pl.in: Fix.
5969         * client-src/client_util.c (parse_options): Parse auth= option.
5970         * client-src/client_util.h (option_t): Add auth field.
5971         * client-src/sendbackup.c: Use auth instead of bsd-auth.
5972         * client-src/sendsize.c: Init auth.
5973
5974 2002-03-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5975
5976         * client-src/sendbackup-dump.c: use amdevice as argument to
5977           amname_to_fstype.
5978         * client-src/sendsize.c: Use amdevice as argument to amname_to_dirname.
5979         * server-src/dumper.c: clear device if it is set to NODEVICE.
5980
5981 2002-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5982
5983         * server-src/amindexd.c: Compilation fix.
5984
5985 2002-03-07 John R. Jackson (jrj@purdue.edu)
5986
5987         * changer-src/chg-zd-mtx.sh.in: Allow whitespace on a VolumeTag line.
5988           Compliments of Christopher McCrory <chrismcc@pricegrabber.com>.
5989
5990 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
5991
5992         * recover-src/amrecover.h (list_disk): Prototype.
5993         * recover-src/set_commands.c (list_disk): New function.
5994         * recover-src/uparse.y: parse LISTDISK.
5995         * recover-src/uscan.l: listdisk keyword.
5996         * recover-src/help.c: help for listdisk.
5997         * man/amrecover.8.in: Doc for listdisk.
5998         * server-src/amindexd.c: New LISTDISK command.
5999         * docs/INDEXING: Document LISTDISK command.
6000
6001 2002-03-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6002
6003         * server-src/amstatus.pl.in: Better output for autoflush.
6004
6005 2002-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6006
6007         * server-src/amstatus.pl.in: Fix.
6008
6009 2002-03-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6010
6011         * server-src/amadmin.c (disklist_one): Print dp->device.
6012         * server-src/amcheck.c (start_host): Send device if specified.
6013         * server-src/amstatus.pl.in: Parse line with device.
6014         * server-src/diskfile.c (parse_diskline): Parse device.
6015         * server-src/diskfile.c (match_disklist): Match on device.
6016         * server-src/diskfile.h (disk_t): New field device.
6017         * server-src/driverio.c: (dumper_cmd): Send device.
6018         * server-src/dumper.c (main): Parse device in request.
6019         * server-src/dumper.c (start_dump): New device argument, send
6020           device to client.
6021         * server-src/planner.c (getsize): Send device to client.
6022         * server-src/server_util.h (MAX_ARGS): Set it to 12.
6023         * client-src/client_util.c (add_include, build_exclude, build_include,
6024           parse_options): New device argument.
6025         * client-src/client_util.h (build_exclude,build_include,parse_options):
6026           New prototype.
6027         * client-src/selfcheck.c: Use device.
6028         * client-src/sendbackup-dump.c: Use device.
6029         * client-src/sendbackup-gnutar.c: Use device.
6030         * client-src/sendbackup.c: Use device.
6031         * client-src/sendbackup.h (start_backup): New device argument.
6032         * client-src/sendsize.c: Use device.
6033         * man/amanda.8.in: Document new disklist syntax.
6034         * example/disklist: Give example.
6035
6036 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6037
6038         * server-src/amstatus.pl.in: Write "wait to flush" only if waittaper
6039           is requested.
6040
6041 2002-03-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6042
6043         * server-src/amstatus.pl.in: Fix for failed tape.
6044
6045 2002-02-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6046
6047         * man/amanda.8.in: Document multiple exclude.
6048         * man/amanda.8.in: Document include.
6049
6050 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6051
6052         * client-src/client-util.c (add_include): Include are glob expression.
6053
6054 2002-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6055
6056         * common-src/debug.c (debug_open); Don't try to renmae an already 
6057           renamed file.
6058
6059 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6060
6061         * server-src/conffile.c (dump_configuration): Print multiple 
6062           exclude and include.
6063
6064 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6065
6066         * client-src/client_util.c (add_exclude, add_include): Typo.
6067
6068 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6069
6070         * client-src/client_util.c (build_include, build_exclude): Fix for 
6071           bad eof detection.
6072
6073 2002-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6074
6075         * client-src/client_util.c (get_name): Create a file name.
6076         * client-src/client_util.c (build_name): Remove old files,
6077           build an unused file name.
6078         * client-src/client_util.c (add_exclude): Add an exclude pattern to
6079           the exclude file.
6080         * client-src/client_util.c (add_include): Add an include to the
6081           include file.
6082         * client-src/client_util.c (build_exclude): Concat all excludes in 
6083           one file.
6084         * client-src/client_util.c (build_include): Concat all includes in 
6085           one file.
6086         * client-src/client_util.h (build_exclude, build_include): Prototype.
6087         * client-src/selfcheck.c.diff (check_options): Call build_exclude 
6088           and build_include.
6089         * client-src/sendsize.c.diff: Call gtar with one 
6090           exclude file/include file.
6091         * client-src/sendbackup-gnutar.c.diff: Call gtar with one 
6092           exclude file/include file.
6093
6094 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6095
6096         * common-src/amanda.h (amfree): Change e local variable to e__errno.
6097         * common-src/amanda.h (strappend): Change t local variable to t_t_t.
6098
6099 2002-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6100
6101         * client-src/sendsize.c: Set include_file and include_list to NULL
6102           when using old protocol.
6103         * client-src/sendbackup-gnutar.c: Include "." when using old protocol.
6104
6105 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6106
6107         * server-src/conffile.h (dumptype_t): Add include_file and include_list.
6108         * server-src/conffile.c: Read include.
6109         * server-src/diskfile.h (disk_t): Add include_file and include_list.
6110         * server-src/diskfile.c (optionstr): Add include to the optionstr.
6111         * server-src/amadmin.c (disklist_one): Print include.
6112         * server-src/planner.c: Use new protocol if include is used.
6113         * client-src/client_util.h (option_t): Add include_file and include_list
6114         * client-src/client_util.c (parse_options): Parse include.
6115         * client-src/selfcheck.c (check_options): Print ERROR if include are 
6116           used for SAMBA or DUMP.
6117         * client-src/sendsize.c: Send include to gnutar.
6118         * client-src/sendbackup-gnutar.c: Send include to gnutar.
6119
6120 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6121
6122         * client-src/client_util.c (parse_options): Check that files from
6123           'exclude list' exist'.
6124         * client-src/selfcheck.c (check_options): Give ERROR if multiple
6125           exclude are used with samba or if exclude are used with DUMP.
6126
6127 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6128
6129         * client-src/sendbackup.h: Remove bad stuff introduced in previous
6130           patch.
6131         * client-src/sendbackup-gnutar.c: Ditto.
6132
6133 2002-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6134
6135         * client_src/client_util.c (parse_options): Function to parse 
6136           the option string. 
6137         * client_src/client_util.h (parse_options): Prototype.
6138         * client_src/client_util.h (option_t): Struct for options.
6139         * client_src/Makefile.am: Compile client_util.
6140         * client_src/selfcheck.c: Use new option_t and multiple exclude.
6141         * client_src/sendbackup.h: Use new option_t and multiple exclude.
6142         * client_src/sendbackup.c: Use new option_t and multiple exclude.
6143         * client_src/sendbackup-dump.c: Use new option_t and multiple exclude.
6144         * client_src/sendbackup-gnutar.c: Use new option_t and multiple exclude.
6145         * client_src/sendsize.c: Use new option_t and multiple exclude.
6146         * server-src/conffile.h: Use sl_t for exclude_file and exclude_list.
6147         * server-src/conffile.c: Multiple exclude.
6148         * server-src/diskfile.h: Use sl_t for exclude_file and exclude_list.
6149         * server-src/diskfile.c: Multiple exclude.
6150         * server-src/planner.c: Multiple exclude.
6151
6152 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6153
6154         * common-src/pipespawn.c (pipespawnv): Typo, ap_snprintf -> snprintf.
6155
6156 2002-02-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6157
6158         * common-src/pipespawn.c (pipespawnv): New funtion taking an 
6159           argv argument.
6160         * common-src/pipespawn.h (pipespawnv): Prototype.
6161
6162 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6163
6164         * server-src/holding.h: Use sl_t instead of holding_t
6165         * server-src/holding.c: Ditto.
6166         * server-src/amcleanupdisk.c: Ditto.
6167         * server-src/amflush.c: Ditto.
6168         * server-src/find.c: Ditto.
6169         * server-src/planner.c: Ditto.
6170
6171 2002-02-11 John R. Jackson (jrj@purdue.edu)
6172
6173         * configure.in: AIX needs the "other" getconf argument to find out
6174           about large file support (XBS5_ILP32_OFFBIG instead of LFS).
6175
6176 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6177
6178         * common-src/sl.h: New header file
6179         * common-src/sl.c: New file for list of string struct.
6180         * common-src/Makefile.am: Compile sl.c
6181
6182 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6183
6184         * changer-src/chg-zd-mtx.sh.in: Don't use '^' in expr match argument.
6185
6186 2002-02-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6187
6188         * common-src/fileheader.c (build_header): Typo.
6189
6190 2002-02-10 John R. Jackson (jrj@purdue.edu)
6191
6192         * configure.in: Add new file-pad tapetype option to take the place
6193           of a positive/negative blocksize.  Blocksize may now only be
6194           positive.  File-pad defaults to "true" which pads the last tape
6195           record like it always has.
6196         * man/amanda.8.in: Ditto.
6197         * server-src/amlabel.c: Ditto.
6198         * server-src/conffile.c: Ditto.  Fix typo in conffile test program.
6199         * server-src/conffile.h: Ditto.
6200         * server-src/planner.c: Ditto.
6201         * server-src/taper.c: Ditto.
6202
6203 2002-02-10 John R. Jackson (jrj@purdue.edu)
6204
6205         * configure.in: Save the ./configure args and display them in the
6206           version string (e.g. amandad*debug and "amadmin xx version").
6207         * common-src/genversion.c: Ditto.
6208
6209 2002-02-10 John R. Jackson (jrj@purdue.edu)
6210
6211         * common-src/alloc.c: Fix type mismatch issues discovered by splint
6212           (www.splint.org).  Compliments of jens persson <jens@persson.cx>.
6213         * common-src/bsd-security.c: Ditto.
6214         * common-src/debug.c: Ditto.
6215         * common-src/dgram.c: Ditto.
6216         * common-src/file.c: Ditto.
6217         * common-src/fileheader.c: Ditto.
6218         * common-src/fileheader.h: Ditto.
6219         * common-src/genversion.c: Ditto.
6220         * common-src/getcwd.c: Ditto.
6221         * common-src/match.c: Ditto.
6222         * common-src/stream.c: Ditto.
6223         * common-src/strstr.c: Ditto.
6224         * common-src/token.c: Ditto.
6225         * recover-src/amrecover.c: Ditto.
6226         * recover-src/display_commands.c: Ditto.
6227         * recover-src/extract_list.c: Ditto.
6228         * recover-src/set_commands.c: Ditto.
6229         * server-src/reporter.c: Ditto.
6230
6231 2002-02-10 John R. Jackson (jrj@purdue.edu)
6232
6233         * changer-src/chg-zd-mtx.sh.in: Major cleanup and general overhaul.
6234         * docs/TAPE.CHANGERS: Cleanup.
6235
6236 2002-02-09 John R. Jackson (jrj@purdue.edu)
6237
6238         * common-src/arglist.h: Clean up gcc detection of printf style variable
6239           argument list functions.
6240         * changer-src/scsi-changer-driver.c: Ditto.
6241         * common-src/debug.c: Ditto.
6242         * common-src/dgram.c: Ditto.
6243         * common-src/error.c: Ditto.
6244         * common-src/packet.c: Ditto.
6245         * common-src/packet.h: Ditto.
6246         * common-src/security.c: Ditto.
6247         * common-src/snprintf.c: Ditto.
6248         * common-src/token.c: Ditto.
6249         * common-src/token.h: Ditto.
6250         * server-src/amindexd.c: Ditto.
6251         * server-src/conffile.c: Ditto.
6252         * server-src/diskfile.c: Ditto.
6253         * server-src/logfile.c: Ditto.
6254         * server-src/logfile.h: Ditto.
6255         * server-src/server_util.c: Ditto.
6256
6257 2002-02-09 John R. Jackson (jrj@purdue.edu)
6258
6259         * configure.in: Must look in both strings.h and string.h when trying
6260           to find function declarations (strncasecmp was not found on AIX
6261           but is really there and our override caused a mismatch error).
6262
6263 2002-02-09 John R. Jackson (jrj@purdue.edu)
6264
6265         * configure.in: Add code to test for a type defined in other than the
6266           autoconf expected locations.  Use it to look for socklen_t.
6267
6268 2002-02-08 John R. Jackson (jrj@purdue.edu)
6269
6270         * server-src/amadmin.c (check_dumpuser): Make it fatal to attempt to
6271           do an operation that would alter any files when run as someone other
6272           than the dump user from amanda.conf.  This should prevent files from
6273           ending up with incorrect ownership.
6274
6275 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6276
6277         * man/amrecover.8.in (settape): Document that the hostname is required
6278           if the protocol (tape:, file:, rait:, null:) is specified.
6279         * man/amrecover.8.in (settape): Document that it is posible to
6280           change the tape device when asked to load tape.
6281
6282 2002-02-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6283
6284         * server-src/holding.c (scan_holdingdir): Create the list in 
6285           datestamp order.
6286
6287 2002-02-02 John R. Jackson (jrj@purdue.edu)
6288
6289         * configure.in: Add unistd.h to list of places to look for ruserok()
6290           declaration.  Reported by John Koenig <jfkoenig@vipb.com> on ALPHA
6291           running OSF1 v5.1
6292
6293 2002-02-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6294         Reported by Roland E. Lipovits <rel@lipo.at0.net>
6295
6296         * server-src/amstatus.pl.in: Don't double-counts the failed 
6297           estimate partitions.
6298
6299 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6300
6301         * configure.in: New --with-maxtapeblocksize with a default of 32.
6302         * common-src/amanda.h: MAX_TAPE_BLOCK_KB is defined in amanda.h
6303
6304 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6305
6306         * common-src/fileheader.c (build_header): Never write the
6307           BLOCKSIZE= line.
6308         * common-src/fileheader.c (parse_file_header): Do not parse the
6309           BLOCKSIZE= line.
6310
6311 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6312
6313         * common-src/fileheader.c (build_header): Write the BLOCKSIZE= line
6314           after the dd if=... line.
6315
6316 2002-01-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6317
6318         * server-src/driver.c: Init code to 0.
6319
6320 2002-01-29 John R. Jackson (jrj@purdue.edu)
6321
6322         * tape-src/output-tape.c (tape_tapefd_fsf): Some systems cannot deal
6323           with large stack variables, so allocate tape I/O buffers dynamically.
6324         * tape-src/tapeio.c (tapefd_rdlabel): Ditto.
6325
6326 2002-01-25 John R. Jackson (jrj@purdue.edu)
6327
6328         * server-src/driver.c: Log non-zero exit codes and signals from all
6329           the dumpers and taper.
6330
6331 2002-01-25 John R. Jackson (jrj@purdue.edu)
6332
6333         * server-src/amindexd.c: Clean up reporting of errors by gethostby*()
6334           functions.  Make sure they always report what they were trying to
6335           look up, and don't bother reporting errno (it would be h_errno).
6336
6337 2002-01-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6338
6339         * common-src/fileheader.h (dumpfile_t): Add blocksize field.
6340         * common-src/fileheader.h (build_header): Change prototype.
6341         * common-src/fileheader.c (fh_init): blocksize default to 
6342           DISK_BLOCK_BYTES.
6343         * common-src/fileheader.c (parse_file_header): Parse BLOCKSIZE= line.
6344         * common-src/fileheader.c (build_header): Remove blocksize parameter, 
6345           write the BLOCKSIZE= line.
6346         * tape-src/tapeio.c: set file.blocksize, Change call to build_header.
6347         * restore-src/amrestore.c: Ditto.
6348         * server-src/dumper.c: Ditto.
6349         * server-src/taper.c: Ditto.
6350         * server-src/holding.c: Ditto.
6351         * server-src/chunker.c: Ditto.
6352
6353 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6354
6355         * changer-src/scsi-changer-driver.c (SCSI_ReadElementStatus):
6356           set ret to -1.
6357
6358 2002-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6359
6360         * server-src/planner.c: Check for dp->todo.
6361
6362 2002-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6363         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
6364
6365         * changer-src/chg-scsi.c: Typo.
6366
6367 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6368
6369         * changer-src/Makefile.am: Run `perl -c' on perl script.
6370         * client-src/Makefile.am: Ditto.
6371         * dumper-src/Makefile.am: Ditto.
6372         * server-src/Makefile.am: Ditto.
6373
6374 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6375         Reported by Geert Uytterhoeven <geert@linux-m68k.org>
6376
6377         * README: Amanda compile on Linux/m68k.
6378
6379 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6380
6381         * changer-src/chg-rth.pl.in: Typo. fi -> }.
6382
6383 2002-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6384         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
6385
6386         * changer-src/chg-chio.pl.in: Typo. fi -> }.
6387         * changer-src/chg-chio.pl.in (prefix, exec_prefix): Set correctly.
6388         * changer-src/chg-chio.pl.in (max_picker): Init to -1.
6389
6390 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6391
6392         * recover-src/extract_list.c (okay_to_continue_tape): Ignore \n
6393           at end of string.
6394
6395 2002-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6396
6397         * server-src/amoverview.pl.in: Ignore some line from amadmin.
6398
6399 2002-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6400
6401         * common-src/event.c: Use ASSERTIONS not ASSERT.
6402
6403 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6404
6405         * tape-src/output-tape.c (tape_tapefd_rewind, tape_tapefd_unload):
6406           Init rc to -1.
6407         * changer-src/scsi-irix.c (SCSI_OpenDevice): Cast to int.
6408         * common-src/match.c (clean_regex): Cast to int.
6409
6410 2002-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6411         Reported by <ian.willis@sge.net>
6412
6413         * common-src/rsh-security.c: Fix for RSH_DEBUG.
6414
6415 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6416
6417         * config/ltconfig: Remove
6418         * config/ltmain.sh, config/libtool.m4i: Update from libtool 1.4.2.
6419         * config/config.guess: Update from
6420           ftp://ftp.gnu.org/gnu/config/config.guess
6421         * config/config.sub: Update from 
6422           ftp://ftp.gnu.org/gnu/config/config.sub
6423         * config/depcomp, config/install-sh, config/missing, 
6424           config/mkinstalldirs: Update from automake 1.5
6425         * config/Makefile.am (EXTRA_DIST): Remove ltconfig.
6426
6427 2001-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6428         Patch by Harlan Stenn <Harlan.Stenn@pfcs.com>
6429
6430         * configure.in: Add missing [.
6431
6432 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6433         Patch by Jason Thomas <jason@topic.com.au>
6434              and Eric Siegerman <erics@telepres.com>
6435
6436         * common-src/bsd-security.c (check_user_amandahosts): improve message.
6437
6438 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6439
6440         * server-src/driver.c: Do not go in degraded mode in nodump mode.
6441         * server-src/conffile.c:Check many options to be sure they are positive.
6442
6443 2001-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6444
6445         * changer-src/chg-scsi.c (get_relative_target): return -1;
6446         * changer-src/scsi-irix.c (SCSI_ExecuteCommand): Remove Zero variable.
6447         * common-src/amanda.h: include strings.h if HAVE_STRINGS_H is defined.
6448         * server-src/amadmin.c (info_one): Remove lev0date variable.
6449         * server-src/amadmin.c (import_db): Remove vers_comment variable.
6450         * server-src/amindexd.c (main): Remove arg_len variable.
6451         * server-src/amtrmidx.c (main): Remove level_position and
6452           datestamp_position variables.
6453         * server-src/changer.c (changer_current): Remove checked variable.
6454         * server-src/conffile.c (read_confline): Check value of RESERVE.
6455         * server-src/conffile.c (get_tapetype): Check value of LENGTH and
6456           FILEMARK.
6457         * server-src/diskfile.h: bit field of 1 bit must be unsigned.
6458         * server-src/driver.c (main): Don't check the value of RESERVE.
6459         * server-src/driver.c (find_diskspace): Remove as_pref variable.
6460         * server-src/driverio.c (getresult): cast cmd_t.
6461         * server-src/chunker.c (databuf_flush): save_type is a filetype_t.
6462         * server-src/find.c (search_logfile): Remove host_undo_ch and
6463           disk_undo_ch variables.
6464         * server-src/holding.c (pick_datestamp): Remove result variable.
6465         * server-src/server_util.c (getcmd): Loop on a cmd_t variable.
6466         * server-src/taper.c (tape_writer_side): Remove out_open variable.
6467         * tape-src/tapeio.c (tapefd_close): Cast to (void *).
6468
6469 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6470
6471         * client-src/selfcheck.c: Fix compiler warning.
6472         * changer-src/chg-scsi.c: Ditto.
6473         * changer-src/scsi-changer-driver.c: Ditto.
6474         * changer-src/scsi-defs.h: Ditto.
6475         * server-src/server_util.c: Ditto.
6476         * common-src/fileheader.c: Ditto.
6477
6478 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6479
6480         * configure.in: Set MAX_TAPE_BLOCK_KB on linux
6481
6482 2001-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6483         Patch by Blaz Zupan <blaz@amis.net>
6484
6485         * changer-src/chg-zd-mtx.sh.in: typo.
6486
6487 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6488
6489         * client-src/selfcheck.c (check_access): New function (old check_file
6490           function).
6491         * client-src/selfcheck.c (check_file): Check that the filename is a
6492           file.
6493         * client-src/selfcheck.c (check_dir): Check that dirname is a directory.
6494
6495 2001-12-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6496         Patch by Henning Schmiedehausen <henning@forge.intermeta.de>
6497
6498         * common-src/file.c (safe_cd): Create the AMANDA_DBGDIR and
6499           AMANDA_TMPDIR directory.
6500
6501 2001-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6502
6503         * server-src/amverify.sh.in: Check that @AMANDA_TMPDIR@ exist.
6504         * server-src/amrmtape.sh.in: Ditto.
6505
6506 2001-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6507
6508         * changer-src/Makefile.am: fix setting of libexec_PROGRAMS.
6509
6510 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6511
6512         * server-src/amstatus.pl.in: Work with amflush log.
6513
6514 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6515
6516         * server-src/driver.c (nodump): new argument, Don't start the dumpers
6517           if set.
6518         * server-src/holding.c (get_flush): chdir to original cwd.
6519         * server-src/reporter.c: accept driver and amflush line in log.
6520         * server-src/amflush.c: exec driver to do the flushing.
6521
6522 2001-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6523
6524         * server-src/amstatus.pl.in: Fixup for estimate, write flush line.
6525
6526 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6527
6528         * recover-src/extract_list.c: You can change the tape device
6529           between each tape.
6530
6531 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6532
6533         * restore-src/amrestore.c (restore): try to find the next chunk 
6534           in the current directory.
6535
6536 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6537
6538         * example/amanda.conf.in: typo.
6539
6540 2001-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6541
6542         Patch by Roland E. Lipovits <rel@lipo.at0.net>
6543         * example/amanda.conf.in: typo.
6544
6545 2001-12-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6546
6547         * server-src/dumper.c, server-src/taper.c, server-src/chunker.c:
6548         Replace TRY_AGAIN by TRYAGAIN.
6549
6550 2001-11-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6551         Patch by Michael D. Beynon <beynon@ll.mit.edu>
6552
6553         * server-src/driver.c (main): Take care of empty tapeq.
6554
6555 2001-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6556
6557         * server-src/diskfile.c (lookup_host): Match must be exact.
6558
6559 2001-11-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6560
6561         * server-src/planner.c: Add host, disk, datestamp and level on 
6562         FLUSH line. Add datestamp on DUMP line.
6563         * server-src/driver.c (read_flush): Read new format of FLUSH line.
6564         * server-src/driver.c (read_schedule): Read new format of DUMP line.
6565         * server-src/amflush.c: Write a datestamp on stderr.
6566         * server-src/amdump.sh.in: Write a datestamp on stderr.
6567         * server-src/amstatus.pl.in: Works with autoflush.
6568
6569 2001-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA> 
6570         * server-src/conffile.c (autoflush): New configuration options.
6571         * server-src/conffile.h (autoflush): New configuration options.
6572         * man/amanda.8.in: Document it.
6573         * example/amanda.conf.in: Document it.
6574         * server-src/holding.h (get_flush, pick_datestamp, pick_all_datestamp,
6575         cleanup_holdingdisk): New prototype.
6576         * server-src/holding.c (scan_holdingdir, cleanup_holdingdisk,
6577         get_flush): New function.
6578         * server-src/holding.c (pick_datestamp, pick_all_datestamp): New
6579         verbose argument.
6580         * server-src/amcleanupdisk.c: Change call to pick_all_datestamp.
6581         * server-src/amflush.c: Change call to pick_all_datestamp.
6582         * server-src/find.c: Change call to pick_all_datestamp.
6583         * server-src/planner.c: Write FLUSH line to driver, the schedule
6584         line contain the keyword DUMP.
6585         * server-src/planner.c: Add datestamp to SUCCESS and FAIL line.
6586         * server-src/amstatus.pl.in: New parsing of DUMP line.
6587         * server-src/driverio.h: New datestamp field in sched_t;
6588         * server-src/driver.c (build_diskspace): New function to build a
6589         assignedhd_t from an holding file.
6590         * server-src/driver.c (read_flush): New function to read the list
6591         of files to flush.
6592         * server-src/driver.c (read_schedule): Parse the keyword DUMP.
6593         * server-src/driver.c: Add datestamp to FAIL line.
6594         * server-src/dumper.c: Add datestamp to FAIL line.
6595         * server-src/reporter.c (timedata_t, repdata_t) : Major change of
6596         structure.
6597         * server-src/taper.c: Add datestamp to FAIL line.
6598
6599 2001-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6600
6601         * server-src/conffile.c: New dumporder configuration.
6602         * server-src/conffile.h: Likewise.
6603         * server-src/driver.c (start_some_dumps): Use dumporder to
6604         select the next disk to dump.
6605         * example/amanda.conf.in: Give an example of dumporder.
6606         * man/amanda.8.in: Document it.
6607
6608 2001-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
6609
6610         * recover-src/amrecover.h (cd_glob, cd_regex, cd_dir): New prototypes.
6611         * recover-src/set_commands.c (cd_glob, cd_regex, cd_dir): New functions.
6612         * recover-src/uparse.y: Add new token CDX, call cd_glob instead 
6613         of set_directory for cd command, call cd_regex for cdx command.
6614         * recover-src/uscan.l: On cdx string return CDX token.
6615         * recover-src/help.c: Document it.
6616         * man/amrecover.8.in: Document it.
6617
6618 2001-09-26 John R. Jackson (jrj@purdue.edu)
6619
6620         * server-src/reporter.c: Fix problem when column sizes are negative.
6621
6622 2001-09-21 John R. Jackson (jrj@purdue.edu)
6623
6624         * server-src/Makefile.am: Add -I../common-src so genversion.h can be
6625           found (since it is built on the fly).  Only fails when build is done
6626           in a different directory than the sources.
6627
6628 2001-09-17 John R. Jackson (jrj@purdue.edu)
6629
6630         * server-src/getconf.c: Add capabilities to amgetconf to return
6631           build environment values and also to open and close a debug file
6632           (e.g. for scripts).
6633         * man/amgetconf.8.in: Ditto.
6634         * changer-src/chg-scsi.c: Ditto.
6635         * common-src/amanda.h: Ditto.
6636         * common-src/debug.c: Ditto.
6637         * common-src/error.c: Ditto.
6638         * server-src/dumper.c: Ditto.
6639
6640 2001-09-17 John R. Jackson (jrj@purdue.edu)
6641
6642         * server-src/planner.c: Make sure we do not attempt to bump beyond
6643           level 9.
6644
6645 2001-09-16 Thomas Hepper (th@ant.han.de)
6646         * changer-src/chg-scsi.c: Added new config option autoinv, 
6647         if not set no auto inventory will be done if the label db is out of 
6648         sync. Reworked MapBarCode, now the parameters are passed as a struct 
6649         and the result is returned in this struct (MBC_T), 
6650         also removed some duplicate/nonsens code from MapBarCode
6651         Changed the definitions for slot_file. It was used duplicate, 
6652         1. as the config file set by amanda.conf, and second set by the
6653         config option in the chg-scsi config file. Now the file from
6654         amanda.conf is called chg_scsi_conf. and changer_file is renamed 
6655         to slot_file.
6656         Added check if cleanfile is not set, if true clean_file is set to NULL
6657         Now return if tape_device is not in the range 0-9.
6658         Added some checks if we have all informations like slot_file, 
6659         devices etc. Fixed and error in the search function, 
6660         if the searched vol is already loaded return the correct info 
6661         and not 'label not found'. Fixed error in the parameter passing 
6662         to get_relative_slot. If the option was -slot last we where 
6663         1 above the end parameter..
6664
6665         * changer-src/scsi-bsd.c: Fix compile problems.
6666         * changer-src/scsi-changer-driver.c: Fixed the last problems :-) 
6667         for the label/barcode handling...
6668         * changer-src/scsi-defs.h: Added new struct MBC_T
6669         * changer-src/sense.c: Added some more messages for Exabyte 210 lib
6670
6671 2001-09-01 John R. Jackson (jrj@purdue.edu)
6672
6673         * client-src/sendsize.c: Fix memory allocation problem.
6674
6675 2001-08-31 John R. Jackson (jrj@purdue.edu)
6676
6677         * server-src/amindex.c: Fix memory leak.  Compliments of Robert Minsk
6678           <egbert@centropolisfx.com>.
6679         * server-src/logfile.c: Fix memory leak.  Compliments of Robert Minsk
6680           <egbert@centropolisfx.com>.
6681
6682 2001-08-30 John R. Jackson (jrj@purdue.edu)
6683
6684         * server-src/planner.c: Fix problem with maintenance of total level
6685           0 size when disk being brought back into the schedule was not doing
6686           a level 0.  Compliments of Robert Minsk <egbert@centropolisfx.com>.
6687
6688 2001-08-24 John R. Jackson (jrj@purdue.edu)
6689
6690         * server-src/amverify.sh.in: Fix missing backtick error.
6691
6692 2001-08-24 John R. Jackson (jrj@purdue.edu)
6693
6694         * server-src/taper.c: Allocate buffers on page boundaries.
6695
6696 2001-08-22 John R. Jackson (jrj@purdue.edu)
6697
6698         * tape-src/Makefile.am: Add chown/chgrp rules for ammt/amdd install
6699           so they end up like all the other Amanda programs.
6700
6701 2001-08-15 Thomas Hepper (th@ant.han.de)
6702         * changer-src/chg-scsi.c. Removed version 1 DB support from mapBarCode. Changed the way parameter
6703         are given to MapBarCode and returned from there. No a struct is passed where all infos
6704         will be returned to the calling function.
6705         If eject is set we will not call LogSense in chg-scsi because it is also called in the
6706         eject function.
6707         * changer-src/scsi-defs.h: Added struct MBC_T used by MapBarCode.
6708         * changer-src/scsi-changer-driver.c: Changed all calls to MapBarCode to the new way
6709
6710 2001-08-14 John R. Jackson (jrj@purdue.edu)
6711
6712         * docs/EXCLUDE: New document from Andrew Hall <ahall@secureworks.net>
6713           describing how to set up and use GNU tar exclusions.
6714         * docs/Makefile.am: Added EXCLUDE and PORT.USAGE.
6715
6716 2001-08-14 John R. Jackson (jrj@purdue.edu)
6717
6718         * docs/PORT.USAGE: New document about how Amanda ports are used.
6719
6720 2001-08-14 John R. Jackson (jrj@purdue.edu)
6721
6722         * client-src/sendsize.c: Fix patch merge goof (ap_snprintf -> snprintf).
6723
6724 2001-08-14 John R. Jackson (jrj@purdue.edu)
6725
6726         * common-src/stream.c: Add stream_client_privileged() function to
6727           get a privileged port and fail if one is not available.  The older
6728           stream_client() function gets a (non-privileged) port in the
6729           configured portrange, if set and possible, else anything available.
6730         * common-src/stream.h: Prototypes.
6731         * recover-src/amrecover.c: Use stream_client_privileged() instead of
6732           stream_client().
6733         * recover-src/extract_list.c: Ditto.
6734         * configure.in: Added several more port range sanity checks.  Added
6735           --with-tcpportrange as an alias for --with-portrange.
6736
6737 2001-08-09 Thomas Hepper (th@ant.han.de)
6738         * changer-src/chg-scsi.c: Added check in MapBarCode if the labelfile
6739         parameter is empty, and if yes return. 
6740         Added global variable do_inventory, and if set do an inventory before
6741         exit.
6742         In MapBarCode changed the way the UPDATE_SLOT is done, now it uses
6743         the slot number passed to MapBarCode to find and update the record.
6744         * changer-src/scsi-changer-driver.c: Added def. for BreeceHill Q7
6745         Added global variables which are set by the tape_rdlabel function
6746         in eject/unload.
6747         Reworked the way how the updates of the labelfile are done.
6748
6749 2001-08-01 John R. Jackson (jrj@purdue.edu)
6750
6751         * client-src/selfcheck.c: Fix typos I introduced into the PC subdir
6752           patch.
6753         * client-src/sendbackup-gnutar.c: Ditto.
6754         * client-src/sendsize.c: Ditto.
6755
6756 2001-08-01 Marko Injac <marko.injac@mail.insert.si> via John R. Jackson (jrj@purdue.edu)
6757
6758         * client-src/findpass.c: Allow backup of subdirs of PC shares for
6759           amanda-2.4.1beta1 by Greg Shebert amanda-hackers list Tue Feb 1,
6760           2000.  Ported to amanda-2.4.2p2 on debian potato by Marko Injac.
6761         * client-src/findpass.h: Ditto.
6762         * client-src/selfcheck.c: Ditto.
6763         * client-src/sendbackup-gnutar.c: Ditto.
6764         * client-src/sendsize.c: Ditto.
6765         * docs/SAMBA: Ditto.
6766
6767 2001-08-01 John R. Jackson (jrj@purdue.edu)
6768
6769         * client-src/sendsize.c: Prefix each debug line with sendsize process
6770           information to make picking out the output from a particular estimate
6771           run easier when maxdumps > 1.
6772
6773 2001-08-01 John R. Jackson (jrj@purdue.edu)
6774
6775         * server-src/amcheck.c: Unlink the temp files as soon as they are
6776           created so they always go away when amcheck terminates.  Use
6777           pipespawn() instead of system() to call the MAILER program.  Call
6778           dbopen()/dbclose() in main() to write to a debug file instead of
6779           stderr.
6780
6781 2001-08-01 John R. Jackson (jrj@purdue.edu)
6782
6783         * common-src/debug.c: Only rename files that end in ".debug".
6784
6785 2001-08-01 John R. Jackson (jrj@purdue.edu)
6786
6787         * common-src/pipespawn.c: Show empty pipespawn() args as "".
6788
6789 2001-07-31 John R. Jackson (jrj@purdue.edu)
6790
6791         * server-src/conffile.h: Add support for tapetype "blocksize" keyword.
6792         * server-src/conffile.c: Add tapetype "blocksize" keyword.  Use
6793           DISK_BLOCK_KB where appropriate instead of TAPE_BLOCK_SIZE.  Disallow
6794           negative tape length and tapemark size.
6795         * common-src/alloc.c: Add new amtable_free() function.  Adjust args
6796           to amtable_alloc() to be consistent with amtable_free().
6797         * common-src/amanda.h: Add new am_round() and am_floor() macros.
6798           Define new DISK_BLOCK_KB, DISK_BLOCK_BYTES, MAX_TAPE_BLOCK_KB,
6799           MAX_TAPE_BLOCK_BYTES constants.  Remove TAPE_BLOCK_SIZE and
6800           TAPE_BLOCK_BYTES.
6801         * common-src/bsd-security.c: TAPE_BLOCK_BYTES -> NETWORK_BLOCK_BYTES.
6802           Use -1 instead of DEFAULT_SIZE.
6803         * common-src/rsh-security.c: Ditto.
6804         * common-src/fileheader.c: Change write_header() to build_header().
6805           Add blocksize arg.  Get rid of unused fill_buffer() function.
6806         * common-src/fileheader.h: Ditto.
6807         * common-src/stream.c: Use negative value to indicate default buffer
6808           size.
6809         * common-src/stream.h: Add NETWORK_BLOCK_BYTES and STREAM_BUFSIZE
6810           constants.  Remove DATABUF_SIZE and DEFAULT_SIZE.
6811         * man/amanda.8.in: Document the new "blocksize" tapetype keyword.
6812           Document that "length" in tapetype has meaning to some output
6813           drivers.  Fix "bumpdays" and "speed" defaults.  Document new "file:"
6814           output driver record length data file.
6815         * man/amrestore.8: Add new "-b blocksize" arg.  Add description of
6816           how to catalogue the images on a tape.
6817         * recover-src/amrecover.c: DEFAULT_SIZE -> -1.
6818         * recover-src/extract_list.c: DEFAULT_SIZE -> -1.  Use DISK_BLOCK_BYTES
6819           instead of TAPE_BLOCK_BYTES for the header size.
6820         * restore-src/amrestore.c: Add new "-b blocksize" arg.  Document how
6821           the header is handled.  Deal with arbritrary tape record sizes.
6822         * server-src/amlabel.c: Use the tapetype blocksize.
6823         * server-src/chunker.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
6824           appropropriate instead of older constants.  Rewrite disk I/O buffer
6825           management.  Never pad output stream (e.g. to holding disk).  Use
6826           -1 for default stream buffer size.
6827         * server-src/driver.c: Use DISK_BLOCK_KB where appropriate instead of
6828           TAPE_BLOCK_SIZE.
6829         * server-src/driverio.c: Set chunker argv[0] to name based on which
6830           dumper it is working with.
6831         * server-src/dumper.c: Use DISK_BLOCK_BYTES and DISK_BLOCK_KB as
6832           appropropriate instead of older constants.  Rewrite disk I/O buffer
6833           management.  Never pad output stream (e.g. to holding disk).  Use
6834           -1 for default stream buffer size.
6835         * server-src/holding.c: Change TAPE_BLOCK_BYTES to DISK_BLOCK_BYTES.
6836           Use fullread() instead of fill_buffer().
6837         * server-src/planner.c: Use tapetype blocksize instead of constant
6838           for tape length calculations.
6839         * server-src/taper.c: Support tapetype blocksize.  Only pad writes if
6840           blocksize is negative.  Reorganize shared memory buffers to put
6841           data on page boundaries.  Try reducing tapebuf count if allocation
6842           fails.
6843         * tape-src/output-file.c: Maintain record size information.  Use mask
6844           and flags from caller.
6845         * tape-src/output-null.c: Use new amtable_alloc() arg order.
6846         * tape-src/output-rait.c: Use new amtable_alloc() arg order.  Add
6847           private version of amtable_free() for standalone build.  Fix off
6848           by one and other table allocation problems.
6849         * tape-src/output-rait.h: Maintain file descriptor count in the
6850           structure.
6851         * tape-src/tapeio.c: Support tapetype blocksize.  Use new
6852           amtable_alloc() arg order.  Fix some error message text.  
6853         * tape-src/tapeio.h: New prototypes with blocksize arg.
6854         * tape-src/tapetype.c: Add "-b blocksize" arg.  Fix some end case
6855           aborts.
6856
6857 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
6858
6859         * recover-src/amrecover.c: Improve the "Unexpected server end of file"
6860           message.
6861
6862 2001-07-30 Ben Lewis (bhlewis@purdue.edu) via John R. Jackson (jrj@purdue.edu)
6863
6864         * man/amanda.8.in: Document includefile.
6865         * man/amdump.8.in: Add note that local crontab documention should be
6866           checked for proper syntax.
6867         * man/amrecover.8.in: Document use of PAGER environment variable.
6868         * man/amrestore.8: Document that GNU tar must be used as some vendor
6869           tar programs cannot read GNU tar format.
6870         * docs/FAQ: Update location of online FAQ.
6871
6872 2001-07-25 John R. Jackson <jrj@purdue.edu>
6873
6874         * docs/TAPE.CHANGER: Changes from Ben Lewis (bhlewis@purdue.edu) to
6875           document the new (but optional) searchable features.
6876
6877 2001-07-19 John R. Jackson <jrj@purdue.edu>
6878
6879         * common-src/error.c: Fix function prototype error.
6880
6881 2001-07-19 John R. Jackson <jrj@purdue.edu>
6882
6883         * common-src/error.c: Add new function errordump() that acts like
6884           error() but calls abort() to (try to) drop core.
6885         * common-src/amanda.h: Prototype.
6886         * common-src/alloc.c: Call errordump() instead of error() for some
6887           memory allocation failures to aid traceback.
6888
6889 2001-07-19 John R. Jackson <jrj@purdue.edu>
6890
6891         * server-src/amadmin.c: Improve the error message when read_conffile()
6892           fails.
6893         * server-src/amcheck.c: Ditto.
6894         * server-src/amcleanupdisk.c: Ditto.
6895         * server-src/amflush.c: Ditto.
6896         * server-src/amlabel.c: Ditto.
6897         * server-src/amlogroll.c: Ditto.
6898         * server-src/amtape.c: Ditto.
6899         * server-src/amtrmidx.c: Ditto.
6900         * server-src/amtrmlog.c: Ditto.
6901         * server-src/driver.c: Ditto.
6902         * server-src/dumper.c: Ditto.
6903         * server-src/getconf.c: Ditto.
6904         * server-src/planner.c: Ditto.
6905         * server-src/reporter.c: Ditto.
6906         * server-src/taper.c: Ditto.
6907
6908 2001-07-19 John R. Jackson <jrj@purdue.edu>
6909
6910         * server-src/driverio.c: Make the name "ps" reports match the dumper
6911           name (e.g. "dumper3").
6912
6913 2001-07-18 John R. Jackson <jrj@purdue.edu>
6914
6915         * changer-src/chg-chio.pl.in: Try to unload the drive before moving
6916           a tape back to a slot.  Fixes a problem on Ecrix AutoPAK devices.
6917           Patch compliments of Sam Leffler <sam@errno.com>.
6918
6919 2001-07-18 John R. Jackson <jrj@purdue.edu>
6920
6921         * server-src/amverify.sh.in: Change to the Amanda temp directory
6922           instead of the config directory.  In addition to making amverify
6923           act like most other Amanda programs, this gets around an
6924           xfsrestore bug.
6925
6926 2001-07-18 John R. Jackson <jrj@purdue.edu>
6927
6928         * man/amanda.8.in: Describe the .amandahosts format better.  Clean up
6929           a couple of minor typos.
6930
6931 2001-07-13 John R. Jackson <jrj@purdue.edu>
6932
6933         * common-src/dgram.h: Improve UDP datagram size calculation.
6934         * server-src/amcheck.c: Break up large requests into pieces.
6935         * server-src/planner.c: Break up large requests into pieces.
6936
6937 2001-07-12 John R. Jackson <jrj@purdue.edu>
6938
6939         * tape-src/amdd.c: Use tapefd_close() in amdd if the file was
6940           opened with tape_open().  This does any necessary output driver
6941           cleanup (such as moving the current file position for "file:").
6942
6943 2001-07-12 John R. Jackson <jrj@purdue.edu>
6944
6945         * Makefile.am: Fix automake warning.
6946
6947 2001-07-11 John R. Jackson <jrj@purdue.edu>
6948
6949         * tape-src/tapetype.c: Use tapefd_write() instead of write().
6950
6951 2001-07-11 John R. Jackson <jrj@purdue.edu>
6952
6953         * common-src/file.c: Fix a memory leak.  Grab exponentially larger
6954           chunks of memory up to a point, then level out.
6955
6956 2001-07-11 John R. Jackson <jrj@purdue.edu>
6957
6958         * tape-src/tapetype.c: Only report a pass summary when stderr is not
6959           a tty.  Deal with some obscure end cases.
6960
6961 2001-07-10 John R. Jackson <jrj@purdue.edu>
6962
6963         * changer-src/scsi-aix.c: Convert Tape_Eject to Tape_Ioctl.
6964         * changer-src/scsi-solaris.c: Ditto.
6965
6966 2001-07-10 John R. Jackson <jrj@purdue.edu>
6967
6968         * server-src/amcheck.c: Move user name check before attempt to create
6969           temp files so more appropriate error message is generated.
6970
6971 2001-07-09 John R. Jackson <jrj@purdue.edu>
6972
6973         * common-src/dgram.c: Fix error end case unitialized variable.
6974
6975 2001-07-05 John R. Jackson <jrj@purdue.edu>
6976
6977         * docs/TAPE.CHANGERS: Minor docs/TAPE.CHANGERS update to clarify
6978           that -slot and -eject unload and put the current tape away.
6979
6980 2001-07-02 John R. Jackson <jrj@purdue.edu>
6981
6982         * changer-src/chg-manual.sh.in: Add yet another ONLINEREGEX, this one
6983           compliments of Nick (n_hibma@qubesoft.com) for some FreeBSD variant.
6984
6985 2001-06-29 John R. Jackson <jrj@purdue.edu>
6986
6987         * tape-src/tapeio.c: Move the device name parsing routines from the
6988           RAIT module to tapeio and make them generic.  This allows one
6989           module to open another, e.g. rait:{null:,z1,z2,z3}.  Maintain
6990           both the original open flags and mask and use them on the real open.
6991         * tape-src/amdd.c: Make sure this compiles "stand-alone".  To do so,
6992           use: gcc -Wall -DNO_AMANDA amdd.c output-rait.c output-tape.c.
6993           Abort as soon as one of the open calls fails instead of waiting
6994           for read/write to report a bad file descriptor.
6995           Pass a mask to the open function in case the output is created.
6996         * tape-src/ammt.c: Make sure this compiles "stand-alone".  To do so,
6997           use: gcc -Wall -DNO_AMANDA ammt.c output-rait.c output-tape.c.
6998         * tape-src/output-file.c: Maintain both the original open flags and
6999           mask and use them on the real open.
7000         * tape-src/output-null.c: Ditto.
7001         * tape-src/output-file.h: Change to non-prototype declaration of
7002           file_tape_open() to deal with the optional mask parameter.
7003         * tape-src/output-null.h: Ditto.
7004         * tape-src/output-tape.h: Ditto.
7005         * tape-src/tapeio.h: Ditto.  Add device name parsing prototypes.
7006         * tape-src/output-rait.c: Make sure this compiles "stand-alone".
7007           Maintain both the original open flags and mask and use them on the
7008           real open.
7009         * tape-src/output-rait.h: Make sure this compiles "stand-alone".
7010         * tape-src/output-tape.c: Make this part of the "stand-alone" compile
7011           of ammt and amdd since it knows all the proper ioctl operations.
7012           Maintain both the original open flags and mask and use them on the
7013           real open.
7014
7015 2001-06-27 John R. Jackson <jrj@purdue.edu>
7016
7017         * changer-src/chg-manual.sh.in: Add "bs=32k" to the dd command so
7018           some kernels would not complain about the tape block being larger
7019           than the buffer.
7020         * changer-src/chg-mtx.sh.in: Ditto.
7021
7022 2001-06-21 John R. Jackson <jrj@purdue.edu>
7023
7024         * server-src/planner.c: If the compression rate is very small (such
7025           as zero after some types of errors) and FORCE_FULL is set, a path
7026           is taken that (among other bad things) generates a schedule that
7027           driver cannot read (syntax errors).
7028         * server-src/conffile.c: Do not allow negative comprate values.
7029
7030 2001-06-19 John R. Jackson <jrj@purdue.edu>
7031
7032         * server-src/holding.c: Use fullread() instead of read() to read the
7033           holding disk file.
7034
7035 2001-06-19 John R. Jackson <jrj@purdue.edu>
7036
7037         * server-src/amtape.c: Document "slot advance" in the help output.
7038
7039 2001-06-19 John R. Jackson <jrj@purdue.edu>
7040
7041         * server-src/amindexd.c: Minor gethostbyaddr() argument change to be
7042           consistent with other Amanda usage.
7043
7044 2001-06-19 John R. Jackson <jrj@purdue.edu>
7045
7046         * server-src/amverify.sh.in: Better cross platform tar detection.
7047
7048 2001-06-19 John R. Jackson <jrj@purdue.edu>
7049
7050         * server-src/amverify.sh.in: More of the vrestore vs. 'b' flag change.
7051
7052 2001-06-19 John R. Jackson <jrj@purdue.edu>
7053
7054         * recover-src/amrecover.c: Add more debugging to guess_disk()
7055           function to better track how the disk is determined from the
7056           current working directory.  Report current working directory in
7057           error message.  Change "Trying" to "Trying disk" to distinguish
7058           this from host attempts.
7059         * recover-src/set_commands.c: Remove redundant amfree() call.  Remove
7060           redundant "OISD /" exchange.  Change "Trying" to "Trying host" to
7061           distinguish this from disk attempts.
7062
7063 2001-06-19 Thomas Hepper <th@ant.han.de>
7064         * changer-src/chg-scsi.c: Made clean_slot a global var. Removed
7065         the label db update stuff from the COM_SLOT part (moved to unload
7066         in scsi-changer-driver.c)
7067         * changer-src/scsi-changer-driver.c: Do an unload if the tape is
7068         loaded in the Inventory function. Added an marker to avoid recursion
7069         in Inventroy function. Added label db check in unload function and
7070         call Inventroy if it indicates an out of sync db
7071         
7072 2001-06-18 John R. Jackson <jrj@purdue.edu>
7073
7074         * recover-src/extract_list.c: Do not pass a 'b' (blocking) factor
7075           flag to vrestore.  Some versions do not like it.
7076
7077 2001-06-18 John R. Jackson <jrj@purdue.edu>
7078
7079         * common-src/dgram.c: Use a sin_addr arg to inet_ntoa() like all the
7080           other Amanda code.
7081         * common-src/stream.c: Ditto.
7082
7083 2001-06-18 John R. Jackson <jrj@purdue.edu>
7084
7085         * changer-src/chg-manual.sh.in: Add yet another online regex.  Found
7086           by George Herson <gherson@snet.net>.
7087
7088 2001-06-12 Thomas Hepper <th@ant.han.de>
7089         * changer-src/scsi-changer-driver.c (Inventory): Call Tape_Ready and let this function
7090         decide how to get the tape drive status.
7091         * changer-src/scsi-changer-driver.c (Tape_Ready): Now this function looks how to get
7092         the tape drive status.
7093         * changer-src/scsi-linux.c: changed some dbprintf to DebugPrint
7094         
7095 2001-06-10 Thomas Hepper <th@ant.han.de>
7096         * changer-src/chg-scsi.c: If get_current_slot gets an error from the fscanf function
7097         return also an error (-1) to the calling fucntion. (Fixes an error if the slot file
7098         is created with an touch)
7099         * changer-src/scsi-changer-driver.c: Fixed some NULL pointer errors in PrintConf
7100         Fixed an error in the unload function if the destination slot for the unload is not empty.
7101         (cut and paste error !!)
7102         
7103 2001-06-07 Thomas Hepper <th@ant.han.de>
7104         * changer-src/scsi-changer-driver.c: Change the type of TapeStatus from void to int.
7105         In PrintConf changed the loop variable for scan of pDev from 3 to CHG_MAXDEV.
7106         In PrintConf check if pDev[count].inquiry is a NULL pointer, and if yes skip.
7107         * changer-src/scsi-irix.c: Changed a lot, now it should work.
7108         * client-src/sendbackup-dump.c: Removed a { in the vxfsdump part. 
7109         * tape-src/output-tape.c: Fixed the tape status checks, the structure elelemt
7110         is called buf.mt_dposn not buf.mt.dposn.
7111         
7112 2001-06-04 Thomas Hepper <th@ant.han.de>
7113         * changer-src/scsi-changer-driver.c: Renamed Tape_Eject to Tape_Ioctl
7114         incl. change of passwd parameter.
7115
7116 2001-06-04 Thomas Hepper <th@ant.han.de>
7117         * changer-src/chg-scsi.c: include dmalloc.h for debugging of mem problems
7118         * changer-src/scsi-cam.c: Replaced Tape_Eject with a more generic 
7119         function to send different ioctls (Tape_Ioctl)
7120         * changer-src/scsi-bsd.c: see above
7121         * changer-src/scsi-hpux_new.c: see above
7122         * changer-src/scsi-irix.c: If the device can be opened in SCSI_OpenDevice
7123         set pDev[ip].avail to 1.
7124         * changer-src/scsi-linux.c: include dmalloc.h for debugging of mem problems.
7125         Fixed an invalid free in SCSI_OpenDevice. Replaced Tape_Eject with Tape_Ioctl.  
7126         * changer-src/scsi-changer-driver.c: include dmalloc.h for debugging of mem problems
7127         Eject the tape in the inventory function before the scan to get all
7128         barcode labels. Check in GenericEject if the device is able to receive
7129         SCSI commands, if not use the ioctl interface to eject the tape.
7130         Same for the GenericRewind function.
7131         Added the LogSense in the GenericEject function.
7132         * changer-src/scsi-defs.h: Added define for Tape_Ioctl commands, IOCTL_EJECT.
7133         
7134 2001-06-01 John R. Jackson <jrj@purdue.edu>
7135
7136         * server-src/amindexd.c (build_disk_table): Make sure a holding disk
7137           image is used rather than a copy also on tape, if both exist.
7138
7139 2001-06-01 Thomas Hepper <th@ant.han.de>
7140         * changer-src/scsi-changer-driver.c: Added an range check in the load
7141         function and abort if the requested slot is out of range.
7142         Fixed in incorrect pointer in the eject function if the ioctl
7143         interface is used
7144
7145 2001-05-29 John R. Jackson <jrj@purdue.edu>
7146
7147         * server-src/reporter.c: Fix PostScript output to only show what went
7148           on the tape, not what the total amount dumped.  Compliments of
7149           Joshua Baker-LePain <jlb17@duke.edu>.
7150
7151 2001-05-28 Thomas Hepper <th@ant.han.de>
7152         * changer-scsi/chg-scsi.c: Made the array for pDev configurable, #define CHG_MAXDEV
7153         * changer-scsi/scsi-defs.h: Added the define for CHG_MAXDEV
7154         * changer-src/scsi-cam.c: Set the flag pDev[x].avail to 1 if the device can be openend.
7155         Added debug message if the open fails. Implemented the function Tape_Status (not tested)
7156         * changer-src/scsi-changer-driver.c: Added the function DLT448ElementStatus, was lost
7157         during merge from 2.4.2. The difference to GenericElementStatus is that the DecodeModeSense
7158         needs an offset of 12, not 0 as in GenericElementStatus.
7159         Added an unload/GenericResetStatus in the Inventory function if an bar code reader is 
7160         available. This is to get the label from the loaded tape.
7161         The function TapeStatus sets now the status regardless of the status of the tape.
7162         If the device is capable for sending SCSI commands use the SCSI interface to get
7163         the status of the tape.
7164         * docs/TAPE.CHANGERS: Added some notes about the debuglevel keyword and a short
7165         description on how to use the sgen interface on solaris 2.8
7166         
7167 2001-05-18 John R. Jackson <jrj@purdue.edu>
7168
7169         * client-src/patch-system.sh.in: Missed a reference to kamanda in the
7170           last patch.  Compliments of Tom Schutter <t.schutter@att.net>.
7171
7172 2001-05-16 John R. Jackson <jrj@purdue.edu>
7173
7174         * client-src/patch-system.sh.in: Go ahead and update /etc/services
7175           on a client even if the services themselves are not turned on to
7176           inetd.  Compliments of Tom Schutter <t.schutter@att.net>.  Add
7177           the TCP port for amandad for future use.
7178
7179 2001-05-14 John R. Jackson <jrj@purdue.edu>
7180
7181         * client-src/amandad.c: Fix hang when the incoming packet size is
7182           larger than the pipe buffer.  Also, report back when too much
7183           data for a packet is returned by the service (this is not properly
7184           diagnosed back to, e.g., amcheck, but that's for another day).
7185         * common-src/bsd-security.c: Fix minor comment error.
7186
7187 2001-05-11 John R. Jackson <jrj@purdue.edu>
7188
7189         * common-src/util.c (bind_portrange): Log a debug message stating
7190           explicitly that all ports in the requested range were busy, or
7191           that a specific port failed bind() for an unexpected reason.
7192
7193 2001-05-07 John R. Jackson <jrj@purdue.edu>
7194
7195         * client-src/sendbackup-dump.c: Do not use full path to sed.  Found by
7196           Roland E. Lipovits (rel@lipo.at0.net).
7197
7198 2001-05-07 Thomas Hepper <th@ant.han.de>
7199         * changer-src/chg-scsi.c : Fixed NULL pointer in debug print of the config.
7200         * changer-src/scsi-canger-driver.c : Try to get and set the status of the tape drive in
7201         GenericElementStatus if there is an error condition. Move from tape to tape to get the
7202         tape loaded if it is only ejected.
7203         * changer-src/scsi-defs.h : New define for the Tape_Status fucntion, TAPE_NOT_LOADED
7204         * changer-src/scsi-linux.c : Added return type for tape not loaded
7205         * changer-src/scsi-solaris.c : In SCSI_ExecuteCommand force the direction to write if the
7206         databuffersize is 0, if the direction is input the ioctl returns with errno 22, invalid argument.
7207         The function Tape_Status will now return either tape loaded or not.
7208         * example/chg-scsi-solaris.conf.in : Added pointer to doc/TAPE.CHANGERS on how to configure
7209         the sgen driver.
7210         * doc/TAPE.CHANGERS : Updated the description of the chg-scsi.conf options, short description on
7211         how to confgure the sgen driver on solaris 2.8
7212         
7213 2001-05-04 John R. Jackson <jrj@purdue.edu>
7214
7215         * config/depcomp: Fix problem with argument*  processing and update to
7216           latest version.
7217
7218 2001-05-01 Thomas Hepper <th@ant.han.de>
7219         * changer-src/chg-scsi.c : Added patch for the slot advance command from John R. Jackson
7220         * changer-src/scsi-changer-driver.c : Renamed EXB120BarCode to EXB_BarCode. The currently
7221         known Exabyte libs handles the reader in the same way.
7222         
7223 2001-04-28 Thomas Hepper <th@ant.han.de>
7224         * changer-scsi/chg-scsi.c : Added missing break in MapBarCode
7225         Changed the way an tape label is read, use tape_open to open the
7226         device, not own open.
7227         * changer-src/scsi-changer-driver.c : Changed the way an tape label 
7228         is read, use tape_open to open the device, not own open.
7229         * changer-src/scsi-linux.c : Fixed error on reopen of non SCSI devices
7230         (/dev/nst0 for example)
7231         
7232 2001-04-26 Thomas Hepper <th@ant.han.de>
7233
7234         * changer-src/scsi-aix.c : Added more different ret values depending on the SCSI
7235         error condition. 
7236         * changer-src/scsi-changer-driver.c: Split GenericElementStatus in GetElementStatus which
7237         reads the element Status, and GenericElementStatus which handles the errors.
7238         Removed DLT448ElementStatus. Rework the handling of some SCSI error conditions...
7239         * changer-src/scsi-defs.h: Added more defs for the debug SECTION types.
7240         * changer-src/scsi-linux.c: Fixed an bug in the non SCSI device handling in SCSI_OpenDevice
7241         * changer-src/sense.c: Added EXB-210 defs, added defs for READ_ELEMENT_STATUS error conditions.
7242         
7243 2001-04-25 John R. Jackson <jrj@purdue.edu>
7244
7245         * changer-src/chg-rth.pl.in: Add exec_prefix back since it is usually
7246           used to define sbindir.  Sigh.  Include X=X assignments to get rid
7247           of the Perl warnings.
7248         * server-src/amoverview.pl.in: Ditto.
7249
7250 2001-04-24 John R. Jackson <jrj@purdue.edu>
7251
7252         * changer-src/chg-chio.pl.in: Remove unused exec_prefix to get rid of
7253           warning message.  Patch from Nick Hibma <n_hibma@qubesoft.com>.
7254
7255 2001-04-23 John R. Jackson <jrj@purdue.edu>
7256
7257         * client-src/selfcheck.c: Allow Samba shares with no password.
7258         * client-src/sendbackup-gnutar.c: Ditto.
7259         * client-src/sendsize.c: Ditto.
7260
7261 2001-04-15 Thomas Hepper <th@ant.han.de>
7262         * Makefile.am: Added contrib/gsc files to EXTRA_DIST
7263         
7264 2001-04-15 Thomas Hepper <th@ant.han.de>
7265         * changer-src/scsi-aix.c: Rework of the SCSI interface, support
7266         to talk to an device handled by the gsc driver (not tested yet)
7267         * changer-src/scsi-bsd.c (SCSI_ExecuteCommand): Fix error in
7268         device handling, Changed the return codes in case of an error
7269         * changer-src/scsi-cam.c (SCSI_ExecuteCommand): Fix error in 
7270         device handling, Changed the return codes in case of an error
7271         * changer-src/scsi-changer-driver.c: Changed the way 
7272         SCSI_ExecuteCommand passes error conditions back, error handling
7273         should now be done by the calling function, SCSI_Run for example.
7274         * changer-src/scsi-changer-driver.c (CheckMove): If the 
7275         DeviceCapabilitiesPage is not set do not return an error, print
7276         an warning to the debug file.
7277         * changer-src/scsi-defs.h: New define for AIX_USE_GSC
7278         New defines for the return codes of SCSI_ExecuteCommand
7279         * changer-src/scsi-hpux_new.c: Fix error in device handling.
7280         Changed the return codes in case of an error
7281         * changer-src/scsi-irix.c: Fix error in device handling.
7282         Changed the return codes in case of an error
7283         * changer-src/scsi-solaris.c: Fix error in device handling.
7284         Changed the return codes in case of an error
7285         
7286 2001-04-15 Thomas Hepper <th@ant.han.de>
7287         *contrib/gsc: Generic SCSI interface for AIX, used by chg-scsi
7288
7289 2001-04-13 John R. Jackson <jrj@purdue.edu>
7290
7291         * example/amanda.conf.in: Fix multiple holding disks comment.
7292
7293 2001-04-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7294
7295         * client-src/getfsent.h (search_fstab): New prototype.
7296         * client-src/getfsent.c (search_fstab): New arg check_dev, skip
7297         entry if check_dev==1 and device stats failed.
7298         * client-src/getfsent.c (open_fstab for linux): Open MOUNTED.
7299         * client-src/getfsent.c (close_fstab for linux): close MOUNTED.
7300         * client-src/getfsent.c (get_fstab_nextentry for linux): parse MOUNTED.
7301         * client-src/getfsent.c (amname_to_devname, amname_to_dirname, 
7302         amname_to_fstype): Call search_fstab sequentialy with 1 and 0 
7303         for check_dev.
7304
7305 2001-04-10 John R. Jackson <jrj@purdue.edu>
7306
7307         * docs/INSTALL: Update location to GNUPLOT per Lars Hecking
7308           <lhecking@nmrc.ie>.
7309
7310 2001-04-09 Thomas Hepper <th@ant.han.de>
7311         * changer-src/scsi-changer-driver.c: More rework on the debug output.
7312         changed definition SENSE_NO_TAPE to SENSE_TAPE_NOT_ONLINE
7313         In function GenericRewind do an check before the rewind to see
7314         if the tape is loaded.
7315         * changer-src/scsi-defs.h: New #define for the debug, SECTION_TAPE
7316         * changer-src/sense.c: New definition for SENSE_RETRY, ASC=4, ASCQ=1
7317         
7318 2001-04-08  Alexandre Oliva  <aoliva@redhat.com>
7319
7320         * client-src/getfsent.c (search_fstab): Don't skip entry just
7321         because device stats failed.
7322
7323 2001-04-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7324
7325         * config/config.guess: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
7326         * config/config.sub: Upgrade from ftp://ftp.gnu.org/pub/gnu/config
7327         * config/mkinstalldirs: Upgrade from automake CVS.
7328
7329 2001-04-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7330
7331         * config/depcomp: new file for automake.
7332
7333 2001-04-03 John R. Jackson <jrj@purdue.edu>
7334
7335         * Makefile.am: Remove *.test.c from the distribution.
7336
7337 2001-04-02 John R. Jackson <jrj@purdue.edu>
7338
7339         * NEWS: Update some of the 2.4.2 items.
7340
7341 2001-03-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7342
7343         * client-src/getfsent.c (search_fstab): If the device doesn't 
7344         exist, it will take the entry from /etc/mtab.
7345
7346 2001-03-26 John R. Jackson <jrj@purdue.edu>
7347
7348         * server-src/amtape.c: Do not rewind for slot "advance".  Do not report
7349           device name (which is bogus) for slot "advance".
7350
7351 2001-03-23 John R. Jackson <jrj@purdue.edu>
7352
7353         * example/amanda.conf.in: Add warning that the sample amanda.conf
7354           will not work as is and must be edited to match the installation.
7355
7356 2001-03-21 John R. Jackson <jrj@purdue.edu>
7357
7358         * recover-src/extract_list.c (extract_files_child): Fix problem that
7359           caused xfsrestore arg list to not be NULL terminated.
7360
7361 2001-03-19 John R. Jackson <jrj@purdue.edu>
7362
7363         * configure.in: Add --with-debug-days (default is 4) and remove
7364           --with-pid-debug-files.
7365         * common-src/Makefile.am: Clean up test program dependencies.
7366         * common-src/debug.c: Create timestamped debug file names and remove
7367           files older (based on file name) than --with-debug-days.  Rename old
7368           style names to new style (based on modification time) the first time
7369           they are seen.
7370         * common-src/file.c: Use construct_datestamp() instead of private code.
7371         * common-src/genversion.c: Display AMANDA_DEBUG_DAYS and remove
7372           DEBUG_FILE_WITH_PID.
7373         * common-src/util.c: Move construct_datestamp to here and add new
7374           function construct_timestamp.  Change time used to build string to
7375           be an optional parameter instead of always getting it in the routine.
7376         * common-src/util.h: Add prototypes.
7377         * server-src/amcleanupdisk.c: Change construct_datestamp call to pass
7378           indication that it should get the current time.
7379         * server-src/amflush.c: Ditto.
7380         * server-src/chunker.c: Ditto.
7381         * server-src/driver.c: Ditto.
7382         * server-src/dumper.c: Ditto.
7383         * server-src/planner.c: Ditto.
7384         * server-src/server_util.c: Remove construct_datestamp (now in util.c).
7385         * server-src/server_util.h: Remove prototype.
7386
7387 2001-03-15 John R. Jackson <jrj@purdue.edu>
7388
7389         * server-src/planner.c (analyze_estimate): Do not do an incremental
7390           if FORCE_NO_BUMP is set and the last dump was a level 0.
7391
7392 2001-03-14 John R. Jackson <jrj@purdue.edu>
7393
7394         * server-src/amcheck.c: Change message from NOTE to WARNING when
7395           the hold file exists.
7396         * man/amcheck.8.in: Ditto.
7397
7398 2001-03-14 John R. Jackson <jrj@purdue.edu>
7399
7400         * client-src/selfcheck.c: Send smbclient via pipe instead of command
7401           line arg.  Various minor cleanups.  Use pipespawn instead of system()
7402           to clean up quoting problems and be consistent with sendsize and
7403           sendbackup.
7404         * client-src/sendbackup-dump.c: Send smbclient via pipe instead of
7405           line arg.  Various minor cleanups.
7406         * client-src/sendbackup-gnutar.c: Send smbclient via pipe instead of
7407           line arg.  Various minor cleanups.  Clean up listed incremental file
7408           handling.
7409         * client-src/sendbackup.c: Various minor cleanups.
7410         * client-src/sendsize.c: Send smbclient via pipe instead of command
7411           line arg.  Various minor cleanups.  Clean up listed incremental file
7412           handling.
7413         * docs/SAMBA: Update and cleanup.
7414         * common-src/pipespawn.c: Import from 2.4.2 branch.
7415         * common-src/pipespawn.h: Import from 2.4.2 branch.
7416         * common-src/Makefile.am: Add pipespawn.[ch] references.
7417
7418 2001-03-13 John R. Jackson <jrj@purdue.edu>
7419
7420         * recover-src/extract_list.c (extract_files_child): Fix xfsrestore
7421           argument list processing.
7422
7423 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7424
7425         * server-src/dumper.c (read_datafd): set errstr and return on
7426         databuf_write error.
7427
7428 2001-03-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7429
7430         * server-src/dumper.c (read_indexfd): Ignore error while writing
7431         to the index file. Log an L_INFO message.
7432
7433 2001-03-09 John R. Jackson <jrj@purdue.edu>
7434
7435         * server-src/taper.c: Initialize tape_fd to -1 and test in a couple
7436           more places.  Run normal protocol after a tape startup error (e.g.
7437           "cannot overwrite") instead of just exiting to keep driver from
7438           reporting a broken pipe.
7439
7440 2001-03-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7441         Reported by Eric Schnoebelen <eric@cirr.com>
7442
7443         * server-src/changer.c (changer_command): Fix fd leak.
7444
7445 2001-03-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7446
7447         * server-src/server_util.c (cmdstr, getcmd, putresult): New.
7448         * server-src/server_util.h (cmdstr, getcmd, putresult): Prototype.
7449         * server-src/server_util.h (cmd_t): New.
7450         * server-src/driverio.c (cmdstr): Remove.
7451         * server-src/driverio.c: Use new cmdstr and cmd_t.
7452         * server-src/driverio.h: (tok_t): Remove.
7453         * server-src/amflush.c: Use new cmd_t.
7454         * server-src/driver.c: Use new cmd_t.
7455         * server-src/chunker.c (cmd_t, getcmd, putresult): Remove.
7456         * server-src/chunker.c: Use new cmd_t, getcmd and putresult.
7457         * server-src/dumper.c (cmd_t, getcmd, putresult): Remove.
7458         * server-src/dumper.c: Use new cmd_t, getcmd and putresult.
7459         * server-src/taper.c (cmd_t, getcmd, putresult): Remove.
7460         * server-src/taper.c: Use new cmd_t, getcmd and putresult.
7461
7462 2001-03-05 John R. Jackson <jrj@purdue.edu>
7463
7464         * common-src/util.c: The fullread() and fullwrite() functions should
7465           call read() and write(), not tapefd_read() and tapefd_write().
7466
7467 2001-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7468
7469         * server-src/planner.c (setup_estimate): Don't re-ask for level 0
7470         if last_level is 0 and FORCE_NO_BUMP is set.
7471
7472 2001-02-27 John R. Jackson <jrj@purdue.edu>
7473
7474         * common-src/stream.h: Move DATABUF_SIZE to stream.h.
7475         * client-src/sendbackup.c: Do not ask for a big receive buffer.
7476         * server-src/dumper.c: Ask for a bigger send buffer.  Minor typos.
7477         * server-src/taper.c: Ask for a bigger receive buffer.
7478         * recover-src/amrecover.c: Use stream_client instead of specific
7479           (and incorrect) bind() code.
7480         * recover-src/extract_list.c: Ditto.
7481
7482 2001-02-27 John R. Jackson <jrj@purdue.edu>
7483
7484         * common-src/dgram.c: Add lots more error logging to help track down
7485           problems.
7486
7487 2001-02-27 John R. Jackson <jrj@purdue.edu>
7488
7489         * common-src/stream.c: Add lots more error logging to help track down
7490           problems.
7491
7492 2001-02-27 John R. Jackson <jrj@purdue.edu>
7493
7494         * server-src/amtape.c: Rewind after loading a slot either by slot
7495           or by label.
7496
7497 2001-02-27 John R. Jackson <jrj@purdue.edu>
7498
7499         * configure.in: Add some commentary about why pushdef/popdef are
7500           needed around AC_CHECK_TYPE.
7501
7502 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7503         Patch by Alex Pilosov <alex@pilosoft.com>
7504
7505         * changer-src/scsi-cam.c: Clean up some SCSI CAM code,
7506         and permit use of both bus:target:lun(btl) and a full
7507         device name (/dev/ch0) as changerdev.
7508         
7509 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7510         Patch by Joe Rhett <jrhett@isite.net>
7511         and Jason Hollinden <jhollind@sammg.com>
7512
7513         * changer-src/chg-zd-mtx.sh.in:  Added barcode reader support,
7514         >9 tape slot support, variable for 'offline' or 'ONLINE'
7515         return value of tape device, and multi-config support.  Moved
7516         all user settable variables to 'changerfile'.conf in the
7517         amanda config directory.  Added commented out example of .conf
7518         file into script.
7519
7520 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7521
7522         * server-src/amindexd.c (uncompress_file): remove uncompressed
7523         index file if the command failed.
7524
7525 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7526
7527         * restore-src/amrestore.c (main): init r to 0.
7528
7529 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7530
7531         * changer-src/scsi-defs.h (PrintConf): Add prototype.
7532         * changer-src/scsi-changer-driver.c (SCSI_Run): Add prototype.
7533         * changer-src/scsi-linux.c (ScanBus): remove btl variable, return 0.
7534
7535 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7536
7537         * man/Makefile.am (EXTRA_DIST): add amdd.8 and ammt.8.
7538
7539 2001-02-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7540
7541         * server-src/planner.c (setup_estimate): ask for level 0 for 
7542         a new disk if force-bump is set, 
7543         log force-bump and force-nobump command.
7544
7545 2001-02-17 Thomas Hepper <th@ant.han.de>
7546
7547         * changer-scsi/chg-scsi.c: New Option -genconf to create an example config file
7548          based on the information found on the system, works for Linux and BSD with cam
7549          support. New config option debuglevel
7550         * changer-src/scsi-changer-deriver.c: Reworked the debug output, it is now possible
7551          to control the amount of information by the config option debuglevel in the config
7552          file (docs follow), not complete yet.
7553         * changer-src/scsi-changer-driver.c: New function PrintConf to create an example
7554           config file.
7555           New function DebugPrint to print debug information based on the variable debuglevel.
7556           Replaced a lot of dbprintf with new Function DebugPrint
7557         * changer-src/scsi-aix.c: changed parameter for ScanBus
7558         * changer-src/scsi-irix.c: changed parameter for ScanBus
7559         * changer-src/scsi-solaris.c: changed parameter for ScanBus
7560         * changer-src/scsi-bsd.c: changed parameter for ScanBus
7561         * changer-src/scsi-cam.c: Implemented function ScanBus
7562         * changer-src/scsi-linux.c: Implemented function ScanBus
7563         
7564 2001-02-09 John R. Jackson <jrj@purdue.edu>
7565
7566         * server-src/diskfile.c: Fix core dump in test program.
7567
7568 2001-02-09 John R. Jackson <jrj@purdue.edu>
7569
7570         * tape-src/output-file.c: Use a "data" subdirectory of the main
7571           file driver device directory to hold the tape "files".  This
7572           allows the status file to be moved to the main directory.
7573         * man/amanda.8.in: Document these changes.
7574
7575 2001-02-08 Thomas Hepper <th@ant.han.de>
7576
7577         * changer-src/scsi-aix.c: Added dummy ScanBus function
7578         * changer-src/scsi-bsd.c: Added dummy ScanBus function
7579         * changer-src/scsi-cam.c: Added dummy ScanBus function
7580         * changer-src/scsi-hpux_new.c: Added dummy ScanBus function
7581         * changer-src/scsi-irix.c: Added dummy ScanBus function
7582         * changer-src/scsi-defs.h: Added prototype for ScanBus function
7583
7584 2001-02-04 John R. Jackson <jrj@purdue.edu>
7585
7586         * man/amanda.8.in: Fix mailto to space separated, not comma.
7587
7588 2001-02-03 John R. Jackson <jrj@purdue.edu>
7589
7590         * .cvsignore: Add entries to keep CVS quiet.
7591         * */.cvsignore: Ditto.
7592
7593 2001-02-03 John R. Jackson <jrj@purdue.edu>
7594
7595         * client-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
7596         * common-src/Makefile.am: Add more sources as needed to the test
7597           programs so they would compile.
7598         * server-src/Makefile.am: Create TEST_PROGS make variable ala the
7599           other Makefile.am files.
7600         * tape-src/Makefile.am: Add CLEANFILES rule to remove *.test.c.
7601
7602 2001-02-03 John R. Jackson <jrj@purdue.edu>
7603
7604         * server-src/diskfile.c: Fix test program compilation error and bug
7605           when just a config name was given on the command line.
7606
7607 2001-02-02 John R. Jackson <jrj@purdue.edu>
7608
7609         * server-src/reporter.c: Fix problem with enum being unsigned on
7610           some systems.
7611
7612 2001-01-29 John R. Jackson <jrj@purdue.edu>
7613
7614         * tape-src/tapeio.c (tape_fsf): Go back to using snprintf as this
7615           is now "the way".
7616
7617 2001-01-29 John R. Jackson <jrj@purdue.edu>
7618
7619         * tape-src/output-tape.c (tape_tapefd_status): Convert flag values
7620           to booleans (compliments of Marc W. Mengel <mengel@fnal.gov>).
7621         * tape-src/tapeio.c (tape_fsf): Use ap_snprintf instead of snprintf
7622           (also compliments of Marc).
7623
7624 2001-01-26 John R. Jackson <jrj@purdue.edu>
7625
7626         * changer-src/Makefile.am: Double up the references to libamanda to
7627           handle systems that put regex in strange places.
7628         * client-src/Makefile.am: Ditto.
7629         * recover-src/Makefile.am: Ditto.
7630         * restore-src/Makefile.am: Ditto.
7631         * server-src/Makefile.am: Ditto.
7632         * tape-src/Makefile.am: Ditto.
7633
7634 2001-01-23 John R. Jackson <jrj@purdue.edu>
7635
7636         * configure.in: Add tapeio switch from Marc Mengel <mengel@fnal.gov>,
7637           enhance and add "null" and "file" output drivers.  Change all
7638           tape changers (except chg-scsi) to use amdd and ammt.  Change all
7639           tape changers (except chg-scsi) to log and use a consistent
7640           error reporting scheme.  Fix various bugs along the way.  Add new
7641           chg-multi config option, posteject, which is an optional script
7642           to call after each "tape" is ejected (e.g. to use to start a
7643           CDROM writer).  Remove special code for tapedev of /dev/null
7644           (now handled by the "null" output driver).  Changed the taper
7645           protocol to pass the host/disk/level so the write can send that
7646           along to the output driver.  Fairly major rework of amrestore
7647           to clean up tape/non-tape and other oddities.
7648         * changer-src/chg-chio.pl.in: Ditto.
7649         * changer-src/chg-chs.sh.in: Ditto.
7650         * changer-src/chg-manual.sh.in: Ditto.
7651         * changer-src/chg-mtx.sh.in: Ditto.
7652         * changer-src/chg-multi.sh.in: Ditto.
7653         * changer-src/chg-rth.pl.in: Ditto.
7654         * changer-src/chg-zd-mtx.sh.in: Ditto.
7655         * client-src/sendbackup.c: Ditto.
7656         * common-src/alloc.c: Ditto.
7657         * common-src/amanda.h: Ditto.
7658         * docs/INTERNALS: Ditto.
7659         * man/Makefile.am: Ditto.
7660         * man/amanda.8.in: Ditto.
7661         * man/amdd.8: Ditto.
7662         * man/ammt.8: Ditto.
7663         * restore-src/amrestore.c: Ditto.
7664         * server-src/amcheck.c: Ditto.
7665         * server-src/amlabel.c: Ditto.
7666         * server-src/amtape.c: Ditto.
7667         * server-src/amverify.sh.in: Ditto.
7668         * server-src/conffile.c: Ditto.
7669         * server-src/conffile.h: Ditto.
7670         * server-src/taper.c: Ditto.
7671         * tape-src/Makefile.am: Ditto.
7672         * tape-src/amdd.c: Ditto.
7673         * tape-src/ammt.c: Ditto.
7674         * tape-src/output-file.c: Ditto.
7675         * tape-src/output-file.h: Ditto.
7676         * tape-src/output-null.c: Ditto.
7677         * tape-src/output-null.h: Ditto.
7678         * tape-src/output-rait.c: Ditto.
7679         * tape-src/output-rait.h: Ditto.
7680         * tape-src/output-tape.c: Ditto.
7681         * tape-src/output-tape.h: Ditto.
7682         * tape-src/tapeio.c: Ditto.
7683         * tape-src/tapeio.h: Ditto.
7684         * tape-src/tests/amtapeio.test.000: Ditto.
7685         * tape-src/tests/amtapeio.test.001: Ditto.
7686         * tape-src/tests/amtapeio.test.002: Ditto.
7687         * tape-src/tests/amtapeio.test.003: Ditto.
7688         * tape-src/tests/amtapeio.test.004: Ditto.
7689         * tape-src/tests/amtapeio.test.005: Ditto.
7690         * tape-src/tests/amtapeio.test.006: Ditto.
7691         * tape-src/tests/amtapeio.test.007: Ditto.
7692         * tape-src/tests/amtapeio.test.008: Ditto.
7693         * tape-src/tests/amtapeio.test.009: Ditto.
7694         * tape-src/tests/amtapeio.test.010: Ditto.
7695         * tape-src/tests/amtapeio.test.011: Ditto.
7696         * tape-src/tests/amtapeio.test.012: Ditto.
7697         * tape-src/tests/amtapeio.test.013: Ditto.
7698         * tape-src/tests/amtapeio.test.014: Ditto.
7699         * tape-src/tests/amtapeio.test.015: Ditto.
7700         * tape-src/tests/amtapeio.test.016: Ditto.
7701         * tape-src/tests/amtapeio.test.017: Ditto.
7702         * tape-src/tests/amtapeio.test.018: Ditto.
7703         * tape-src/tests/cleartape: Ditto.
7704         * tape-src/tests/newtest: Ditto.
7705         * tape-src/tests/rerun: Ditto.
7706         * tape-src/tests/runtest: Ditto.
7707         * tape-src/tests/testdist: Ditto.
7708         * tape-src/tests/torture: Ditto.
7709
7710 2001-01-24 John R. Jackson <jrj@purdue.edu>
7711
7712         * client-src/amandad.c: Improve packet logging.
7713
7714 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7715
7716         * server-src/driver.c (start_some_dumps): typo.
7717
7718 2001-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7719
7720         * server-src/driverio.h (sched_t): new field no_space.
7721         * server-src/driver.c (start_some_dumps): don't start a disk if
7722           no_space is set.
7723         * server-src/driver.c (continue_dumps): set no_space if it's the
7724           only active dumpers, case c.
7725         * server-src/driver.c (read_schedule): set no_space to 0.
7726
7727 2001-01-23 John R. Jackson <jrj@purdue.edu>
7728
7729         * configure.in: Test for setmntent.
7730         * client-src/getfsent.c: Add some support for Redhat 7 /etc/fstab
7731           changes that indirectly reference the device for a file system.
7732
7733 2001-01-22  Marc W. Mengel <mengel@fnal.gov>
7734
7735         * recover-src/extract_list.c: Added -U to tar recover options
7736         to reduce errors recovering shared libs and/or binaries on
7737         active filesystems.
7738
7739 2001-01-20  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7740
7741         * docs/INSTALL: Notes about tar-1.13.19
7742
7743 2001-01-17  Thomas Hepper <th@ant.han.de>
7744
7745         * changer-src/chg-scsi.c: Moved definitions for config_t and
7746         changer_t into scsi-defs.h
7747         * changer-src/chg-scsi.c: New config option havebarcode
7748         * changer-src/scsi-changer-driver.c: Changed GenericBarCode do handle
7749         the option havebarcode. Replaced NoBarCode with GenericBarCode.
7750         Fixed compile warnings from -Wshadow
7751         * changer-src/scsi-linux.c: New function ScanBus to scan the SCSI Bus.
7752         not used yet.
7753         * changer-src/scsi-solaris.c: Changed the return value to
7754         Command.uscsi_status in SCSI_ExecuteCommand if the return from the
7755         ioctl is not 0;
7756         
7757 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7758
7759         * man/amanda.8.in: New section "HOST & DISK EXPRESSION" and 
7760           "DATESTAMP EXPRESSION".
7761         * man/amadmin.8.in: Document new usage.
7762         * man/amflush.8.in: Document new usage.
7763         * man/amcheck.8.in: Document new usage.
7764         * man/amdump.8.in: Document new usage.
7765         * man/amrestore.8: Document new usage.
7766         * server-src/amadmin.c: Fix usage.
7767         * server-src/amflush.c: Fix usage.
7768         * server-src/amcheck.c: Fix usage.
7769
7770 2001-01-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7771
7772         * server-src/diskfile.c (match_disklist): Return if no args.
7773
7774 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7775
7776         * server-src/diskfile.c (match_disklist): Fix.
7777
7778 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7779
7780         * server-src/diskfile.c (match_disklist): Updated for
7781           [host [disk]*]* syntax.
7782
7783 2001-01-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7784
7785         * common-src/match.c (match_datestamp): New function.
7786         * common-src/amanda.h (match_datestamp): Prototype.
7787         * server-src/amflush.c: Use match_datestamp.
7788         * restore-src/amrestore.c: Use match_datestamp.
7789
7790 2001-01-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7791
7792         * common-src/match.c (match_word): Support for leading ^ and
7793           trailing $.
7794
7795 2001-01-04 John R. Jackson <jrj@purdue.edu>
7796
7797         * common-src/error.c (error): If the debug file pointer is set, log
7798           any fatal error message to it and close the file so it has a good
7799           trace of what happened and when.
7800
7801 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7802
7803         * taper-src/am-dd.c: include "tapeio.h", fix debug warning.
7804         * taper-src/am-mt.c: include "tapeio.h", fix debug warning.
7805         * taper-src/output-rait.c: include "tapeio.h", new define for
7806            rait_debug
7807         * taper-src/tapeio.c(many): Remove unused tfd variable.
7808         * taper-src/tapeio.h (tape_unload,tape_status): Prototype.
7809
7810 2001-01-04 John R. Jackson <jrj@purdue.edu>
7811
7812         * client-src/killpgrp.c: Calls to error() do not need a newline.
7813
7814 2001-01-04 John R. Jackson <jrj@purdue.edu>
7815
7816         * man/amanda.8.in: Try to make it clearer that dumpcycle and maxdumps
7817           changes in the main part of the config file must appear before any
7818           dumptype definitions, and also that inherited dumptypes must appear
7819           before their reference.
7820
7821 2001-01-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7822
7823         * server-src/driver.c (continue_dumps): Don't reduce est_size if
7824           it is already larger than holding space allocated.
7825         * server-src/dumper.c: Remove all code for FILE_DUMP command.
7826         * server-src/chunker.c: Better handling of ENOSPC from
7827           write_tapeheader().
7828
7829 2001-01-04 John R. Jackson <jrj@purdue.edu>
7830
7831         * server-src/conffile.c (main): Fix conffile test program so it builds
7832           and works again.
7833
7834 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7835
7836         * changer-src/scsi-defs.h (ChangerCMD_T): replace array function
7837           pointer by enumerated pointers.
7838         * changer-src/scsi-changer-driver.c: Use new calling convention.
7839
7840 2001-01-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7841
7842         * server-src/amstatus.pl.in: Better support for TRY-AGAIN and
7843           ABORT-FINISHED result.
7844
7845 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7846
7847         * server-src/amflush.c: Use getopt to parse argument.
7848         * server-src/amflush.c: New [-D date]* argument.
7849         * man/amflush.8.in: Document it.
7850
7851 2001-01-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7852         Patch by Andreas F Mueller <afm@othello.ch>
7853
7854         * server-src/amadmin.c (force_no_bump_one): Fix message.
7855
7856 2001-01-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7857
7858         * tape-src/am-dd.c: include "amanda.h"
7859         * tape-src/am-mt.c: include "amanda.h"
7860         * tape-src/am-mt.c (main): res is int.
7861         * tape-src/output-rait.c: include "amanda.h", do not define stderr.
7862         * tape-src/tapeio.c (xxx_tapefd_read, plain_tapefd_read): second
7863           argument should be "char *"
7864         * tape-src/tapeio.c (xxx_tapefd_write, plain_tapefd_write): second
7865           argument should be "const char *"
7866
7867 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7868
7869         * server-src/find.c (find_match): Use todo bit.
7870         * server-src/find.c (find_dump): No arguments.
7871         * server-src/find.h (find_dump): Change prototype.
7872         * server-src/amadmin.c (find): New [host disk]* pair arguments.
7873         * server-src/amindexd.c: Change call to find_dump().
7874         * server-src/amtrmidx.c: Change call to find_dump().
7875
7876 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7877
7878         * configure.in: Don't check krb5 include if krb5 is not selected.
7879
7880 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7881
7882         * tape-src/Makefile.am (noinst_HEADERS): Add output-rait.h
7883
7884 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7885
7886         * server-src/amadmin.c (diskloop): typo.
7887
7888 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7889
7890         * server-src/amadmin.c (diskloop): New [host disk]* pair arguments.
7891         * server-src/amadmin.c (diskloop, reuse, noreuse): use get_pname()
7892         instead of argv[0].
7893
7894 2000-12-31  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7895
7896         * server-src/amflush.c (main):log DISK after checking if logfile exist.
7897
7898 2000-12-30 John R. Jackson <jrj@purdue.edu>
7899
7900         * common-src/bsd-security.c: Improve the .rhosts/.amandahosts messages
7901           when things go wrong.  Add support for "bsdsecurity" test program
7902           in common-src.
7903         * common-src/Makefile.am: Ditto.
7904         * common-src/amanda.h: Ditto.
7905         * restore-src/amidxtaped.c: Ditto.
7906         * server-src/amindexd.c: Ditto.
7907
7908 2000-12-30 John R. Jackson <jrj@purdue.edu>
7909
7910         * ChangeLog: Bring Jean-Louis into the right month :-).
7911         * changer-src/scsi-changer-driver.c: Untested changes to at least
7912           get the code to compile on Solaris and to remove some warnings.
7913         * changer-src/scsi-defs.h: Ditto.
7914         * changer-src/scsi-solaris.c: Ditto.
7915
7916 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7917
7918         * server-src/diskfile.c (add_disk): New function.
7919         * server-src/diskfile.h (add_disk): Prototype.
7920         * server-src/logfile.h (logtype_e): add L_DISK.
7921         * server-src/logfile.c (logtype_str): add "DISK".
7922         * server-src/amflush.c (main): log DISK.
7923         * server-src/planner.c (main): log DISK.
7924         * server-src/reporter.c: use DISK if available.
7925
7926 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7927
7928         * server-src/amcheck.c: New [host disk]* pair arguments.
7929         * server-src/amflush.c: Ditto.
7930         * server-src/planner.c: Ditto.
7931         * server-src/amdump.sh.in: Ditto.
7932         * server-src/amrestore.c: Use new host/disk matcher.
7933         * man/amcheck.8.in: Document new [host disk]* pair arguments.
7934         * man/amflush.8.in: Ditto.
7935         * man/amdump.8.in: Ditto.
7936
7937 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7938
7939         * server-src/diskfile.c (match_disklist): new function.
7940         * server-src/diskfile.h (struct disk_s): new field todo.
7941         * server-src/diskfile.h (match_disklist): prototype.
7942
7943 2000-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7944
7945         * common-src/match.c (match_word, match_host, match_disk): 
7946         new functions.
7947         * common-src/amanda.h (match_host, match_disk): prototype.
7948
7949 2000-12-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
7950
7951         * server-src/planner.c (analyze_estimate): pick incremental level
7952         if no estimate of level 0.
7953
7954 2000-12-28 Marc W. Mengel <mengel@fnal.gov>
7955         * changer-src/chg-juke.sh.in: New File
7956         * changer-src/Makefile.am: Added support for chg-juke.
7957         * docs/TAPE.CHANGERS: Likewise.
7958         * configure.in: Likewise.
7959
7960 2000-12-24 John R. Jackson <jrj@purdue.edu>
7961
7962         * server-src/getconf.c: Fix free() of static text string (BUGGY) when
7963           the parameter being looked up is bad.
7964
7965 2000-12-23 David Wolfskill  <dhw@whistle.com>
7966
7967         * server-src/amcheck.c (start_server_check): Change directory
7968           writable check to be for the tapelist directory instead of
7969           the config file directory.  Remove config file directory test.
7970         * man/amcheck.8.in: Add mention of tapelist directory and do
7971           some other directory writable cleanup.
7972
7973 2000-12-12 John R. Jackson <jrj@purdue.edu>
7974
7975         * client-src/sendbackup-gnutar.c: Fix regex pattern to accept blanks
7976           or tabs.
7977
7978 2000-12-12 John R. Jackson <jrj@purdue.edu>
7979
7980         * Makefile.am: Work around problem with automake 1.4 not including
7981           pkgdata_DATA.
7982         * docs/Makefile.am: Include RAIT and VTAPE-API in distribution.
7983           Work around problem with automake 1.4 not including pkgdata_DATA.
7984         * tape-src/rait.h: Renamed to rait.h.
7985         * tape-src/rait.c: Renamed to rait.c.
7986         * tape-src/output-rait.h: Renamed from rait.h.
7987         * tape-src/output-rait.c: Renamed from rait.c.
7988         * tape-src/Makefile.am: Reflect the new rait.[ch] names.
7989         * tape-src/tapeio.c: Use output-rait.h name.  Minor typo changes.
7990
7991 2000-12-08 Marc Mengel <mengel@fnal.gov>
7992
7993         * docs/RAIT: New file.
7994         * docs/VTAPE-API: New file.
7995         * tape-src/rait.c: New File providing RAIT virtual tape type.
7996         * tape-src/tapeio.c: Major Surgery.
7997           (vtable): New static table of virtual tape types.
7998           (fdtable): New static table mapping file descriptors.
7999           (tapefd_fsf_ioctl): Renamed tapefd_fsf, with added ioctl argument.
8000           (tapefd_rewind_ioctl): Likewise.
8001           (tapefd_unload_ioctl): Likewise.
8002           (tapefd_weof_ioctl): Likewise.
8003           (tapefd_status_ioctl): Likewise.
8004           (tape_open): Now is a virtual tape table lookup and call.
8005           (tape_access): Now is a switch through virtual tape table.
8006           (tape_stat): Likewise.
8007           (tapefd_close): Likewise.
8008           (tapefd_fsf): Likewise.
8009           (tapefd_read): Likewise.
8010           (tapefd_rewind): Likewise.
8011           (tapefd_resetofs): Likewise.
8012           (tapefd_unload): Likewise.
8013           (tapefd_status): Likewise.
8014           (tapefd_weof): Likewise.
8015           (tapefd_write): Likewise.
8016           (plain_tape_access): Rename of tape_access.
8017           (plain_tape_open): Likewise.
8018           (plain_tapefd_read): Likewise.
8019           (plain_tape_stat): Likewise.
8020           (plain_tapefd_write): Likewise.
8021           (plain_tapefd_close): Likewise.
8022           (plain_tapefd_fsf): Now calls tapefd_fsf_ioctl with &ioctl().
8023           (plain_tapefd_rewind): Likewise.
8024           (plain_tapefd_resetofs): Likewise.
8025           (plain_tapefd_unload): Likewise.
8026           (plain_tapefd_status): Likewise.
8027           (plain_tapefd_weof): Likewise.
8028
8029 2000-12-04 John R. Jackson  <jrj@purdue.edu>
8030
8031         * server-src/amdump.sh.in: Temporary fix for $LOGNAME vs whoami
8032           problem.
8033
8034 2000-12-04 John R. Jackson  <jrj@purdue.edu>
8035
8036         * server-src/conffile.c (read_conffile_recursively): If the file name
8037           for the includefile directive is not absolute, make it relative to
8038           the configuration directory.
8039
8040 2000-12-03 John R. Jackson  <jrj@purdue.edu>
8041
8042         * restore-src/amrestore.c: Fix header when compression is included.
8043           Use "fast" option for -c and add new -C option to get "best".
8044         * man/amrestore.8: Document the new option, the compression level,
8045           and clean up some nroff issues.
8046
8047 2000-11-30 Marc Mengel <mengel@fnal.gov>
8048
8049         * changer-src/chg-chio.pl.in: Use am-mt and am-dd versus mt and dd.
8050         * changer-src/chg-chs.sh.in: Likewise.
8051         * changer-src/chg-manual.sh.in: Likewise.
8052         * changer-src/chg-mtx.sh.in: Likewise.
8053         * changer-src/chg-multi.sh.in: Likewise.
8054         * changer-src/chg-rth.pl.in: Likewise.
8055         * changer-src/chg-zd-mtx.sh.in:  Likewise.
8056         * tape-src/am-dd.c: New file. Replacement for dd.
8057         * tape-src/am-mt.c: New file. replacement for mt.
8058         * tape-src/Makefile.am: Add build for am-mt and am-dd.
8059         * tape-src/tapeio.c (tape_unload, tapefd_unload, tape_status, 
8060           tapefd_status): New functions.
8061           (tape_rewind, tape_fsf, tape_rdlabel): Change error message 
8062                 for tape being offline so it matches online/offline regex 
8063                 in changer scripts.
8064           (tape_open): Ifdef-out mode flag clearing, so you can pass 
8065                 O_TRUNC, etc.  in for am-dd.
8066
8067 2000-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8068
8069         * common-src/util.c: #include "../tape-src/tapeio.h"
8070         * tape-src/tapeio.c(tapefd_write): second arg is const.
8071         * tape-src/tapeio.h(tapefd_write): Likewise.
8072         * common-src/event.c(event_loop): declare entry if ASSERT is defined.
8073         * changer-src/chg-scsi.c: Fix compiler warning.
8074         * changer-src/scsi-aix.c: Likewise.
8075         * changer-src/scsi-bsd.c: Likewise.
8076         * changer-src/scsi-cam.c: Likewise.
8077         * changer-src/scsi-changer-driver.c: Likewise.
8078         * changer-src/scsi-defs.h: Likewise.
8079         * changer-src/scsi-hpux.c: Likewise.
8080         * changer-src/scsi-hpux_new.c: Likewise.
8081         * changer-src/scsi-irix.c: Likewise.
8082         * changer-src/scsi-linux.c: Likewise.
8083         * changer-src/scsi-solaris.c: Likewise.
8084         * changer-src/sense.c: Likewise.
8085
8086 2000-11-22 John R. Jackson  <jrj@purdue.edu>
8087
8088         * contrib/dbbackup.ksh: Deal with adm being a symlink.
8089         * contrib/dbbackup.tcl: Update for Tcl 8.3 and newer Oratcl versions.
8090
8091 2000-11-22 John R. Jackson  <jrj@purdue.edu>
8092
8093         * Makefile.am: Forgot to add contrib/sst/README.Amanda to the list
8094           of files to put in a distribution.
8095
8096 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8097
8098         * recover-src/extract_list.c (extract_files_child): Add support for
8099           XFSRESTORE.
8100
8101 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8102
8103         * server-src/amcheck.c: Minor message wording changes.
8104
8105 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8106
8107         * configure.in: Forgot to check in this part of new amgetconf.8.in.
8108
8109 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8110
8111         * contrib/sst/README.Amanda: New file of Amanda specific sst notes.
8112         * contrib/sst/sst.c: Attempt at letting gcc compile sst.
8113
8114 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8115
8116         * man/amgetconf.8.in: New man page.
8117         * man/Makefile.am: Add support for amgetconf.8.in.
8118         * man/amadmin.8.in: Update for 2.4.2 and do general cleanup.
8119         * man/amanda.8.in: Ditto.
8120         * man/amcheck.8.in: Ditto.
8121         * man/amcheckdb.8.in: Ditto.
8122         * man/amcleanup.8.in: Ditto.
8123         * man/amdump.8.in: Ditto.
8124         * man/amflush.8.in: Ditto.
8125         * man/amlabel.8.in: Ditto.
8126         * man/amrecover.8.in: Ditto.
8127         * man/amreport.8.in: Ditto.
8128         * man/amrestore.8: Ditto.
8129         * man/amrmtape.8.in: Ditto.
8130         * man/amstatus.8.in: Ditto.
8131         * man/amtape.8: Ditto.
8132         * man/amtoc.8.in: Ditto.
8133         * man/amverify.8.in: Ditto.
8134
8135 2000-11-21 John R. Jackson  <jrj@purdue.edu>
8136
8137         * contrib/sst/sst.c (sst_ioctl): Allow non-root users to use sst.
8138
8139 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8140
8141         * server-src/amdump.sh.in: exit if amgetconf exit with status != 0.
8142         * server-src/amcleanup.sh.in: ditto
8143         * server-src/amstatus.pl.in: ditto
8144
8145 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8146
8147         * server-src/driver.c (start_some_dumps): don't check free_kps if
8148         curusage == 0.
8149         * server-src/driver.c (free_kps): remove the kludge.
8150
8151 2000-11-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8152
8153         * server-src/conffile.c: It's an error to have a negative chunksize.
8154         * man/amanda.8.in: remove documentation of negative chunksize.
8155         * example/amanda.conf.in: ditto
8156         * example/amanda.conf.chg-scsi.in:ditto
8157         * NEWS: negative chunksize is no longer supported.
8158
8159 2000-11-03 John R. Jackson  <jrj@purdue.edu>
8160
8161         * server-src/driver.c (handle_taper_result): the holding disk entry
8162         should not be removed just because taper could not write it out in
8163         the "too many taper retries" case.  It should be left for amflush.
8164
8165 2000-11-01 John R. Jackson  <jrj@purdue.edu>
8166
8167         * server-src/amverify.sh.in: use common form for getting the first
8168         line of a file/pipe.  Sed is more portable than head.
8169
8170 2000-10-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8171
8172         * client-src/selfcheck.c (check_disk): Write an appropriate
8173         message if the disk name start with '//' and the program is DUMP
8174         or SAMBA is not compiled in.
8175
8176 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8177
8178         * server-src/driver.c (handle_chunker_result): The dumpsize is
8179         the third argument, not the fourth.
8180
8181 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8182
8183         * server-src/driver.c (handle_chunker_result): don't check
8184         pending_aborts, call event_release() ob ABORT-FINISHED.
8185
8186 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8187
8188         * server-src/chunker.c (databuf_flush): workaround to prevent a
8189         hang on a ABORT command.
8190
8191 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8192
8193         * server-src/driver.c (continue_dumps): set estimate to more than 
8194         what is already use instead of setting no_hold=1 when a disk
8195         don't fit on holding disk.
8196
8197 2000-10-29  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8198
8199         * server-src/chunker.c: chunker was broken after RQ-MORE-DISK.
8200
8201 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8202
8203         * server-src/amstatus.pl.in: add '&' when calling &usage() 
8204         or &dump_size().
8205
8206 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8207         reported by The Hermit Hacker <scrappy@hub.org>
8208
8209         * changer-src/chg-chio.pl.in: remove unused $libexecdir.
8210
8211 2000-10-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8212         reported by The Hermit Hacker <scrappy@hub.org>
8213
8214         * changer-src/chg-chio.pl.in: remove comma after LOG, 
8215         typo: r should be 0.
8216
8217 2000-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8218
8219         * docs/INDEXING: doc updated.
8220
8221 2000-10-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8222
8223         * AUTHORS: add Thomas Hepper.
8224
8225 2000-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8226
8227         * server-src/driverio.c (chunker_cmd): send ABORT command.
8228
8229 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8230
8231         * server-src/amverify.sh.in: grep only the first line of the header.
8232
8233 2000-10-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8234
8235         * server-src/amverify.sh.in: verify with tar even if the
8236         server and the client are not configured with the same path.
8237
8238 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8239
8240         * NEWS: A new `ctimeout' keyword in amanda.conf to replace 
8241         the CHECK_TIMEOUT constant in amcheck.c.
8242
8243 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8244
8245         * server-src/amlabel.c: Don't set tape_ok to 0 if 
8246         tape_wrlabel is successful.
8247
8248 2000-10-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8249
8250         * server-src/taper.c: amfree(strclosing).
8251
8252 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8253
8254         * server-src/driver.c: typo.
8255
8256 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8257
8258         * configure.in: --with-samba-user is deprecated.
8259         * docs/SAMBA: the username is now on the amandapass file.
8260         * NEWS: the username is now on the amandapass file.
8261         * client-src/findpass.c (findpass): accept "*" as diskname.
8262         * client-src/selfcheck.c (check_disk): call to samba changed.
8263         * client-src/sendsize.c (getsize_smbtar): ditto.
8264         * client-src/sendbackup-gnutar.c (start_backup): ditto.
8265         * recover-src/extract_list.c (extract_files_child): ditto.
8266
8267 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8268
8269         * server-src/taper.c: give better message when failing 
8270         to open a chunk.
8271
8272 2000-10-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8273
8274         * server-src/diskfile.c (headqueue_disk): new function to
8275         insert at the head of the queue.
8276         * server-src/diskfile.h (headqueue_disk): prototype.
8277         * server-src/driver.c (taper_queuedisk): insert with
8278         headqueue_disk() if disk already attempted.
8279
8280 2000-10-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8281
8282         * AUTHORS: fix my email address.
8283
8284 2000-09-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8285
8286         * server-src/amcheck.c: Don't accept -m or -M option if MAILER
8287         is not defined.
8288         * server-src/reporter.c: Need a -f optionn if MAILER is not defined.
8289
8290 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8291         patch by <jeg@time.ucsc.edu>
8292
8293         * server-src/reporter.c (output_summary): check for tape_labels.
8294
8295 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8296
8297         * server-src/amindexd.c: use strcasecmp to compare hostname.
8298
8299 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8300
8301         * server-src/amstatus.pl.in: fix plural misuse.
8302
8303 2000-09-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8304
8305         * man/amanda.8.in: add all pages in the SEE ALSO section.
8306
8307 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8308
8309         * man/amreport.8.in: amreport does not rotate the log.
8310         * man/amrestore.8: note on holdingdisk.
8311         * restore-src/amrestore.c: update usage.
8312         * server-src/amrmtape.sh.in: update usage.
8313         * server-src/amverify.sh.in.usage: update usage.
8314
8315 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8316
8317         * server-src/amoverview.pl.in: update usage information,
8318         -config is no longer needed for ccompatibility with other program.
8319         * man/amoverview.8.in: -config is no longer needed.
8320
8321 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8322
8323         * example/amanda.conf.in: chunk should not be larger than
8324         MAX_FILE_SIZE - 1Mb.
8325
8326 2000-09-24  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8327
8328         * client-src/sendsize.c (getsize_smbtar): remove unused debug_level
8329         variable.
8330         * server-src/amlabel.c (main): init errstr to NULL, 
8331         fix compiler warning.
8332
8333 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8334         patch by jason Thomas <jet@users.sourceforge.net>
8335
8336         * tape-src/tapetype.c: fix help message.
8337
8338 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8339         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
8340
8341         * common-src/file.c (mkpdir): check p != NULL
8342         * man/amstatus.8.in: typo
8343
8344 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8345         patch by Rudolf Cejka <cejkar@users.sourceforge.net>
8346
8347         * client-src/calcsize.c:sets correct program name,
8348         prevent coredumps and some improrer command line error mesages
8349
8350 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8351
8352         * common-src/amanda.h: prototype clean_regex().
8353         * common-src/match.c: new function clean_regex() that escape
8354         all non-alphanumeric character.
8355         * recover-src/extract_list.c (add_file, delete_file): use clean_regex().
8356
8357 2000-09-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8358
8359         * server-src/amcheck.c: (start_server_check): check for the oldlog
8360         directory.
8361
8362 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8363
8364         * server-src/amtrmlog.c: better check of the oldlog directory.
8365
8366 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8367
8368         * server-src/amcheck.c: (start_server_check): don't check the tape
8369         if tapedev is /dev/null.
8370
8371 2000-09-22  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8372
8373         * server-src/reporter.c (output_tapeinfo): test reversed for run_tapes.
8374
8375 2000-07-31 Thomas Hepper <th@ant.han.de>
8376         * changer-src/chg-scsi.c: Rework of the device handling.
8377         Every device is opend for an operation and than closed.
8378         This will hopefully fix the problems with openening the tape device
8379         and the SCSI control device for the tape
8380         new option emubarcode (see docs/TAPE.CHANGERS)
8381         * changer-src/scsi-cam.c: Changed to work with the new device handling.
8382         * changer-src/scsi-hpux_new.c: Changed to work with the new device handling.
8383         * changer-src/scsi-irix.c: Changed to work with the new device handling. (Not tested)
8384         * changer-src/scsi-solaris.c: Changed to work with the new device handling. (Not tested)
8385         * changer-src/scsi-linux.c: Changed to work with the new device handling.
8386         * changer-src/scsi-changer-driver.c: Changed to work with the new device handling
8387         * changer-src/scsi-defs.h: Changed to work with the new device handling
8388 2000-07-18 John R. Jackson  <jrj@purdue.edu>
8389
8390         * changer-src/chg-chio.pl.in (do_time): fix chg-chio.pl timestamp
8391         function to return a string instead of writing to stdout.
8392
8393 2000-07-18 John R. Jackson  <jrj@purdue.edu>
8394
8395         * server-src/taper.c (file_reader_side): detach and destroy shared
8396         memory areas on an error condition.  Found by Patrik Andersin
8397         <cat@iki.fi>.
8398
8399 2000-07-17 Thomas Hepper <th@ant.han.de>
8400         * docs/TAPE.CHANGERS: Added some notes for the cam driver
8401         * changer-src/scsi-cam.c: New syntax for telling scsi ids
8402         (bus:target:lun)
8403         SCSI_ExecuteCommand now returns the correct sense buffer.
8404
8405 2000-07-17 Thomas Hepper <th@ant.han.de>
8406         * configure.in: Added check for BSD SCSI CAM Support
8407         * changer-src/scsi-cam.c: New, functions for SCSI CAM Support
8408         ( at the moment for FreeBSD 4.0)
8409         * changer-src/Makefile.am: added scsi-cam.s to the list of sources
8410         * changer-src/chg-scsi.c: The structs for the OpenFiles_T is now
8411         allocated in chg-scsi and passed to OpenDevice.
8412         * changer-src/scsi-changer-driver.c: New Parameter for OpenDevice
8413         (OpenFiles_T)
8414
8415 2000-07-10 Marc Mengel <mengel@fnal.gov>
8416         * tape-src/tapeio.c -- add tape_{stat,access}, allow "plain:" prefix
8417                 on tape device names
8418         * tape-src/tapeio.h -- add tape_{stat,access} prototypes
8419         * common-src/util.c -- call tape_{read,write}() in full{read,write}()
8420         * restore-src/amidxtaped.c -- use tape_stat() on tapename
8421         * restore-src/amrestore.c -- use tape_stat() on tapename
8422         * server-src/amcheck.c -- use tape_access() on tapename
8423         * client-src/Makefile.am -- now needs libamtape.a twice
8424         * server-src/Makefile.am -- now needs libamtape.a twice
8425         * recover-src/Makefile.am -- now needs libamtape.a twice
8426         * Makefile.am -- tape-src before client-src
8427
8428 2000-07-05 Thomas Hepper <th@ant.han.de>
8429         * changer-src/chg-scsi.c: fixed an core dump if tapeident was set
8430         * changer-src/scsi-changer-driver.c (OpenFile):
8431          if the ident ist set in the config set this in the internal device 
8432          struct too.
8433         * changer-src/scsi-changer-driver.c (GenerciSenseHandler):
8434          changed the type for the info text from char * to char ** which
8435          is passwd to Sense2Action
8436         * changer-src/scsi-changer-driver.c (ChangerStatus):
8437          fixed the bug which causes an core dump for chg-scsi -status robot
8438          if an bar code reader is detected. Fixed also the bug that the
8439          mapping Label -> Barcode was not displayed.
8440         * changer-src/scsi-defs.h: Changed the prototype for Sense2Action
8441         * changer-src/sense.c: Added the defs for the Spectra TreeFrog lib
8442         * changer-src/sense.c (Sense2Action); Fixed the handling if no match
8443          was found (fall back to the generic description)
8444
8445 2000-06-26 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8446
8447         * server-src/list_dir.c (add_dir_list_item): add at head of list.
8448
8449 2000-06-24 Thomas Hepper <th@ant.han.de>
8450         * changer-src/chg-scsi-chio.c: Merged changes from 2.4.2 
8451         * changer-src/chg-scsi.c: Merged changes from 2.4.2
8452         * changer-src/sense.c: New file. Contains an table and function for the 
8453           mapping of sense/ASC/ASCQ conditions from the SCSI sense.
8454         * changer-src/scsi-changer-driver.c: Merged changes from 2.4.2
8455           Changed handling for the sense keys. Now there is only one function
8456           to decide what to do with an sense/ASC/ASCQ conditon (abort,retry ..)
8457         * changer-src/Makefile.am: Added sense.c to the source list.
8458         * changer-src/scsi-solaris.c: Merged changes from 2.4.2 
8459         * changer-src/scsi-linux.c: Merged changes from 2.4.2 
8460         * changer-src/scsi-irix.c: Merged changes from 2.4.2 
8461         * changer-src/scsi-hpux_new.c: Merged changes from 2.4.2 
8462         * changer-src/scsi-defs.h: Merged changes from 2.4.2 
8463         
8464 2000-06-12  Jeroen Ruigrok van der Werven  <asmodai@wxs.nl>
8465
8466         * server-src/amlabel.c (main): Do not amfree(config_name).
8467
8468 2000-06-02 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8469
8470         * server-src/holding.c (pick_datestamp): convert ch to upper.
8471
8472 2000-05-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8473
8474         * server-src/driver.c (handle_dumper_result, handle_chunker_result):
8475           delay call to dumper_result().
8476
8477 2000-05-28  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8478
8479         * client-src/sendbackup-gnutar.c: Ignore `socket ignored' GNU tar
8480         messages.
8481
8482 2000-05-27 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8483
8484         * chunker.c: allow chunk to be written on different holding disk.
8485         * server-src/driver.c: allow chunk to be written on different
8486           holding disk.
8487         * server-src/conffile.c: make sure that disksize and chunksize
8488           are multiple of TAPE_BLOCK_SIZE.
8489         * server-src/conffile.h: disksize and chunksize are long.
8490         * server-src/diskfile.c (find_disk): new function to see if a
8491           given disk is contained in a list structure.
8492         * server-src/diskfile.h (find_disk): prototype.
8493         * server-src/driverio.h (RQ_MORE_DISK): Added message.
8494         * server-src/driverio.h (free_assignedhd): prototype.
8495         * server-src/driverio.h (assignedhd_t): new data structure.
8496         * server-src/driverio.c (cmdstr): added comamnd RQ-MORE-DISK.
8497         * server-src/driverio.c (free_assignedhd): new function to free an
8498           array of assignedhd_t.
8499         
8500 2000-05-03 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8501
8502         * server-src/driver.c (chunker_program): new variable.
8503
8504 2000-04-20 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8505
8506         * server-src/amstatus.pl.in: handle chunker line.
8507
8508 2000-04-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8509
8510         * recover-src/Makefile.am (LDADD): Removed libamtape.
8511         Reported by Paul Yeatman <pyeatman@ucsd.edu>
8512
8513 2000-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8514
8515         * server-src/chunker.c: new file for the chunker program.
8516         * server-src/Makefile.am: compile it.
8517         * server-src/driver.c: many modification.
8518         * server-src/driverio.c: many modification.
8519         * server-src/driverio.c (startup_chunk_process, chunker_cmd):
8520         new functions.
8521         * server-src/driverio.h: prototype them.
8522         * server-src/driverio.h (struct chunker_s): new structure.
8523         * server-src/logfile.c: handle chunker log.
8524         * server-src/logfile.h: ditto.
8525         * server-src/reporter.c: ditto.
8526         * server-src/taper.c: size reduced by TAPE_BLOCK_SIZE.
8527
8528 2000-04-16 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8529
8530         * server-src/taper.c: don't crash if the tapelist file
8531         doesn't exist.
8532
8533 2000-04-09  Frank Wojcik  <fwojcik@lucent.com>
8534
8535         * server-src/taper.c (detach_buffers): Fixed typo in error message.
8536
8537         * server-src/amrmtape.sh.in: Fix occurrence of `Infofile', that
8538         should have been `InfoFile'.
8539
8540 2000-04-09  Davide Marchignoli  <marchign@di.unipi.it>
8541   
8542         * server-src/conffile.h (confparm_t): Added CTIMEOUT.
8543         * server-src/conffile.c: Added ctimeout support.  Default to 30.
8544         * example/amanda.conf.in: Likewise.
8545         * man/amanda.8.in: Documented it.
8546         * server-src/amcheck.c: Use ctimeout from configuration file instead
8547         of CHECK_TIMEOUT.
8548
8549 2000-04-09  Stan Brown  <stanb@awod.com>
8550
8551         * recover-src/amrecover.c (guess_disk): Omit DEV_PREFIX only if
8552         it is actually a prefix of fsname.
8553
8554 2000-04-09  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8555
8556         * server-src/amlabel.c (main): Check label *after* writing end mark.
8557
8558 2000-03-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8559
8560         * server-src/amlabel.c: don't crash if the tapelist file 
8561         doesn't exist.
8562
8563 2000-02-12 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8564
8565         * server-src/amstatus.pl.in: "0 dumpers busy" should be "0 dumper busy".
8566
8567 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8568
8569         * server-src/amadmin.c (force_one, force_bump_one): FORCE_FULL
8570         and FORCE_BUMP are mutually exclusive.
8571
8572 2000-01-31 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
8573
8574         * server-src/driver.c (main): use the holding disk even if the
8575         datestamped directory already exist.
8576
8577 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8578
8579         * server-src/amstatus.pl.in (prefix, exec_prefix): Refer to them
8580         twice to avoid warnings of possible typo.
8581
8582         * amplot/amplot.awk: Ignore dumper's RQ-MORE-DISK.
8583         Reported by David Wolfskill <dhw@whistle.com>
8584         * amplot/amplot.awk: Handle taper's TRY-AGAIN like TAPE-ERROR.
8585
8586         * server-src/amstatus.pl.in: Compute and display TRY-AGAIN tape
8587         errors.
8588         Reported by David Wolfskill <dhw@whistle.com>
8589
8590         * man/amtoc.8.in: Document -w.
8591
8592 2000-01-21  David Wolfskill  <dhw@whistle.com>
8593
8594         * server-src/amtoc.pl.in: Add `-w' to add new lines and form feeds.
8595
8596 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8597
8598         * man/amlabel.8.in: Tapes are no longer requested in reverse order
8599         of amlabeling.
8600         Reported by Brad Guillory <round@baileylink.net>
8601
8602         * server-src/amstatus.pl.in: New option --stats, to display
8603         statistics about dumpers and taper.
8604         * man/amstatus.8.in: Document it.
8605
8606 2000-01-21  David Wolfskill  <dhw@whistle.com>
8607
8608         * server-src/amstatus.pl.in: Sort dumpers by number.
8609
8610 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8611
8612         * server-src/amstatus.pl.in: Remove bogus (?) line `$$host=1'.
8613
8614         * configure.in (MAILER): Warn or print an error if not found,
8615         depending on whether server code is disabled or not.
8616
8617         * server-src/reporter.c (output_tapeinfo): Report used tapes
8618         regardless of tape errors.
8619
8620         * config/acinclude.m4i (CF_WAIT): Simplify the test.  Declare wait()
8621         in the global scope.
8622
8623 2000-01-21  Garrett Wollman  <wollman@khavrinen.lcs.mit.edu>
8624
8625         * config/acinclude.m4i (CF_WAIT): Avoid warnings on systems
8626         where `union wait' works but is deprecated.
8627
8628 2000-01-21  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8629
8630         * recover-src/uscan.l (settape): Recognize it.
8631         * recover-src/uparse.y: Parse it.
8632         * recover-src/amrecover.h (set_tape): Declare it.
8633         * recover-src/set_commands.c (set_tape): Implement it.
8634         * recover-src/help.c (help_list): Document it.
8635         * man/amrecover.8.in: Likewise.
8636         * recover-src/extract_list.c (extract_files): Warn if tape device is
8637         /dev/null.
8638         * recover-src/amrecover.c (tape_device_name): Default to
8639         server-determined default.
8640
8641 2000-01-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8642
8643         * configure.in: Recognize alpha*-*-linux-* and sparc*-*-linux-*.
8644
8645         * tape-src/Makefile.am (../common-src/libamanda.$(LIB_EXTENSION)):
8646         Allow for `make tapetype' before libamanda is built.
8647
8648         * server-src/amoverview.pl.in: Year doesn't take just 2 bytes.
8649
8650 2000-01-06  David Wolfskill  <dhw@whistle.com>
8651
8652         * docs/TAPETYPES: Typo.
8653         
8654 2000-01-06  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8655
8656         * docs/TAPETYPES: Removed all tapetype entries.  Pointed to
8657         example/amanda.conf, to the mailing list archives and to the on-line
8658         tapetype list.  Explained the meaning of length, filemark and speed,
8659         and how to build and use the tapetype utility.
8660
8661 1999-12-12 John R. Jackson  <jrj@purdue.edu>
8662
8663         * configure.in: egrep was having trouble with quoting on some systems.
8664         Broke it apart into multiple unquoted statements.  Also, changed the
8665         script to run the steps on all dump tests and added "Label" as another
8666         line to ignore.
8667
8668 1999-12-12 John R. Jackson  <jrj@purdue.edu>
8669
8670         * tape-src/tapetype.c: tweak the algorithm to write files in both
8671         passes and compute the tape mark size as the difference.  Never
8672         report a negative tape mark size.  Various other minor cleanup.
8673
8674 1999-11-29  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8675
8676         * client-src/sendbackup-gnutar.c (re_table): #if out the debugging
8677         Samba messages unless SAMBA_VERSION < 2.
8678
8679 1999-11-29  John E.P.Hynes  <john@hytronix.ne.mediaone.net>
8680
8681         * client-src/sendbackup-gnutar.c (re_table): Update for Samba 2.0.6.
8682
8683 1999-11-25 John R. Jackson  <jrj@purdue.edu>
8684
8685         * server-src/amflush.c (main): conf_logdir should not be free'd
8686           (found by Espen H Wiborg <espenhw@infotek.no>).
8687
8688 1999-11-10 John R. Jackson  <jrj@purdue.edu>
8689
8690         * recover-src/extract_list.c: report the tape server host in the
8691           message to check the amidxtaped.debug file.   If extract_list_child
8692           fails (such as when amidxtaped fails to read the tape), ask if
8693           things should continue instead of aborting.
8694
8695 1999-11-11  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8696
8697         * server-src/driverio.c (update_info_dumper): Discard information on
8698         older same- or higher-level dumps.
8699         * server-src/driver.c (dump_to_tape): Add comment that _dumper must
8700         be called before _taper.
8701
8702         * docs/FAQ: Sometimes FQDNs are wrong for amandahosts.
8703
8704 1999-11-10 John R. Jackson  <jrj@purdue.edu>
8705
8706         * server-src/amindexd.c (build_disk_table): need to clear the old
8707           disk history list before building a new one.
8708
8709 1999-11-10 John R. Jackson  <jrj@purdue.edu>
8710
8711         * server-src/taper.c (label_tape): issue a warning when tapedev is
8712           set to /dev/null.
8713         * server-src/amcheck.c (start_server_check): make warning message
8714           text the same for amcheck and taper when tapedev is /dev/null.
8715
8716 1999-11-10 John R. Jackson  <jrj@purdue.edu>
8717
8718         * server-src/amcleanupdisk.c (main): try to remove empty holding disk
8719           areas.
8720         * server-src/holding.c (scan_holdingdisk): do not automatically remove
8721           empty holding disk areas since this function is called by various
8722           utilities and a dump might be in progress.
8723
8724 1999-11-10  James FitzGibbon  <james@targetnet.com>
8725
8726         * server-src/infofile.c (put_info): d.size should have been
8727         d.dsize.
8728
8729 1999-11-09 John R. Jackson  <jrj@purdue.edu>
8730
8731         * server-src/amcheck.c (start_server_check): test tapedev for
8732           "/dev/null" and issue warning that dumps will be thrown away.
8733
8734 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
8735
8736         * server-src/amadmin.c (main): Second occurrence of CNF_TAPELIST
8737         should have been CNF_INFOFILE; fixed.
8738
8739 1999-11-02  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8740
8741         * common-src/amflock.c (struct flock): Do not assume the fields are
8742         declared in any particular order.
8743         Reported by Sean Kelly <kelly@plutotech.com>
8744
8745         * Makefile.am (EXTRA_DIST): Added contrib/set_prod_link.pl.
8746         * docs/INSTALL: Likewise.
8747
8748 1999-11-02  Ricardo Malta  <rmalta@bigfoot.com>
8749         
8750         * contrib/set_prod_link.pl: Create the links for a configuration
8751         with --with-suffix.
8752
8753 1999-11-02  David M. Olsen  <David.M.Olsen@boeing.com>
8754
8755         * common-src/rsh-security.c (net_writev): The result of a cast is
8756         not an lvalue; fixed.
8757
8758 1999-10-26  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
8759
8760         * server-src/amtoc.pl.in: Correct a bug for total report.
8761
8762 1999-11-01 John R. Jackson  <jrj@purdue.edu>
8763
8764         * server-src/amcleanupdisk.c (main): do not free the config name (it
8765           was never alloc-d).
8766
8767 1999-10-24  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8768
8769         * common-src/debug.c: Do not assume stderr is a compile-time
8770         constant.  On glibc 2.2 (RedHat Linux 6.1), it is not.
8771
8772 1999-10-11  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
8773
8774         * server-src/amtoc.pl.in: Add new options -i and -t.  Print original
8775         size, instead of size on tape.
8776
8777 1999-10-07 John R. Jackson  <jrj@purdue.edu>
8778
8779         * common-src/stream.c (stream_server): remove reference to portrange
8780           variable.  Compliments of Randy Dees <rrd@amherst.com>.
8781
8782 1999-10-03 John R. Jackson  <jrj@purdue.edu>
8783
8784         * server-src/driver.c (main): now that multiple results can come back
8785           from taper and dumper without a handshake (e.g. NO-ROOM), we need to
8786           process them all rather than just the first one.  Call the new
8787           areads_dataready() function to peek and see if more data is ready.
8788         * common-src/amanda.h: declare areads_dataready().
8789         * common-src/file.c: define areads_dataready().  Fix some variable
8790           types.  Fix a buffer expansion problem.  Add code to the test
8791           program to force buffer expansion to be checked out.
8792
8793 1999-10-03 John R. Jackson  <jrj@purdue.edu>
8794
8795         * common-src/file.c (areads_getbuf): fix a buffer allocation problem.
8796
8797 1999-10-03 John R. Jackson  <jrj@purdue.edu>
8798
8799         * common-src/amflock.c (main): do not use aclose() in the configure
8800           test case.  During configure we do not have areads_relbuf()
8801           available and it makes configure think all the tests have failed.
8802
8803 1999-10-03 John R. Jackson  <jrj@purdue.edu>
8804
8805         * common-src/amanda.h: protect the close macros and areads* from
8806           out of range file descriptors.
8807         * common-src/file.c: ditto.
8808
8809 1999-10-02 John R. Jackson  <jrj@purdue.edu>
8810
8811         * server-src/amindexd.c (build_disk_table): only "OK" results from
8812           find_dump should be considered.
8813
8814 1999-10-02 John R. Jackson  <jrj@purdue.edu>
8815
8816         * common-src/file.c (areads): when NO-ROOM became advisory and didn't
8817           participate in a full handshake, it exposed a problem in areads()
8818           where a static buffer was shared among all I/O.  Changed it to use
8819           a separate buffer for each file descriptor.  Enhanced the test
8820           program to check out the code.
8821         * common-src/amanda.h: ditto
8822         * restore-src/amidxtaped.c: minor areads/agets comment typo.
8823         * server-src/amindexd.c: ditto
8824
8825 1999-10-02 John R. Jackson  <jrj@purdue.edu>
8826
8827         * server-src/amlogroll.c: fix minor memory leak.
8828
8829 1999-09-29 John R. Jackson  <jrj@purdue.edu>
8830
8831         * server-src/dumper.c (do_dump): closed the dump messages file too
8832           soon.
8833
8834 1999-09-23  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8835
8836         * recover-src/extract_list.c (samba_extract_method): Default to
8837         SAMBA_TAR, for similarity with other restore programs.
8838         (extract_files_child): If restore with SMBCLIENT is enabled, explain
8839         that Samba shares will be restored to the SMB share.
8840
8841 1999-09-22 John R. Jackson  <jrj@purdue.edu>
8842
8843         * configure.in: wrong variable when processing LIBRARY_DIRS.  Fix
8844           compliments of John M. Vogtle <jmvogtle@kodak.com>.
8845
8846 1999-09-20 John R. Jackson  <jrj@purdue.edu>
8847
8848         * server-src/Makefile.am: use new amlogroll utility to rename the log
8849           file to the datestamped name.
8850         * server-src/amcheck.c: ditto.
8851         * server-src/amcleanup.sh.in: ditto and call all utilities with the
8852           config file name as an argument.
8853         * server-src/amdump.sh.in: ditto and call all utilities with the
8854           config file name as an argument.
8855         * server-src/amflush.c: ditto.
8856         * server-src/amlogroll.c: new utility.
8857         * server-src/driverio.c: ditto and call all utilities with the
8858           config file name as an argument.
8859         * server-src/reporter.c: ditto.
8860
8861 1999-09-20  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
8862
8863         * amlogroll.c: It was missing; copied from the 2.4.2 branch.
8864
8865         * configure.in (AMANDA_TMPDIR): Added comment for config.h.in.
8866
8867 1999-09-19 John R. Jackson  <jrj@purdue.edu>
8868
8869         * server-src/amverify.sh.in: this script is important enough it should
8870           not depend on having perl installed.  Clean up the AIX "mt status"
8871           code.  Test for presense of other restore programs and check that
8872           they are executable during processing.
8873
8874 1999-09-19 John R. Jackson  <jrj@purdue.edu>
8875
8876         * server-src/amverify.sh.in: put back an "mt status" wait loop I
8877           erroneously removed, but protect it from AIX.
8878
8879 1999-09-19 John R. Jackson  <jrj@purdue.edu>
8880
8881         * common-src/util.c: fix math in bind_portrange so ports requested
8882           are between those the caller passed and make sure port 0 does not
8883           accidentally get requested, which returns a non-privileged port.
8884         * common-src/dgram.c: bind_portrange last port argument is inclusive.
8885         * common-src/stream.c: ditto.
8886         * recover-src/amrecover.c: ditto.
8887         * recover-src/extract_list.c: ditto.
8888
8889 1999-09-19 John R. Jackson  <jrj@purdue.edu>
8890
8891         * server-src/driver.c: do not send a FILE_WRITE to the taper when the
8892           tape queue is empty during a TRYAGAIN (driver core dumped).
8893
8894 1999-09-19 John R. Jackson  <jrj@purdue.edu>
8895
8896         * server-src/taper.c: fix protocol problems when out of tape.  Add
8897           FAKE_TAPE_ERROR debugging code to simulate tape errors.  Fix problem
8898           with command line argument processing.
8899
8900 1999-09-18 John R. Jackson  <jrj@purdue.edu>
8901
8902         * configure.in: several compress/uncompress variables were not being
8903           set properly.
8904
8905 1999-09-18 John R. Jackson  <jrj@purdue.edu>
8906
8907         * client-src/sendbackup.c: pclose returns a child exit status of the
8908           pipe, not an errno, so do not try to strerror it.
8909           Have the index child process exit with the pclose exit code.
8910           Treat index failures as strange rather than fatal so the dump gets
8911           fully processed.  It's more important to have the dump image than
8912           to skip it just because indexing had a (possibly unrelated) problem.
8913
8914 1999-09-15 John R. Jackson  <jrj@purdue.edu>
8915
8916         * server-src/amtoc.pl.in: handle an image failing on one tape and
8917           succeeding on the next.
8918
8919 1999-09-15 John R. Jackson  <jrj@purdue.edu>
8920
8921         * server-src/amstatus.pl.in: generalize the "driver: state" parsing
8922           so it can handle current and future information.
8923
8924 1999-09-15 John R. Jackson  <jrj@purdue.edu>
8925
8926         * common-src/bsd-security.c: if the user field is not present in the
8927           .amandahosts file, it should default to the local user, not the
8928           remote user.  For our purposes, that is CLIENT_USER, not the user
8929           we are running as (although they should be the same).
8930
8931 1999-09-14 John R. Jackson  <jrj@purdue.edu>
8932
8933         * configure.in: Add --with-tmpdir to ./configure and use it for
8934           all Amanda temporary files.  Default --with-dbgdir to --with-tmpdir.
8935           Move libexec/getconf to sbin/amgetconf and add an optional
8936           config parameter.  Add optional config parameter to several
8937           other programs.
8938           Add debugging to chg-chio.
8939           Call new safe_cd() function in most programs to cd to --with-tmpdir
8940           so if they drop core, it goes to a known spot.  Rename existing
8941           core files so more than one failure may be tracked.  Remove most
8942           chdir() and umask() calls (umask is set in safe_cd).
8943         * amplot/amplot.sh.in: ditto.
8944         * changer-src/chg-chio.pl.in: ditto.
8945         * changer-src/chg-chs.sh.in: ditto.
8946         * changer-src/chg-manual.sh.in: ditto.
8947         * changer-src/chg-mtx.sh.in: ditto.
8948         * changer-src/chg-multi.sh.in: ditto.
8949         * changer-src/chg-rth.pl.in: ditto.
8950         * changer-src/chg-scsi-chio.c: ditto.
8951         * changer-src/chg-scsi.c: ditto.
8952         * changer-src/chg-zd-mtx.sh.in: ditto.
8953         * client-src/amandad.c: ditto.
8954         * client-src/calcsize.c: ditto.
8955         * client-src/killpgrp.c: ditto.
8956         * client-src/rundump.c: ditto.
8957         * client-src/runtar.c: ditto.
8958         * client-src/selfcheck.c: ditto.
8959         * client-src/sendbackup-gnutar.c: ditto.
8960         * client-src/sendbackup.c: ditto.
8961         * client-src/sendsize.c: ditto.
8962         * common-src/alloc.c: ditto.
8963         * common-src/amanda.h: ditto.
8964         * common-src/amflock.c: ditto.
8965         * common-src/bsd-security.c: ditto.
8966         * common-src/debug.c: ditto.
8967         * common-src/file.c: ditto.
8968         * common-src/genversion.c: ditto.
8969         * restore-src/amidxtaped.c: ditto.
8970         * server-src/Makefile.am: ditto.
8971         * server-src/amadmin.c: ditto.
8972         * server-src/amcheck.c: ditto.
8973         * server-src/amcheckdb.sh.in: ditto.
8974         * server-src/amcleanup.sh.in: ditto.
8975         * server-src/amcleanupdisk.c: ditto.
8976         * server-src/amdump.sh.in: ditto.
8977         * server-src/amflush.c: ditto.
8978         * server-src/amfreetapes.sh.in: ditto.
8979         * server-src/amindex.c: ditto.
8980         * server-src/amindex.h: ditto.
8981         * server-src/amindexd.c: ditto.
8982         * server-src/amlabel.c: ditto.
8983         * server-src/amrmtape.sh.in: ditto.
8984         * server-src/amstatus.pl.in: ditto.
8985         * server-src/amtape.c: ditto.
8986         * server-src/amtrmidx.c: ditto.
8987         * server-src/amtrmlog.c: ditto.
8988         * server-src/amverify.sh.in: ditto.
8989         * server-src/changer.c: ditto.
8990         * server-src/changer.h: ditto.
8991         * server-src/conffile.c: ditto.
8992         * server-src/conffile.h: ditto.
8993         * server-src/diskfile.c: ditto.
8994         * server-src/driver.c: ditto.
8995         * server-src/driverio.c: ditto.
8996         * server-src/dumper.c: ditto.
8997         * server-src/find.c: ditto.
8998         * server-src/getconf.c: ditto.
8999         * server-src/holding.c: ditto.
9000         * server-src/infofile.c: ditto.
9001         * server-src/logfile.c: ditto.
9002         * server-src/planner.c: ditto.
9003         * server-src/reporter.c: ditto.
9004         * server-src/tapefile.c: ditto.
9005         * server-src/taper.c: ditto.
9006
9007 1999-09-14  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9008
9009         * common-src/bsd-security.c (bsd_stream): fn should take an ssize_t.
9010         (bsd_stream_read): Likewise, declaration.
9011         * common-src/rsh-security.c (rsh_stream): Likewise.
9012         (rsh_stream_read): Likewise, declaration and definition.
9013         * common-src/krb4-security.c (dummy): Compile when disabled.
9014         * common-src/krb5-security.c (dummy): Likewise.
9015
9016         * server-src/reporter.c (sDivZero): Change from float to double, to
9017         build with DEC cc.
9018
9019         * configure.in: Get snapshot date from SNAPSHOT file, if it exists.
9020         (VERSION): Add the date to it.
9021         (SNAPSHOT_STAMP): AC_SUBST to the SNAPSHOT file, if it exists.
9022         * Makefile.am (EXTRA_DIST): Added $(SNAPSHOT_STAMP).
9023         (config.status): Depend on $(SNAPSHOT_STAMP).
9024         (SNAPSHOT): Dummy rule to allow reconfigure if it's removed.
9025
9026         * config/Makefile.am: Remove all traces of acconfig.h.
9027
9028         * server-src/changer.c (changer_command): Fix for amwait_t != int.
9029
9030 1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
9031
9032         * config/acinclude.m4i: Added comments for config/config.h.in to all
9033         AC_DEFINEs.
9034         * configure.in: Likewise.
9035         * config/acconfig.h: Deleted.
9036         * autogen: Updated.
9037
9038 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9039
9040         * changer-src/chg-chio.pl.in: add -w to #! line to catch more errors.
9041         * recover-src/display_commands.c: fix some compiler warnings.
9042         * recover-src/extract_list.c: fix some compiler warnings.
9043         * restore-src/amrestore.c: fix some compiler warnings.
9044         * server-src/planner.c: fix some compiler warnings.
9045
9046 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9047
9048         * recover-src/extract_list.c: add VRESTORE and VXRESTORE support.
9049
9050 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9051
9052         * common-src/stream.c: make sure errno is returned properly from
9053           stream_client() and stream_server().
9054         * server-src/taper.c: report errors from stream_server() and
9055           abort.
9056         * recover-src/extract_list.c: make sure errno is preserved.
9057
9058 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9059
9060         * configure.in: make sure the dump and restore programs are defined
9061           in pairs, do not allow just the dump program without restore.
9062         * client-src/sendbackup-dump.c: assume restore program is present
9063           if dump program is.
9064         * common-src/genversion.c: assume restore program is present if
9065           dump program is.
9066
9067 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9068
9069         * common-src/genversion.c: CLIENT_LOGIN has to be defined so there
9070           is no point testing for it.
9071         * server-src/conffile.c: ditto.
9072
9073 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9074
9075         * server-src/amverify.sh.in: add SMBCLIENT, VRESTORE, VXRESTORE
9076           and XFSRESTORE support.
9077
9078 1999-09-05 John R. Jackson  <jrj@purdue.edu>
9079
9080         * server-src/conffile.c: add several common abbreviations to config
9081           file processing.
9082
9083 1999-09-01 John R. Jackson  <jrj@purdue.edu>
9084
9085         * server-src/amtoc.pl.in: allow multiple -s entries.
9086
9087 1999-09-01 John R. Jackson  <jrj@purdue.edu>
9088
9089         * server-src/reporter.c: handle/report a common columnspec syntax
9090           error instead of dumping core.
9091
9092 1999-09-01 John R. Jackson  <jrj@purdue.edu>
9093
9094         * man/amanda.8.in: typo in columnspec description.
9095
9096 1999-09-01 John R. Jackson  <jrj@purdue.edu>
9097
9098         * common-src/dgram.h: expressions in #define should be protected by
9099           parenthesis.
9100
9101 1999-08-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
9102
9103         * changer-src/chg-chs.sh.in (changerdev): Pass it as -f flag to CHS.
9104         * docs/TAPE.CHANGERS: Document it.
9105         Reported by Mike Horansky <moho@stanford.EDU>
9106
9107         * server-src/conffile.c (read_dumptype): Renamed from get_dumptype.
9108         Extended to support reading a named dumptype from a specified FILE.
9109         (get_dumptype): Use read_dumptype.
9110         (main): Read disklist, so that custom dumptypes are shown.
9111         * server-src/conffile.h (read_dumptype): Declare.
9112         * server-src/diskfile.c (parse_diskline): Get line_num and line by
9113         reference.  New argument diskf.  Use read_dumptype if dumptype
9114         starts with `{'.
9115         (main): Update.
9116         * man/amanda.8.in (disklist): Document it.
9117         * NEWS: Likewise.
9118         * example/disklist: Exemplify it.
9119
9120 1999-08-23 John R. Jackson  <jrj@purdue.edu>
9121
9122         * recover-src/amrecover.c (main): fix test for IPPORT_RESERVED.
9123         * recover-src/extract_list.c (extract_files_setup): ditto.
9124
9125 1999-08-23 John R. Jackson  <jrj@purdue.edu>
9126
9127         * server-src/reporter.c (copy_template_file): make sure all data is
9128           written to label template pipeline.
9129
9130 1999-08-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
9131
9132         * common-src/Makefile.am: Replace .o with OBJEXT.  List sources
9133         explicitly, instead of LDADDing the corresponding objects.
9134         (OBJ_EXTENSION): Wipe out, use OBJEXT.
9135
9136         * configure.in: Call AC_OBJEXT.
9137         (LTLIBOBJS, LTALLOCA): Define, according to ac_objext.
9138         * common-src/Makefile.am (libamanda_la_LIBADD): Use them.
9139         (libamanda_a_LIBADD): Use LIBOBJS and ALLOCA.
9140
9141         * common-src/Makefile.am (genversion.o): Revert last change, it was
9142         just a bug in automake's --disable-dependency-tracking.
9143
9144 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
9145
9146         * README (platforms): Added OpenBSD.
9147         Reported by Ian Darwin <ian@sq.com>
9148         (platforms): Added SunOS 5.7.
9149
9150 1999-08-15  Derek Ney <derek@hipgraphics.com>, Alexandre Oliva  <oliva@dcc.unicamp.br>
9151
9152         * client-src/sendsize.c (SAMBA_DEBUG_LEVEL): New macro, "0" for
9153         Samba >= 2, "3" for older ones.
9154         (getsize_smbtar): Use `du' if SAMBA_VERSION >= 2, and the
9155         appropriate SAMBA_DEBUG_LEVEL.
9156
9157 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
9158
9159         * common-src/Makefile.am (genversion.o): Depend on genversion.c
9160         too.  It seems that IRIX's make doesn't work without it.
9161         Reported by Brian Cuttler <brian@wadsworth.org>
9162
9163 1999-08-15  Jon LaBadie  <jon@jgcomp.com>
9164         
9165         * tape-src/tapetype.c: Speed it up by using larger sections in the
9166         second pass.
9167
9168 1999-08-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
9169
9170         * man/amanda.8.in (skip-full, incronly): Document existing bugs.
9171
9172         * server-src/conffile.c (init_defaults): Default disksize to 0.
9173         * man/amanda.8.in (holdingdisk use): Document it.
9174         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
9175
9176         * server-src/planner.c (setup_estimate): Typo.
9177         (next_level0): Typo.
9178
9179         * config/ltconfig, config/ltmain.sh: Update from libtool 1.3.3.
9180
9181         * example/amanda.conf.in: Clarify holdingdisk::use 0.
9182
9183         * config/missing: Update from automake 1.4a.
9184
9185 1999-07-04 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9186
9187         * man/amanda.8.in: typo.
9188
9189 1999-06-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
9190
9191         * man/amrestore.8: Document holding-file usage.
9192
9193 1999-06-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
9194
9195         * Makefile.am (pkgdata_DATA): Install COPYRIGHTs.
9196         (EXTRA_DIST): Remove docs/*.
9197         * docs/Makefile.am: New file.
9198         (pkgdata_DATA): Install all docs.
9199         * configure.in: Output docs/Makefile.
9200         Suggested by Paul L. Lussier <plussier@baynetworks.com>
9201
9202         * docs/FAQ (selfcheck time-out): NIS services, inetd rebooting,
9203         keyboard time-out, lsof.
9204
9205         * server-src/amverify.sh.in (HEADER): Use `sed 1q'  instead of the
9206         not-that-portable `head -1'.
9207         Reported by Andrew Lare <lare@eos913c.gsfc.nasa.gov>
9208
9209 1999-06-19  Alexander Zangerl  <az@Austria.EU.net>
9210
9211         * client-src/sendbackup-dump.c (re_table): Match Solaris vxdump
9212         output.
9213
9214 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9215
9216         * server-src/dumper.c (read_indexfd): typo
9217
9218 1999-06-18 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9219
9220         * server-src/dumper.c (do_dump): Close the indexout fh and wait
9221         for the completion of the index compress process.
9222         * server-src/dumper.c (read_mesgfd,read_datafd): Call stop_dump only
9223         if the index fd is already shut down.
9224         * server-src/dumper.c (read_indexfd): On EOF, call stop_dump() if both
9225         the mesg and data fd are shut down.
9226
9227 1999-06-15  Adam Hammer  <hammer@math.purdue.edu>
9228
9229         * server-src/amverify.sh.in: Wait until device becomes ready after
9230         rewinding.
9231
9232 1999-06-15  Björn Brezger <Bjoern.Brezger@uni-konstanz.de>, Alexandre Oliva  <oliva@dcc.unicamp.br>
9233
9234         * client-src/calcsize.c (ROUND): Rewrite, it was broken.
9235         Reported by Erik Lindahl <erik@theophys.kth.se>
9236
9237 1999-06-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
9238
9239         * server-src/conffile.h: Changed all `long's to `int's, as they
9240         broke get_number et al on 64bit platforms.
9241         Reported by Erik Lindahl <erik@theophys.kth.se>
9242
9243         * configure.in (bcopy, bzero): Oops, ICE_CHECK_DECL already checks
9244         for availability.
9245
9246         * configure.in (bcopy, bzero): Check whether they're available.
9247         * common-src/amanda.h (bcopy, bzero): If not, use memmove and
9248         memset.
9249         Reported by Grant Beattie <Grant.Beattie@fulcrum.com.au>
9250
9251         * server-src/amcheck.c (start_server_check): If info file does not
9252         exist, explain that it is supposed to be created on the next run.
9253
9254 1999-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
9255
9256         * server-src/tapefile.c (lookup_last_reusable_tape): Fix order of
9257         arguments in match() invocation.
9258         From Anthony Worrall <Anthony.Worrall@reading.ac.uk>
9259
9260 1999-06-08  Mike Grupenhoff <kashmir@munge.com>
9261
9262         * restore-src/amrestore.c: second arg to restore() is a char *, not
9263         a string_t.  Adjust prototype accordingly.
9264
9265 1999-06-07  Mike Grupenhoff <kashmir@munge.com>
9266
9267         * common-src/util.c (bind_portrange): function that attempts
9268         to bind a network connection to a port in a given range.
9269         * common-src/util.h: prototype bind_portrange().
9270         * common-src/dgram.c (bind_reserved): remove, superceeded by
9271         bind_portrange().
9272         (dgram_bind): use bind_portrange() instead of bind_reserved(), and
9273         try user specified ports first, then reserved ports, then regular
9274         ports.
9275         * common-src/dgram.h: remove prototype for bind_reserved().
9276         * common-src/stream.c (stream_server, stream_client): use
9277         bind_portrange() instead of bind_reserved(), and try user
9278         specified ports first, then reserved ports, then regular
9279         ports.
9280         * recover-src/amrecover.c (main): use bind_portrange() instead
9281         of bind_reserved(), and verify that the port it gives us is
9282         a reserved one.
9283         * recover-src/extract_list.c (extract_files_setup): use
9284         bind_portrange() instead of bind_reserved(), and verify that
9285         the port it gives us is a reserved one.
9286
9287 1999-06-07  Mark F. Vlems  <mvlems@vbox.xs4all.nl>
9288
9289         * server-src/amindexd.c (reply, lreply, fast_lreply): Return code 0
9290         of printf does not imply an error on some systems (Openstep) even if
9291         the number of written characters is more than 0.  The weakened error 
9292         check has no implication for the correct implementations of printf.
9293
9294 1999-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
9295
9296         * server-src/driver.c (dump_to_tape): Tell hard from soft
9297         (retryable) failures in both dumper and taper results, and behave
9298         accordingly.
9299
9300         * docs/SYSTEM.NOTES: On Trusted Solaris, the format of inetd.conf is 
9301         slightly different.
9302         Reported by Julian Stevens <julian.stevens@baedsl.co.uk>
9303
9304 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
9305
9306         * common-src/util.c (fullread, fullwrite): versions of
9307         read()/write() that keep looping until the buffer is
9308         completely read/written, or an error occurs.
9309         * common-src/Makefile.am: build util.c/util.h
9310         * common-src/fileheader.c, common-src/fileheader.h
9311         (fill_buffer): remove, replaced with fullread()
9312         * server-src/holding.c: use fullread() instead of fill_buffer().
9313         * common-src/bsd-security.c, restore-src/amrestore.c,
9314         server-src/amcheck.c, server-src/driverio.c, server-src/dumper.c,
9315         server-src/logfile.c, server-src/taper.c: use fullread/fullwrite
9316         instead of doing the retry loops manually.
9317
9318 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
9319
9320         * server-src/dumper.c (read_mesgfd, read_datafd): upon EOF,
9321         close the stream.  If the other stream is also closed, shut
9322         down.
9323
9324 1999-06-02  Mike Grupenhoff <kashmir@munge.com>
9325
9326         * client-src/amandad.c (REP_TIMEOUT): bump up to six hours, for slow
9327         machines.
9328         (exit_check): remove waitpid(), let the service reap its own
9329         children.
9330         (s_repwait): rename 'err' to 'errstr' to avoid conflict with
9331         function in some libcs.
9332         (s_ackwait): if no pipes were opened by this service, then shut
9333         it down here.
9334         (process_netfd): on EOF, be sure to also close the network
9335         stream.  Also, if this is the last stream to be closed, shut
9336         down the service.
9337         (allocstream): correct a comment
9338         (service_delete): only close the security handle if it is still
9339         open.  Reap our children here instead of in exit_check().
9340
9341 1999-06-01  Mike Grupenhoff <kashmir@munge.com>
9342
9343         * server-src/taper.c (write_buffer): assert properly
9344
9345 1999-06-01  John Williams  <williams@morinda.com>
9346
9347         * changer-src/scsi-hpux.c (eject_tape): Enable it, it works.
9348
9349 1999-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
9350
9351         * docs/INSTALL: Point to the patches page.  Update version numbers.
9352
9353         * example/config.site: Document UDPPORTRANGE.
9354
9355 1999-06-01  Jens Persson  <jens.persson@btj.se>
9356
9357         * configure.in (UDPPORTRANGE): Set from --with-udpportrange.
9358         * config/acconfig.h: Add UDPPORTRANGE.
9359         * common-src/dgram.c: Implement it.
9360
9361 1999-05-27  Mike Grupenhoff <kashmir@munge.com>
9362
9363         * common-src/alloc.c (alloc, debug_alloc, newalloc, debug_newalloc):
9364         make the size argument a size_t.
9365         (alloc): if an allocation fails, in the error message print how
9366         many bytes we tried to alloc.  This helps us determine if the
9367         alloc call was errant, or we really were out of memory.
9368         * common-src/amanda.h: update alloc/newalloc prototypes for
9369         size_t changes.
9370
9371 1999-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
9372
9373         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
9374         to libtool 1.3.2 plus a few patches.
9375         * config/config.guess, config/config.sub: Ditto.
9376
9377 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
9378
9379         * common-src/protocol.c: retry connection failures three times,
9380         waiting five seconds between each attempt.  Also, fix a lot
9381         of untrue comments.
9382
9383 1999-05-26  Mike Grupenhoff <kashmir@munge.com>
9384
9385         * client-src/amandad.c: add a lot more dbprintfs so we know what's
9386         going on.
9387         (service_new): use error() instead of dbprintf(); exit()
9388
9389
9390 1999-05-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
9391
9392         * docs/FAQ (tar-patch): Mention sparse file problem.
9393
9394         * recover-src/uscan.l: #undef `ECHO' after #include amanda.h; some
9395         system header files may define it.
9396         Reported by Dan Lipofsky <danlip@cyc.com>
9397
9398         * */Makefile.am: Do not define ACLOCAL_M4, COMPILE or
9399         AMANDA_CFLAGS.
9400         * Makefile.am: Create acinclude.m4 in the top-level directory.
9401         * config/Makefile.am: Create link to acconfig.h in the top-level
9402         directory.
9403         * configure.in: Add AMANDA_CFLAGS to CFLAGS.  Set DUMPER_DIR without 
9404         trying to run it.
9405         * common-src/Makefile.am: Create genversion.h with #defines, to
9406         avoid genversion-specific CPPFLAGS.
9407         * common-src/genversion.c: #include genversion.h
9408
9409 1999-05-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9410
9411         * server-src/amandad.c (state2str): string "s_processrep" is 13
9412         caracters.
9413
9414 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
9415
9416         * server-src/amcheck.c (main): if we reap a bogus pid, print
9417         out the error message we generate, instead of whatever junk
9418         happens to be in the buffer.
9419
9420 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
9421
9422         * common-src/bsd-security.c (bsd_stream_read): remove old
9423         code that was part of something that ended up not happening.
9424         (stream_read_callback): use ssize_t.
9425
9426 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
9427
9428         * common-src/event.c (event_register): restructure asserts, and
9429         for EV_READFD/EV_WRITEFD, assert that the fd is < FD_SETSIZE.
9430
9431 1999-05-24  Mike Grupenhoff <kashmir@munge.com>
9432
9433         * common-src/queue.h: move the multiple-inclusion #defines
9434         into application namespace.  #undef each macro before defining
9435         it, in case the OS has an identical macro.
9436
9437 1999-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
9438
9439         * server-src/amindex.h: Keep P macro expression in a single line.
9440         Reported by Patrick Harrold <patrickh@nasco-inc.com>
9441
9442         * common-src/Makefile.am (statfs_LDADD): Added alloc.obj.
9443
9444         * common-src/statfs.c (STATFS_SCALE, sys/statvfs.h): If f_frsize is
9445         zero, use f_bsize.  It now works with GNU libc 2.1.
9446         Reported by Heikki Vatiainen <hessu@cs.tut.fi>
9447
9448 1999-05-22 Alex Pilosov <alex@pilosoft.com>
9449
9450         * server-src/amindexd.c (is_dump_host_valid): sanitize_name(host)
9451         before doing a stat.
9452         * server-src/tapefile.c (lookup_nb_tape): init pos to 0.
9453
9454 1999-05-19 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9455
9456         * server-src/reporter.c: take the orig size from the SUCCESS line.
9457         use value from the infofile only the datestamp are equal.
9458         Write all available value.
9459
9460 1999-05-18  Mike Grupenhoff <kashmir@munge.com>
9461
9462         * common-src/strerror.c (strerror): restructure so that it doesn't
9463         need to malloc.
9464
9465 1999-05-17  Mike Grupenhoff <kashmir@munge.com>
9466
9467         * common-src/genversion.c (prvar): prototype declared it static,
9468         but actual function was still extern.
9469
9470 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9471
9472         * server-src/planner.c (pick_inclevel): check for base_level+1 if
9473         we don't have estimate for base_level. Needed for FORCE_BUMP.
9474         * server-src/planner.c (promote_highest_priority_incremental):
9475         Don't promote if we don't have level 0 estimate. No more need
9476         to check for skip_full, DS_NOFULL, DS_INCRONLY or FORCE_BUMP.
9477
9478 1999-05-15 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9479
9480         * server-src/amflush.c: ignore SIGPIPE
9481         * server-src/driver.c: ignore SIGPIPE
9482         * server-src/driverio.c (taper_cmd, dumper_cmd): return 0 on error, 
9483         1 on success.
9484         * server-src/driverio.h (taper_cmd, dumper_cmd): prototype.
9485
9486 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9487
9488         * server-src/dumper.c: make prototypes consistent, (putresult):
9489         make first arg const.
9490
9491 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9492
9493         * server-src/conffile.c (getconf_byname): islower takes an int
9494         for an arg.
9495         * server-src/diskfile.c (upcase): islower takes an int for an
9496         arg.
9497         * server-src/driver.c (update_failed_dump_to_tape): prototype.
9498         * server-src/holding.c (insert_dirname, scan_holdingdisk):
9499         prototype and make static, (is_datestr): isdigit takes an int
9500         for an arg.
9501
9502 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9503
9504         * client-src/calcsize.c (basename): make static, prototype, and
9505         only include if BUILTIN_EXCLUDE_SUPPORT is defined and
9506         HAVE_BASENAME is not defined.
9507         * client-src/getfsent.c (dev2rde, samefile): prototype and
9508         make static.
9509         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c
9510         (start_backup, end_backup): prototype.
9511         * client-src/sendbackup.c (index_closed, save_fd): prototype
9512         and make static.
9513         * client-src/versionsuffix.c (main): prototype.
9514         * common-src/alloc.c (internal_vstralloc): prototype.
9515         * common-src/file.c (mk1dir): prototype, make static, and make
9516         first arg const.
9517         * server-src/amadmin.c (check_dumpuser): prototype.
9518         * server-src/amflush.c (get_letter_from_user): prototype and make
9519         static.
9520         * server-src/amindexd.c: prototype and make static numerous local
9521         functions.
9522         * server-src/amlabel.c (main): prototype.
9523         * server-src/amtrmidx.c (main): prototype.
9524         * server-src/changer.c (report_bad_resultstr, run_changer_command):
9525         prototype.
9526         * server-src/conffile.h: properly prototype getconf_holdingdisks()
9527         * server-src/driverio.h: properly prototype init_driverio().
9528         * server-src/find.c (find_compare, parse_taper_datestamp_log):
9529         prototype.
9530         * server-src/infofile.c (zero_info, open_txinfofile,
9531         close_txinfofile, read_txinfofile, write_txinfofile,
9532         delete_txinfofile): prototype and make static.
9533         * server-src/planner.c (main, askfor): prototype.
9534
9535 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9536
9537         * server-src/server_util.c: include server_util.h for prototypes
9538         * server-src/tapefile.h: properly prototype lookup_nb_tape()
9539         * server-src/driverio.c (childstr): make static, make return
9540         val const.
9541
9542 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9543
9544         * server-src/find.h: properly prototype find_log()
9545         * server-src/amtrmlog.c (main): prototype.  find_log() takes
9546         no arguments.
9547
9548 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9549
9550         * server-src/reporter.c: make all functions and globals
9551         static.  Prototype all functions, and make them consistent wrt
9552         K&R.  Place all prototypes together.  Place data type
9553         declarations before the prototypes that use them.  Remove
9554         unused sort_by_time().
9555
9556 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9557
9558         * server-src/dumper.c (process_dumpline): clean up the error
9559         return code
9560         * server-src/dumper.c (log_msgout): no need to reuse errf global,
9561         it makes me nervous.  Also, use amfree instead of free.
9562
9563 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9564
9565         * common-src/packet.c (pkt_cat): remove a bogus assert - len is
9566         a size_t, which is unsigned, so it will always be >= 0.
9567
9568 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9569
9570         * client-src/amandad.c (action_t): consolidate A_PKTTIMEOUT and
9571         A_REPTIMEOUT into just A_TIMEOUT.
9572
9573 1999-05-14  Mike Grupenhoff <kashmir@munge.com>
9574
9575         * common-src/amanda.h, common-src/alloc.c, common-src/event.c,
9576         common-src/rsh-security.c, server-src/driver.c,
9577         server-src/dumper.c: (min, max): consolidate all min/max
9578         definitions into amanda.h
9579
9580 1999-05-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
9581
9582         * docs/TAPE.CHANGERS (chg-rth): URL for chs is no longer valid.
9583
9584 1999-05-12  Mike Grupenhoff <kashmir@munge.com>
9585
9586         * common-src/amanda.h, common-src/alloc.c, common-src/file.c:
9587         const the filename arg to all of the dbmalloc versions of
9588         alloc and io functions
9589
9590 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
9591
9592         * common-src/protocol.c (proto_t): don't need prev and next ptrs
9593         anymore
9594
9595 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
9596
9597         * common-src/amanda.h, common-src/alloc.c: remove the static
9598         buffer manager - nothing uses it.  It can be resurrected in
9599         the future if needed.
9600
9601 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
9602
9603         * common-src/amanda.h: define stringconcat() macros that
9604         concatenate two const strings together
9605         * common-src/versuff.c.in (versionsuffix, version): generate
9606         data at compile time using stringconcat().
9607         * common-src/genversion.c: simplify, don't need to alloc anything
9608         * common-src/Makefile.am (genversion_LDADD): this doesn't need
9609         alloc.o or error.o anymore
9610
9611 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
9612
9613         * common-src/security.c (security_handleinit, security_streaminit):
9614         change default error message "unknown error" to "unknown protocol
9615         error" or "unknown stream error" to help identify where an
9616         messageless error was triggered.
9617
9618 1999-05-11  Mike Grupenhoff <kashmir@munge.com>
9619
9620         * client-src/amandad.c (main): call initgroups(), and also set
9621         the real gid.
9622
9623 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
9624
9625         * server-src/driver.c (start_some_dumps): if a dumper is
9626         constrained, and some dumpers or the taper are active, register
9627         a EV_WAIT event.
9628         * server-src/driver.c (handle_taper_result,
9629         handle_dumper_result):  wakeup constrained dumpers after we
9630         have freed some resources.
9631
9632 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
9633
9634         * common-src/fileheader.c, common-src/fileheader.h: rework the
9635         fileheader parse and format code to remove a lot of duplicated
9636         code (in the F_DUMPFILE and F_CONT_DUMPFILE cases), consting
9637         arguments, and simplifying parse code.
9638
9639 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
9640
9641         * client-src/sendsize.c (getsize_dump): print out the strerror
9642         if we can't exec killpgrp.
9643
9644 1999-05-10  Mike Grupenhoff <kashmir@munge.com>
9645
9646         * server-src/dumper.c (add_msg_data): first two arguments
9647         to memmove() were backwards.
9648
9649 1999-05-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9650
9651         * example/amanda.conf.in: typo
9652
9653 1999-05-07  Mike Grupenhoff <kashmir@munge.com>
9654
9655         * common-src/alloc.c (safe_env): allow DISPLAY into the
9656         environment for purify.
9657         * server-src/holding.c (rename_tmp_holding): if fill_buffer
9658         returns 0, don't try to parse a nonexistant header.
9659         * server-src/taper.c (file_reader_side): init datestamp to
9660         NULL, and don't try to free it if it's still NULL on exit.
9661
9662 1999-05-06  Mike Grupenhoff <kashmir@munge.com>
9663
9664         * server-src/driver.c (start_some_dumps): sleep_time is an
9665         offset, not an absolute.  Leave it that way when we return from
9666         this function.
9667
9668 1999-05-05  Mike Grupenhoff <kashmir@munge.com>
9669
9670         * server-src/amverify.sh.in (pecho): new function.  Like echo
9671         but doesn't append newline, and supports \r, etc.  Implemented
9672         using perl.
9673         * server-src/amverify.sh.in: use pecho where we used to use echo -n,
9674         etc.  It's nearly impossible to figure out which echo needs what
9675         flags and also know if it supports \r.  So we just punt and use
9676         perl.
9677
9678 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
9679
9680         * server-src/driver.c: convert to use event handler.
9681         (some_dumps_in_progress, lookup_dumper): nuke.
9682         (sleep_time): make a time_t and static.
9683         (IDLE_NO_DUMPERS): give a lower precedence than IDLE_START_WAIT.
9684         (start_some_dumps): make this work on one dumper instead of all.
9685         Call when a dumper is finished and needs more work.
9686         (handle_idle_wait): callback for dumpers waiting for delayed
9687         disks to start up.
9688         * server-src/driverio.c: initialize event handles for dumpers
9689         and the taper.  Nuke addfd().
9690         * server-src/driverio.h: add event handles for each dumper, and
9691         one global one for the taper.  Nuke maxfd and readset globals.
9692
9693 1999-05-04  Mike Grupenhoff <kashmir@munge.com>
9694
9695         * server-src/driver.c (taper_queuedisk): new function that takes
9696         a disk_t, and, if the taper is not busy, tells it to write it out,
9697         or else adds it to the tapeq.  Make use_lffo global static.
9698         * server-src/driver.c (handle_taper_result, handle_dumper_result):
9699         call taper_queuedisk() instead of queueing ourself.
9700
9701 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
9702
9703         * server-src/driver.c: make all local functions static.
9704         Exposed two prototypes for nonexistant functions
9705         (diskname2filename, driver_main), and one function (dump_state)
9706         that was never called.  #if 0 out dump_state.
9707         Nuke inside_dump_to_tape global - it's value was never used.
9708         Make pending_aborts global a static local in handle_dumper_result.
9709
9710 1999-04-30  Mike Grupenhoff <kashmir@munge.com>
9711
9712         * server-src/driverio.h (dumper_t): merge infd and outfd into
9713         just 'fd'.  Comment the other members of the struct.
9714         * server-src/driverio.c: infd/outfd -> fd
9715         * server-src/driver.c (handle_dumper_result): merge some common
9716         code between the FAILED and TRYAGAIN cases.  Comment the
9717         ABORT_FINISHED case.  Also infd/outfd -> fd.
9718
9719 1999-04-29 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9720
9721         * server-src/planner.c (when_overwrite): return a big number (1024)
9722         if the tape is not reusable.
9723
9724 1999-04-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
9725
9726         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: Updated
9727         from libtool 1.3.
9728
9729 1999-04-29  Mike Grupenhoff <kashmir@munge.com>
9730
9731         * server-src/driver.c (handle_dumper_result): remove FATAL_TRYAGAIN
9732         case, nothing uses it.
9733         * server-src/driverio.c, server-src/driverio.h: garbage collect
9734         FATAL_TRYAGAIN.  static & const cmdstr.
9735
9736 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
9737
9738         * server-src/diskfile.c (read_diskfile): rework to take a
9739         disklist_t * as an argument, and return -1 on error, or 0 on
9740         success.  const the filename argument.  Kill a few globals.
9741         * server-src/diskfile.c (lookup_host, lookup_disk): const
9742         arguments
9743         * server-src/diskfile.h: adjust prototypes for above changes
9744         * server-src/amadmin.c, server-src/amcheck.c,
9745         server-src/amcleanupdisk.c, server-src/amflush.c,
9746         server-src/amindexd.c, server-src/amtrmidx.c,
9747         server-src/amtrmlog.c, server-src/driver.c,
9748         server-src/planner.c, server-src/reporter.c: adjust calls to
9749         read_diskfile() to deal with convention
9750
9751 1999-04-28  Mike Grupenhoff <kashmir@munge.com>
9752
9753         * server-src/dumper.c (read_mesgfd, read_indexfd): on EOF, just
9754         stop reading these streams.  We let EOF on the data stream cause
9755         the entire dump to be stopped.
9756
9757 1999-04-27  Mike Grupenhoff <kashmir@munge.com>
9758
9759         * common-src/rsh-security.c (conn_read_callback): cast
9760         event_wakeup() arg to event_id_t.
9761
9762 1999-04-25  Alexandre Oliva  <oliva@dcc.unicamp.br>
9763
9764         * common-src/versuff.c.in: Adjust constness to match version.h.
9765
9766         * docs/SYSTEM.NOTES: Recommend GNU tar for Linux.
9767
9768 1999-04-25 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9769
9770         * server-src/amdump.sh.in: execute amtrmlog.
9771
9772 1999-04-24 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9773
9774         * client-src/sendbackup.c: rename write_tapeheader to info_taperheader
9775         we already have a write_tapeheader function in dumper.c
9776         * client-src/sendbackup.h: ditto
9777         * client-src/sendbackup-dump.c: ditto
9778         * client-src/sendbackup-gnutar.c: ditto
9779
9780 1999-04-23 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9781
9782         * dumper-src/gnutar.pl.in: add debuging code.
9783         * server-src/planner.c (getsize): send optionstr() for estimate 
9784         with a wrapper.
9785         * client-src/selfcheck.c: init program_is_wrapper to 0.
9786         * client-src/sendsize.c: implement DUMPER-API, support only
9787          estimate-direct.
9788
9789 1999-04-22 John R. Jackson  <jrj@purdue.edu>
9790
9791         * configure.in: add --with-broken-fsf to use a read() loop instead
9792         of the fsf ioctl on some broken systems.
9793         * config/acconfig.h: ditto
9794         * tape-src/tapeio.c (tapefd_fsf): ditto
9795
9796 1999-04-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
9797
9798         * docs/SYSTEM.NOTES: Typo
9799         * docs/SAMBA: Update on samba-largefs patch.
9800         * docs/FAQ: New FAQ about promotion of full dumps.
9801
9802 1999-04-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
9803
9804         * tape-src/tapeio.c (tape_open): Retry after EBUSY and EINTR too.
9805         Comment out test that would set filename to /dev/null.
9806
9807 1999-04-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
9808
9809         * docs/WISHLIST: Global reformat.  Removed fixed issues.  Added
9810         auto-flush mode.
9811
9812 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9813
9814         * server-src/server_util.c: use snprintf instead of ap_snprintf.
9815
9816 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9817
9818         * server-src/server_util.c: new file for utility function.
9819         New function construct_datestamp.
9820         * server-src/server_util.h: ditto
9821         * server-src/Makefile.am: link server_util.c with libamserver.
9822         * amcleanupdisk.c (construct_datestamp): remove function.
9823         * server-src/driver.c: ditto
9824         * server-src/dumper.c: ditto
9825         * server-src/amflush.c: ditto
9826         * server-src/planner.c: ditto
9827
9828 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
9829
9830         * common-src/bsd-security.c: this doesn't need queue.h
9831
9832 1999-04-17  Mike Grupenhoff <kashmir@munge.com>
9833
9834         * common-src/event.c: Insert new events at the head of the eventq,
9835         not the tail, so we don't loop forever if a newly registered
9836         event has the same type as the one currently firing.  Noticed
9837         and diagnosed by Jean-Louis Martineau.
9838         Use a LIST for the eventq, instead of a TAILQ, since we don't need
9839         to do tail insertions anymore.
9840         Make the eventq_* functions take a queue name so we can also use
9841         them for the handle cache.  Rename eventq_append() to eventq_add().
9842
9843 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9844
9845         * dumper-src/gnutar.pl.in: add DUMPER_DIR to INC.
9846
9847 1999-04-17 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9848
9849         * client-src/selfcheck.c: Implement DUMPER-API.
9850         * dumper-src/gnutar.pl.in (command_selfcheck): print OK, the function
9851         is not implemented.
9852         * dumper-src/generic-dumper.pl.in (parse_options): option are
9853         separated by ;
9854
9855 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9856
9857         * server-src/dumper.c: make dumpsize and headersize static.  Rename
9858         nb_header_block to headersize and also make it static.  headersize
9859         now counts bytes instead of blocks, just like the other two.
9860         Use SEEK_SET in an lseek instead of hardcoding 0.
9861
9862 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9863
9864         * configure.in: implement --with-cflags to allow turning on
9865         compiler warnings and optimizations
9866
9867 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9868
9869         * common-src/event.c (gethandle, puthandle): new functions that
9870         keep a cache of handles to reduce calls to malloc/free.
9871
9872 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9873
9874         * common-src/alloc.c (dbmalloc_caller_loc): const the file
9875         arg, use the queue macros to maintain the list.
9876
9877 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9878
9879         * common-src/versuff.c.in: const the return str of version()
9880         and versionsuffix.  Bump copyright to 1999.
9881
9882 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9883
9884         * client-src/amandad.c, client-src/amandad.h,
9885         client-src/sendbackup-dump,c, client-src/sendbackup-gnutar.c,
9886         client-src/sendbackup.c, common-src/bsd-security.c,
9887         common-src/dgram,c, common-src/dgram.h, common-src/event.c,
9888         common-src/event.h, common-src/krb4-security.c,
9889         common-src/krb5-security.c, common-src/packet.c,
9890         common-src/packet.h, common-src/protocol.c, common-src/security.c,
9891         common-src/security.h, server-src/amcheck.c, server-src/conffile.c,
9892         server-src/conffile.h, server-src/dumper.c:
9893         update copyright to 1999 on things I've touched this year.
9894
9895 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9896
9897         * common-src/amanda.h: remove version_info extern.  Bump
9898         copyright to 1999
9899         * common-src/genversion.c: constify version_info.  Emit
9900         {KRB4,KRB5,RSH}_SECURITY.  Bump copyright.
9901         * common-src/version.h: const VERSION_COMMENT and version_info.
9902         const return str and fully prototype versionsuffix() and version()
9903         prototypes.  Bump copyright.
9904         * server-src/planner.c (main): iterate through version_info using
9905         an index instead of a pointer.
9906
9907 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9908
9909         * server-src/conffile.c: explicitly give the seen_columnspec global
9910         an int type instead of letting the compiler default to it.
9911
9912 1999-04-16  Mike Grupenhoff <kashmir@munge.com>
9913
9914         * common-src/event.h (event_id_t): a new typedef for the
9915         first arg to event_register.  Should be wide enough to
9916         reasonably hold an int or a pointer (but it is ok to trunc
9917         the pointer if necessary).  Update proto for event_register()
9918         and event_wakeup().
9919         * common-src/event.c: struct event_handle->data is now an
9920         event_id_t.
9921         (event_register, event_wakeup): adjust args for event_id_t)
9922         (event_register): event_id_t is unsigned, no need to assert
9923         positivity anymore.
9924         * common-src/rsh-security.c (rsh_stream_read): cast first arg to
9925         event_register() to event_id_t.
9926
9927
9928 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
9929
9930         * common-src/event.c (release): nuke, and inline into event_loop.
9931         * common-src/event.c (event_loop): flesh out the timeout comment.
9932         Combone the EV_WAIT and EV_DEAD empty cases in the post-select loop.
9933         * common-src/event.h: flesh out the event_type_t comment.
9934
9935 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
9936
9937         * common-src/event.c (fire): inline this with a macro.  Remove
9938         timestamp arg.  eh->lastfired is now only valid for EV_TIME
9939         events.  Removes several time() systems from the critical path.
9940         * common-src/event.c (event_wakeup): have this fire EV_WAIT events
9941         directly instead of deferring back to the event loop.  Removes the
9942         sequencing restriction for event_wakeup.
9943
9944 1999-04-15  Mike Grupenhoff <kashmir@munge.com>
9945
9946         * server-src/planner.c (getsize): put the hosts disks on the waitq
9947         before sending the request, not after.
9948
9949 1999-04-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
9950
9951         * docs/UPGRADE: Update URL for archived message.
9952
9953 1999-04-14 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9954
9955         * server-src/amcheck.c (main): should not set real uid to 0.
9956
9957 1999-04-13 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
9958
9959         * common-src/bsd-security.c (bsd_connect): dgram_bind return the port
9960         number, we don't need ntohs().
9961
9962 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
9963
9964         * common-src/dgram.c,common-src/dgram.h: nothing uses dgram_alloc()
9965         anymore, gc them.
9966
9967 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
9968
9969         * server-src/amindexd.c: dgram.h not needed
9970
9971 1999-04-12  Mike Grupenhoff <kashmir@munge.com>
9972
9973         * common-src/event.c: fix a bunch of inaccurate comments.
9974         * common-src/event.c (event_loop): prune dead events in the
9975         pre-select pass instead of in the EV_WAIT pass.
9976         * common-src/event.c (fire): factor out all code that fires
9977         events into a 'fire' function.
9978         * common-src/event.c (signal_handler): bounds check the signal
9979         number against the size of sigtable instead of assuming sigtable
9980         is NSIG big.
9981
9982 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
9983
9984         * client-src/amandad.c (allocstream): if security_stream_server()
9985         fails, dbprintf the error.
9986
9987 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
9988
9989         * configure.in: implement --with-rsh-security
9990         * common-src/rsh-security.c: first attempt at using rsh or a rsh-like
9991         command for dump transport and authentication.  Still has lots
9992         of "issues"
9993         * common-src/Makefile.am: build rsh-security.c
9994         * common-src/security.c: add rsh_security_driver to the drivers array
9995         * config/acconfig.h: define RSH_SECURITY
9996
9997 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
9998
9999         * server-src/dumper.c (runcompress): use the proper end of the pipe
10000         for writing and reading.  Also, grab errno early on fork error
10001         before calling close.
10002         * server-src/dumper.c (sendbackup_response): make sure the client
10003         at least send us a mesgfd and datafd.
10004
10005 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
10006
10007         * client-src/amandad.c (main): don't dup stdout to db_fd - it might
10008         be needed by the security driver
10009         * client-src/amandad.c (s_ackwait, allocstream,): on error, don't
10010         attempt to event_release a handle we haven't attached yet.
10011
10012 1999-04-10  Mike Grupenhoff <kashmir@munge.com>
10013
10014         * ap_snprintf -> snprintf, ap_vsnprintf -> vsnprintf
10015
10016 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10017
10018         * client-src/Makefile.am (noinst_HEADERS): add amandad.h
10019
10020 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10021
10022         * common-src/Makefile.am (libamanda_la_SOURCES): build
10023         krb4-security.c
10024
10025 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10026
10027         * configure.in: implement --with-dbmalloc=[dir], where dir is
10028         where the dist is unpacked and built.  This could be improved on,
10029         because it doesn't handle the case where it's installed.
10030
10031 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10032
10033         * client-src/sendbackup.c: security changes:
10034         remove krb4 code and NAUGHTY_BITS macros.
10035         (parse_options): don't look for krb4 options
10036         (main): don't close pipes that were handed to us from amandad.
10037         Don't open stream directly - just use the pipes given to us.
10038         * client-src/sendbackup-dump.c, client-src/sendbackup-gnutar.c:
10039         Remove krb4 code and NAUGHTY_BITS macros.
10040
10041 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10042
10043         * client-src/amandad.h: new file describing the pipes between
10044         amandad and children.
10045         * client-src/amandad.c: rewrite for security changes.  Can
10046         now handle multiple requests simultaneously, and has a state
10047         machine to deal with each active request.
10048         This handles all network transmissions and authentication.
10049         Each child process (sendbackup, selfcheck) gets three general
10050         purpose pipes to amandad which it may allocate for anything.
10051         amandad relays these pipes to equivalent security_streams.
10052         Lots of other stuff.
10053         Finally, NEED_KEYPIPE stuff removed.
10054
10055 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10056
10057         * server-src/dumper.c: security changes:
10058         Remove krb4 includes and NAUGHTY_BITS macros.
10059         Remove no-longer-true comment about DATABUF_SIZE ==
10060         TAPE_BLOCK_BYTES for krb4
10061         Remove file descriptor and event handle from streams array.  Add
10062         a security_stream_t.
10063         Remove global read buffer.
10064         (check_options): remove krb4 code.
10065         (service_ports_init): remove, now handled by individual security
10066         drivers.
10067         (main): remove dgram usage.
10068         (do_dump): remove DUMPER_SOCKET_BUFFERING - now handled in the
10069         bsd driver.  schedule reads on the streams using
10070         security_stream_read.
10071         (read_mesgfd,read_datafd,read_indexfd): adapt to
10072         security_stream_read callback interface.
10073         (stop_dump): just call security_stream_close on all non-null
10074         streams.
10075         (sendbackup_response): adapt to new protocol layer error return.
10076         Remove krb4 code.
10077         (startup_dump): stinky hack to parse the security driver string out of
10078         the options passed to us from driver.
10079         Lookup the security driver with said string.
10080         Remove krb4 code.
10081         Free request after calling protocol_sendreq().
10082
10083 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10084
10085         * server-src/planner.c: security changes:
10086         (main): Remove dgram usage.  Call protocol_init().  Remove
10087         krb4 code.
10088         (getsize): remove krb4 code.  Handle protocol layer api changes.
10089         Lookup security driver/complain if not found.  Free request
10090         after calling sendreq.  All hosts get put on the waitq since
10091         sendreq never returns an error.
10092         (handle_result): deal with new protocol layer error semantics.
10093         Remove krb4 code.
10094
10095 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10096
10097         * server-src/conffile.c: remove INTERFACE undef hack.  Our
10098         namespace isn't polluted by krb4 headers anymore, so it's
10099         unneeded.
10100
10101 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10102
10103         * server-src/amcheck.c: security changes:
10104         (main): ignore SIGPIPE - some security drivers might get it.
10105         Remove all usages of dgram.
10106         Make our real uid root and our effective uid amanda so we can
10107         get back to root later (on most os's :()
10108         (start_client_checks): remove krb4 bits.
10109         The dump user check should check the effective uid.
10110         Get the name of the security driver for this host out of
10111         host->diskp->security_driver.
10112         Free req after calling protocol_sendreq() because it will internalize
10113         it.
10114         protocol_sendreq doesn't return any errors - they're all returned
10115         via handle_response.
10116         (handle_result): renamed from handle_response for consistency.
10117         The protocol layer doesn't pass us a proto_t anymore, so detect
10118         errors based on pkt being NULL.
10119         Remove krb4 bits - security violations will be indicated by a 
10120         NULL pkt.
10121
10122 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10123
10124         * common-src/protocol.[ch]: rewrite for security api.  The entry
10125         points now have the 'protocol' prefix.  See protocol.h for more
10126         info.
10127         * common-src/security.c: rewrite for security api.  This now contains
10128         the functions for the 'base class' or some approximation of it.
10129         See security.h for the entry points, or docs/SECURITY-API.
10130
10131 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10132
10133         * common-src/amanda.h: rip out krb4 defines, headers, and
10134         prototypes.  Also, make assert() abort() after calling error().
10135         * common-src/krb4-security.c: stub file that pulls in the real
10136         krb4-security out of amanda-krb-2 if KRB4_SECURITY is defined.
10137
10138 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10139
10140         * server-src/conffile.h: aggregate all of the compress defines
10141         (COMP_{NONE,FAST,BEST,...}) into an enum and typedef it to comp_t.
10142         Make dumptype_t->compress a comp_t.
10143         * server-src/dumper.c: make srvcompress global a comp_t.
10144         * server-src/dumper.c (runcompress): add a comp_t third arg
10145         that specifies the level of compression for this fd.
10146         * server-src/dumper.c (do_dump): always compress index files
10147         with COMP_BEST compression, as pointed out by Jean-Louis Martineau.
10148         * server-src/dumper.c (read_indexfd): read the indexfd, not the
10149         datafd.  Also noted by Jean-Louis Martineau.
10150
10151 1999-04-09  Mike Grupenhoff <kashmir@munge.com>
10152
10153         * server-src/planner.c (main): ignore SIGPIPE.  tcp based
10154         security drivers may get this while getting estimates.
10155         Set the real uid to root, and the effective uid to the amanda
10156         user, so we can get back to root later if needed.
10157         * server-src/planner.c (handle_result): rework error logic
10158         so we don't need to use p->state, which will eventually go
10159         away.
10160
10161 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10162
10163         * server-src/dumper.c: rewrite to use the event handler instead
10164         of a select loop.  Also, compress the index output using
10165         runcompress() instead of forking a compress ourselves.
10166
10167 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10168
10169         * server-src/dumper.c (sendbackup_response): don't krb4 authenticate
10170         streams if krb4_auth if false.
10171
10172 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10173
10174         * server-src/dumper.c (do_dump): some formatting cleanups.  Nuke
10175         'killerr' - we can do without it.
10176
10177 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10178
10179         * server-src/dumper.c (do_dump): store compresspid inside of
10180         the databuf
10181
10182 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10183
10184         * server-src/dumper.c (parse_info_line): parse info lines
10185         from sendbackup directly into the 'file' global.  Eliminate
10186         the backup_name, recover_cmd, and compress_suffix globals.
10187         * server-src/dumper.c (finish_tapeheader): nuke usage
10188         of above globals.  Nuke unneeded explicit nul terminations (we
10189         memset the whole thing in fn_init).
10190
10191 1999-04-08  Mike Grupenhoff <kashmir@munge.com>
10192
10193         * server-src/dumper.c (process_dumpline): rewrite to use strtok
10194         and const the argument.
10195         * server-src/dumper.c (make_tapeheader): rename to finish_tapeheader
10196         and prototype it.  Remove the 'type' arg, since it's always
10197         F_DUMPFILE.  Remove call to fn_init().
10198         * server-src/dumper.c (do_dump): call fh_init on 'file' while
10199         initializing globals.  Call finish_tapeheader after getting info
10200         endline.
10201
10202 1999-04-07 John R. Jackson  <jrj@purdue.edu>
10203
10204         * tape-src/tapeio.c: allow tapedev to be /dev/null.
10205         * server-src/taper.c: allow tapedev to be /dev/null.
10206         * man/amanda.8.in: allow tapedev to be /dev/null.
10207
10208 1999-04-07  Mike Grupenhoff <kashmir@munge.com>
10209
10210         * server-src/dumper.c: collect got_info_endline, got_sizeline,
10211         got_endline, and header_done into one bitmask global, and make it
10212         static.  Also, make 'file' static.
10213
10214 1999-04-06 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10215
10216         * server-src/reporter.c (TextRule): Fix to write the full string.
10217
10218 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10219
10220         * configure.in: MIT krb5 has libk5crypto, Cygnus kerbnet 1.2
10221         calls it libcrypto.  Check for both.
10222
10223 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10224
10225         * common-src/bsd-security.c (check_user): if an .amandahosts
10226         file is missing or unreadable, log this fact to the debug file
10227         instead of claiming that a user doesn't have permission.
10228         * common-src/bsd-security.c (bsd_stream_client): if
10229         DUMPER_SOCKET_BUFFERING is defined, set the socket read buffer to
10230         be twice the size of our read buffer.
10231
10232 1999-04-06  David Mankins <dm@k12-nis-2.bbn.com>
10233
10234         * common-src/security.c (bsd_security_ok): if an .amandahosts
10235         file is missing or unreadable, log this fact to the debug file
10236         instead of claiming that a user doesn't have permission.
10237
10238 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10239
10240         * server-src/dumper.c: put all of the streams (data,mesg,index)
10241         into an array with a name tag.
10242         * server-src/dumper.c (stop_dump): new function that cleans up
10243         and shuts down all of the streams.
10244         * server-src/dumper.c (sendbackup_response): make static, pass
10245         response_error through p->datap instead of making it global.
10246         Rewrite the parsing to use strtok() and take advantage of the
10247         streams array instead of repeading code for all three streams.
10248
10249 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10250
10251         * server-src/dumper.c (main): keep our real uid as 0, and make
10252         our effective uid nonprivlidged, so we can get back to root
10253         later.  Don't print what port we bound to.  This info won't
10254         always be available or even applicable.
10255         * server-src/dumper.c (do_dump): create the stats line with one
10256         snprintf instead of a huge amount of code.
10257
10258 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10259
10260         * server-src/dumper.c (startup_dump): make static, and const all
10261         of the string args
10262         * server-src/dumper.c (do_dump): make static
10263
10264 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10265
10266         * server-src/dumper.c (do_dump): no need to have a separate buffer
10267         to read the mesgfd - just reuse the one we used for data reads.
10268         Gets rid of one more global.  Also, we don't need to leave
10269         space for a NUL anymore.
10270         * server-src/dumper.c (main): wait for children after closing
10271         our fds.  Some children may be blocked waiting for EOF on outfd,
10272         effectively causing deadlock between dumper and child.
10273
10274 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10275
10276         * server-src/dumper.c (add_msg_data): now takes a 'len' arg, and
10277         doesn't expect the data to be nul terminated.  Also, move
10278         the buffer from global scope into the function, and have a NULL
10279         arg flush it out if there is leftover data at the end.  Finally,
10280         resize the buffer in 256 byte chunks.
10281
10282 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10283
10284         * common-src/stream.c, common-src/stream.h (stream_client): add
10285         yet another arg - if nonzero, do a nonblocking connect
10286         * server-src/dumper.c: catch up with extra arg to stream_client()
10287
10288 1999-04-06  Mike Grupenhoff <kashmir@munge.com>
10289
10290         * common-src/bsd-security.c, common-src/security.h: attempt
10291         to decouple security streams from security handles.  Lots of
10292         other restructuring.
10293
10294 1999-04-01 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10295
10296         * server-src/amcheck.c: -t should read the tapelist to validate
10297         the label.
10298
10299 1999-03-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
10300
10301         * patches/samba-largefs.patch: updated to patch that ended up
10302         installed in the Samba CVS tree
10303
10304         * patches/tar-1.12.patch: patch the configure script so that it
10305         requires autoconf and autoheader to be run; improve the
10306         printf_long_long test so that it doesn't get false positives because 
10307         of endianness
10308
10309         * changer-src/scsi-chio.c: since we do not support FreeBSD 3's
10310         camlib.h interface, #ifdef out all the code
10311         Reported by Francis Lam <Francis.Lam@Leitch.com>
10312
10313         * configure.in (VXSYSLOCPATH): apparently a complex path expression
10314         gets AC_PATH_PROGS confused; set the path beforehand
10315         Reported by Francis Lam <Francis.Lam@Leitch.com>
10316
10317 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10318
10319         * server-src/reporter.c: compiler warning.
10320
10321 1999-03-28 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10322
10323         * server-src/amtrmlog.c: new program to move unused log 
10324         to logdir/oldlog.
10325         * server-src/Makefile.am: install amtrmlog.
10326         * server-src/find.h: declare find_log().
10327         * server-src/find.c(find_log): new function to return an array of
10328         all the logfile name that are still needed.
10329         * server-src/find.c(search_logfile): special case if output_find==NULL,
10330         return 1 if it the logfile fir the label.
10331
10332 1999-03-25  Neil Crellin  <neil@wallaby.cc>
10333
10334         * docs/TAPE.CHANGERS (chg-chs): URL for chs
10335
10336 1999-03-25  Alexandre Oliva  <oliva@dcc.unicamp.br>, Tom Schutter  <tom@platte.com>, Cloyce D. Spradling  <cloyce@headgear.org>
10337
10338         * patches/samba-largefs.patch: updated for Samba 2.0.*
10339
10340 1999-03-25  Charles Owens  <owensc@enc.edu>
10341
10342         * changer-src/chg-chio.pl.in (changeTape): do not print status to
10343         both stdout and stderr; this causes failures on FreeBSD
10344
10345 1999-03-23  Mike Grupenhoff <kashmir@munge.com>
10346
10347         * common-src/stream.c, common-src/stream.h (stream_client):
10348         const the hostname arg
10349
10350 1999-03-22 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10351
10352         * configure.in: AC_SUBST(GNUTAR_LISTED_INCREMENTAL_DIR)
10353         * dumper-src/gnutar.pl.in: use @GNUTAR_LISTED_INCREMENTAL_DIR@
10354
10355 1999-03-21 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10356
10357         * configure.in: default for DUMPER_DIR is $exec_prefix/dumper.
10358         * Makefile.am: make dumper-src directory
10359         * dumper-src: directory for program that implement the DUMPER-API.
10360         * dumper-src/Makefile.am:
10361         * dumper-src/generic-dumper.pl.in: first draft of a generic wrapper.
10362         * dumper-src/gnutar.pl.in: first draft of a gnutar wrapper.
10363
10364 1999-03-21  Elmar Bartel  <bartel@Informatik.TU-Muenchen.DE>
10365
10366         * conffile.h, conffile.c: new columnspec option
10367         * reporter.c: use it
10368         * man/amanda.8.in: description and example
10369         * example/amanda.conf.in: ditto
10370
10371 1999-03-20  Dahn Nilsson <dahn.nilsson@maxlab.lu.se>
10372
10373         * configure.in: SAMBA_VERSION is not set correctly.
10374
10375 1999-03-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
10376
10377         * client-src/sendbackup-dump.c (re_table): generalize a bit some of
10378         the regular expressions, so as to make us more adaptable to future
10379         minor changes and bugfixes the the output format of some dumps
10380
10381 1999-03-16 Thomas Hepper <th@ant.han.de>
10382         * changer-src/chg-scsi.c: If the open of the TapeDevice fails
10383         the programm is not terminated.
10384         * changer-src/scsi-aix.c: The wrong ident string was checked
10385         for 0 termination.
10386         * changer-src/scsi-bsd.c: see scsi-aix.c
10387         * changer-src/scsi-linux.c: see scsi-aix.c
10388         * changer-src/scsi-solaris.c: see scsi-aix.c
10389         * changer-src/scsi-changer-driver.c: Added some more debug prints.
10390         Wrong fd passwd to LogSense.
10391         * docs/TAPE.CHANGERS: added note about linux and aha1542
10392
10393 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
10394
10395         * common-src/packet.h: explicitly list the numeric values for
10396         the pktype_t enum, so we can use them on the wire
10397
10398 1999-03-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
10399
10400         * config/ltconfig, config/ltmain.sh: updated from libtool 1.2f
10401         * config/libtool.m4i, config/config.guess, config/config.sub: ditto
10402         * configure.in: dropped AC_PROG_RANLIB, as suggested by libtoolize
10403
10404 1999-03-15  Mike Grupenhoff <kashmir@munge.com>
10405
10406         * common-src/bsd-security.c (recv_security_ok): bring over
10407         increased verbosity change from common-src/security.c
10408
10409 1999-03-14  Mathias Herberts  <Mathias.Herberts@ago.fr>
10410
10411         * man/amrecover.8.in: document mode and setmode
10412
10413 1999-03-14  Jon Stevens  <jon@clearink.com>
10414
10415         * common-src/security.c (bsd_security_ok): increase the verbosity of 
10416         failed authentication messages
10417
10418 1999-03-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
10419
10420         * configure.in (powerpc-*-linux-*): supported platform
10421         * README: ditto
10422         Reported by Jon Stevens <jon@clearink.com>
10423
10424 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10425
10426         * configure.in: new option --with-dumperdir=DIR to specify the 
10427         directory for the dumpers (dumper api).
10428         * config/acconfig.h: add def of DUMPER_DIR
10429
10430 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10431
10432         * server-src/conffile.c: accept any string for the program.
10433         * server-src/amcheck.c: add the keyword DUMPER to the request if 
10434         the program is not DUMP or GNUTAR.
10435         * server-src/planner.c: ditto
10436         * server-src/dumper.c: ditto
10437
10438 1999-03-07 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10439
10440         * server-src/dumper.c (startup_dump): rename dumpname to progname.
10441         the function will use the parameter progname instead of the
10442         global variable.
10443
10444 1999-03-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
10445
10446         * configure.in (openbsd): according to Ralf Gebhart
10447         <rgebhart@cybernet-ag.net>, sparc-unknown-openbsd2.3 is supported;
10448         I assume other openbsd platforms work too.
10449
10450 1999-03-06 Thomas Hepper <th@ant.han.de>
10451
10452         * client-src/sendbackup-gnutar.c: Replaced #fi with #endif
10453         * changer-src/: Get in sync with 2.4.2 Version
10454
10455 1999-03-05 Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10456
10457         * configure.in: set SAMBA_VERSION
10458         * client-src/sendbackup-gnutar.c (start_backup): use -q flag
10459         if SAMBA_VERSION >= 2
10460
10461 1999-03-05 Mathias Herberts <Mathias.Herberts@ago.fr>
10462
10463         * recover-src/amrecover.h (set_mode, show_mode) declare new functions.
10464         * recover-src/amrecover.h (SAMBA_SMBCLIENT, SAMBA_TAR) define new 
10465         constant.
10466         * recover-src/extract_list.c: declare variable samba_extract_method.
10467         * recover-src/extract_list.c (extract_files_child): set dumptype
10468         according to samba_extract_method.
10469         * recover-src/help.c (help_list): print help for new command mode
10470         and showmode.
10471         * recover-src/set_commands.c (set_mode, show_mode): new functions.
10472         * recover-src/uscan.l:
10473         * recover-src/uparse.y:
10474
10475 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
10476
10477         * common-src/amanda.h: use ssize_t in writev return value
10478         * common-src/bsd-security.c (bsd_stream_write,bsd_stream_read):
10479         use ssize_t over int
10480         * common-src/file.c (areads): use ssize_t to hold read() return val
10481         * common-src/fileheader.c (fill_buffer): usse ssize_t to hold read()
10482         return val
10483         * common-src/security.h: stream_read's callback now takes a ssize_t
10484         as the third argument.
10485         * common-src/writev.c (writev): return a ssize_t
10486
10487 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
10488
10489         * configure.in: check for ssize_t, make it int if not present
10490         * config/acconfig.h: add def for ssize_t
10491
10492 1999-03-05  Mike Grupenhoff <kashmir@munge.com>
10493
10494         * common-src/base64.c (base64encode): don't cast away a const
10495         needlessly.
10496
10497 1999-03-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10498
10499         * common-src/bsd-security.c (stream_read_callback): change n to int
10500         since ssize_t doesn't exist on all OS.
10501
10502 1999-03-03  Ralf Fassel <ralf@akutech.de>
10503
10504         * common-src/conffile.h: bit field of length 1 should be unsigned int,
10505         not int.
10506
10507 1999-03-03  Ralf Fassel <ralf@akutech.de>
10508
10509         * common-src/bsd-security.c (stream_read_callback): n should be ssize_t.
10510
10511 1999-03-03  Ralf Fassel <ralf@akutech.de>
10512
10513         * changer-src/scsi-changer-driver.c (CloseDevice): wrong assignment.
10514
10515 1999-03-03  Ralf Fassel <ralf@akutech.de>
10516
10517         * common-src/base64.c (base64encode): remove warning from sgi cc
10518         compiler.
10519
10520 1999-03-03  Mike Grupenhoff <kashmir@munge.com>
10521
10522         * common-src/bsd-security.c: use EV_WAIT events instead of
10523         maintaining a queue of listeners.  Refcnt the dgram read event
10524         handle.
10525
10526 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10527
10528         * server-src/driverio.h: new parameter level to update_info_taper().
10529         * server-src/driverio.c (update_info_taper): use parameter instead
10530         of sched(dp)->level.
10531         * server-src/driver.c: call update_info_taper with level parameter.
10532         * server-src/amflush.c: call update_info_taper with level parameter.
10533         no longer need to create a sched_t struct.
10534
10535 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10536
10537         * server-src/driverio.h: remove declaration of inparallel, cmdstr()
10538         and childstr(), declare init_driverio(), add inparallel parameter
10539         to startup_dump_processes().
10540         * server-src/driverio.c (init_driverio): new function to initialize
10541         dmptable and taper.
10542         * server-src/driverio.c (childstr): scan for all dumpers (MAX_DUMPERS)
10543         instead of only inparallel
10544         * server-src/driverio.c (startup_dump_processes): new parameter
10545         inparallel is used instead of global variable.
10546         * server-src/driver.c (main): call init_driverio.
10547         * server-src/driver.c (main): call startup_dump_processes with 
10548         inparallel parameter.
10549         * server-src/amflush.c (main): call init_driverio.
10550
10551 1999-03-01  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10552
10553         * server-src/amrmtape.sh.in: work with "last_level" and
10554         "consecutive_runs" in the ouput of "amadmin export".
10555
10556 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
10557
10558         * common-src/security.h: implement security_connect callback and
10559         security_status_t changes
10560
10561 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
10562
10563         * common-src/bsd-security.c (bsd_connect): properly munge the uids
10564         to get a reserved port
10565         * common-src/bsd-security.c: adapt to the security_connect
10566         callback changes
10567         * common-src/bsd-security.c (bsd_sendpkt): dgram_cat is varargs now,
10568         so skip the vstralloc
10569
10570 1999-03-01  Mike Grupenhoff <kashmir@munge.com>
10571
10572         * common-src/event.c: implement EV_WAIT events.  Implement macros
10573         for adding/removing/traversing the event queue
10574         * common-src/event.h: define EV_WAIT, and prototype event_wakeup()
10575
10576 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10577
10578         * docs/WISHLIST: protocol between the driver and dumpers.
10579
10580 1999-02-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10581
10582         * server-src/amtoc.pl.in: output the datestamp of each dump, because
10583         amflush can flush the same disk multiple date.
10584
10585 1999-02-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10586
10587         * server-src/holding.h: declare struct holding_t.  Remove 
10588         declaration of insert_dirname, scan_holdingdisk.  Declare 
10589         new function free_holding_list.  pick_datestamp and 
10590         pick_all_datestamp now return (holding_t *).
10591         * server-src/holding.c (insert_dirname): new parameter holding_list
10592         where we add the name. Can add more than MAX_DIRS name.
10593         * server-src/holding.c (free_holding_list): new function to free
10594         a holding list.
10595         * server-src/holding.c (scan_holdingdisk): new parameter holding_list.
10596         * server-src/holding.c (pick_all_datestamp, pick_datestamp): return
10597         a list instead of a (char **).
10598         * server-src/find.c (search_holding_disk): use the list return by
10599         pick_all_datestamp.
10600         * server-src/amflush.c: use the list return by pick_datestamp.
10601         * server-src/amcleanupdisk.c (check_disks): use the list return by
10602         pick_all_datestamp.
10603
10604 1999-02-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10605
10606         * server-src/driverio.c (addfd): bug fixe.
10607
10608 1999-02-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
10609
10610         * client-src/sendbackup-gnutar.c: new regexp for SAMBA
10611         Reported by Grzegorz Mucha <grzegorz.mucha@solidex.com.pl>
10612
10613 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
10614
10615         * server-src/amtoc.pl.in: minor fixes for multi-tape runs
10616
10617 1999-02-17  Nicolas Mayencourt  <Nicolas.Mayencourt@cui.unige.ch>
10618
10619         * server-src/amtoc.pl.in: complete, backward-incompatible rewrite;
10620         command-line arguments changed
10621         * man/amtoc.8.in: ditto
10622
10623 1999-02-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
10624
10625         * changer-src/chg-multi.sh.in: minor portability changes
10626         * docs/TAPE.CHANGERS: originally by James da Silva
10627
10628 1999-02-17  Jean-Francois Dockes <dockes@cdkit.remcomp.fr>
10629
10630         * changer-src/chg-multi.sh.in: various portability changes and
10631         general fixes, particularly for multieject; new cycle mode
10632         * docs/TAPE.CHANGERS: detailed description of chg-multi
10633         * example/chg-multi.conf: updated; added reference to
10634         docs/TAPE.CHANGERS for details
10635
10636 1999-02-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10637
10638         * server-src/driverio.h: remove declaration of addfd.
10639         * server-src/driverio.c (addfd): 2 new arguments, readset and maxfd,
10640         don't use global variable.
10641         * server-src/driverio.c (startup_tape_process, startup_dump_process):
10642         call addfd with new argument.
10643
10644 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10645
10646         * server-src/driverio.c (startup_tape_process): new taper_program
10647         argument.
10648         * server-src/driverio.h: remove declaration of taper_program.
10649         * server-src/driver.c (main): declare taper_program.
10650         * server-src/driver.c: call startup_tape_process with the new 
10651         taper_program argument.
10652         * server-src/amflush.c (run_dumps): declare taper_program.
10653         * server-src/amflush.c (run_dumps): call startup_tape_process with 
10654         the new taper_program argument.
10655
10656 1999-02-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10657
10658         * server-src/driverio.c (startup_dump_process, startup_dump_processes):
10659         new dumper_program argument.
10660         * server-src/driverio.h: remove declaration of dumper_program.
10661         * server-src/driver.c: declare dumper_program.
10662         * server-src/driver.c: call startup_dump_process and
10663         startup_dump_processes with the new dumper_program argument.
10664
10665 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10666
10667         * server-src/list_dir.h: remove global variable dir_list, declare
10668         new function get_dir_list.
10669         * server-src/list_dir.c (get_dir_list): new function to return dir_list.
10670         * server-src/amindexd.c (opaque_ls): use get_dir_list.
10671
10672 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10673
10674         * server-src/holding.h: remove declaration of get_letter_from_user()
10675         and select_dir().
10676         * server-src/holding.c: remove function get_letter_from_user() and
10677         select_dir().
10678         * server-src/holding.c (pick_datestamp): return empty array instead
10679         of calling exit if no directory are found.
10680         * server-src/amflush.c (get_letter_from_user): new function copied
10681         from holding.c.
10682         * server-src/amflush.c (confirm): write a message and exit if no
10683         directory were found.
10684
10685 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10686
10687         * server-src/amflush.c (flush_holdingdisk): don't update the database
10688         when flushing a partial dump.
10689
10690 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10691
10692         * server-src/holding.h (get_dumpfile): new function
10693         * server-src/holding.c (get_dumpfile): new function to fill a 
10694         dumpfile_t struct from a holding file.
10695
10696 1999-02-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10697
10698         * server-src/amlabel.c: compiler warning: too many arguments for format
10699
10700 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10701
10702         * server-src/amlabel.c: remove the label from the tapefile in
10703         case it was already there (-f).
10704
10705 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10706
10707         * server-src/dumper.c: make sure holding files are not larger
10708         that chunksize.
10709
10710 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10711
10712         * server-src/amcleanupdisk.c: new program to scan and find temporary
10713         file on holding disks.
10714         * server-src/Makefile.am (libexec_PROGRAMS): add amcleanupdisk.
10715         * server-src/amcleanup.sh.in: call amcleanupdisk.
10716
10717 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10718
10719         * server-src/holding.c (pick_all_datestamp): new function to return
10720         all datestamp in the holding disks.
10721         * server-src/holding.h: declare pick_all_datestamp.
10722
10723 1999-02-13  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10724
10725         * server-src/diskfile.h (host_t): new start_t field.
10726         * server-src/diskfile.c (read_diskline): set start_t to 0.
10727         * server-src/driver.c (start_some_dumps): Don't start a dump if
10728         the host->start_t > now.
10729         * server-src/driver.c (start_some_dumps): set host->start_t to 15 sec
10730         in the future when starting a FILE_DUMP.
10731         * server-src/driver.c (dump_to_tape): set host->start_t to 15 sec in
10732         the future when starting a PORT_DUMP.
10733
10734 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
10735
10736         * server-src/amlabel.c (main): try to read just-written tape label
10737         back; if wrendmark overwrote the label, suggest using a
10738         non-rewinding device
10739         * tape-src/tapeio.c (tape_wrendmark): would not close tape device if 
10740         wrendmark failed
10741
10742 1999-02-10  Paul Bijnens  <Paul.Bijnens@lant.be>
10743
10744         * server-src/amoverview.pl.in: Y2K fix in output to user
10745         * server-src/amtoc.pl.in (print_info): ditto
10746
10747 1999-02-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
10748
10749         * client-src/sendsize.c (getsize_dump): do not redirect standard
10750         output of estimator to /dev/null if we HAVE_DUMP_ESTIMATE
10751
10752 1999-02-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
10753
10754         * NEWS: fix description of incronly: it won't really perform full
10755         backups
10756
10757         * NEWS: support for ufsdump -S, incronly strategy and new chunksize
10758         default
10759
10760         * server-src/conffile.c (init_holdingdisk_defaults, chunksize):
10761         default to 1Gb
10762         * example/amanda.conf.in: ditto
10763         * man/amanda.8.in: ditto
10764
10765         * configure.in (amanda_cv_dump_estimate): check for support for -S
10766         too, and define HAVE_DUMP_ESTIMATE as the estimate switch, if any
10767         * client-src/sendsize.c (re_size): new regexps for Solaris ufsdump
10768         -S and Samba `du'.  Restrict regexp that matched Digital Unix'
10769         dump -E so that it doesn't match smbclient's output any more.
10770         Move some regexps around, and only define them if the corresponding
10771         dump program is available
10772
10773 1999-02-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
10774
10775         * example/amanda.conf.in: document the behavior of relative
10776         exclude-list files
10777         * man/amanda.8.in: ditto
10778
10779         * man/amanda.8.in (exclude list): the GNU tar flag is
10780         --exclude-from, not --exclude-list
10781         Reported by Tom Schutter <tom@platte.com>
10782
10783         * client-src/sendbackup-gnutar.c (re_table): ignore `session request 
10784         to' message printed by Samba 2.0.0
10785
10786 1999-01-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
10787
10788         * man/amanda.8.in (comprate): it is not used when there is history
10789         information; useful for large disks that compress little
10790         Reported by job bogan <job@piquin.uchicago.edu>
10791
10792         * Makefile.am: select which SUBDIRS to descend to here
10793         * client-src/Makefile.am: removed if WANT_CLIENT
10794         * tape-src/Makefile.am: removed if WANT_TAPE
10795         * server-src/Makefile.am: removed if WANT_SERVER
10796         * changer-src/Makefile.am: ditto
10797         * restore-src/Makefile.am: removed if WANT_RESTORE
10798         * recover-src/Makefile.am: removed if WANT_RECOVER
10799         * amplot/Makefile.am: removed if WANT_AMPLOT
10800
10801 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10802
10803         * NEWS: chg-scsi ports, Samba 2.0.0 support and SECURITY API
10804
10805         * configure.in (USE_AMANDAHOSTS): enable by default
10806         * example/config.site: ditto
10807         * docs/INSTALL: ditto
10808         * NEWS: ditto
10809
10810         * docs/INSTALL: updated URLs for GNU packages and Samba
10811         * docs/SAMBA: note that Samba 2.0.0 is supported
10812
10813         * docs/SYSTEM.NOTES (HP/UX): what does `Link severed' mean?
10814
10815 1999-01-27  Thomas Hepper <th@ant.han.de>
10816         * changer-src/scsi-changer-driver.c SCSI_ReadElementStatus
10817         A while loop has to start with while, not if .....
10818
10819 1999-01-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
10820
10821         * Makefile.am (EXTRA_DIST): sst was added within contrib
10822
10823         * ltmain.sh, ltconfig, libtool.m4i: updated from libtool CVS
10824         * configure.in: AC_SUBST LIBTOOL_DEPS
10825         * Makefile.am: regen libtool if neded
10826
10827         * Makefile.am: declare that we want automake 1.4 and we're a foreign 
10828         package
10829
10830         * configure.in: require autoconf 2.13, and use
10831         AC_VALIDATE_CACHED_SYSTEM_TUPLE instead of
10832         AC_VALIDATE_CACHE_SYSTEM_TYPE
10833         * config/acinclude.m4i: removed AC_VALIDATE_CACHE_SYSTEM_TYPE
10834
10835         * configure.in (SAMBA_CLIENT): updated check for smbclient to
10836         support Samba 2.0.0
10837
10838 1999-01-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
10839
10840         * server-src/amdump.sh.in (runuser): set to LOGNAME if defined, and
10841         to the output of whoami otherwise
10842         Reported by Tom Schutter <tom@platte.com>
10843
10844 1999-01-26  Thomas Hepper <th@ant.han.de>
10845         * Makefile.am Added sst driver files to EXTRA_DIST
10846
10847 1999-01-26      Thomas Hepper <th@ant.han.de>   
10848         * changer-src/Makefile.am added to LDADD 
10849         ../tape-src/libamtape.$(LIB_EXTENSION)
10850         * changer-src/chg-scsi.c If statfile is not set try to get the info
10851         about the current loaded tape direct from the changer.
10852         Fixed debug output for the eject value if > 1
10853         * changer-src/libscsi.h Prototype for GetCurrentSlot
10854         * changer-src/scsi-aix.c If the Device we open is not a changer or tape
10855         return NULL, so that the above function can abort. New eject per mtio ioctl.
10856         * changer-src/scsi-bsd.c see scsi-aix.c
10857         * changer-src/scsi-linux.c see scsi-aix.c
10858         * changer-src/scsi-hpux_new.c see scsi-aix.c
10859         * changer-src/scsi-irix.c see scsi-aix.c
10860         * changer-src/scsi-solaris.c see scsi-aix.c and added a retry loop for
10861         the execution of SCSI commands.
10862         * changer-src/scsi-changer-driver.c New Function SCSI_ReadElementStatus
10863         split ReadElementStatus in device and device independed part
10864         New EXB120ElementStatus, renamed ReadElementStatus in GenericElementStatus
10865         added EXB 120 and DLT7000 to the devices list.
10866         Removed the linked list for the element status. Now every element
10867         type has its own array allocated in the *ElementStatus functions.
10868         Check in the functions which sends SCSI commands if the fd is able to
10869         receive SCSI commands.
10870         In GenericEject check which type of eject to use (ioctl/SCSI)
10871         New GetCurrentSlot, try to get the info about the loaded tape direct from
10872         the changer.
10873         * changer-src/scsi-chio.c Add function GetCurrentSlot (not well tested yet)
10874         * changer-src/scsi-defs.h Added missing decl. in MediumTransportElementDescriptor_T
10875         for LITTLE_ENDIAN_BITFIELDS
10876         new field from in ElementInfo_T
10877         * changer-src/sci-hpux.c EMpty function GetCurrentSlot, do we still need scsi-hpux.c ?
10878         * docs/TAPE.CHANGERS added some notes for HP-UX, expanded list of tested devices
10879         
10880 1999-01-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10881
10882         * server-src/conffile.c (init_defaults): default value of runspercycle
10883         is 0.
10884         * server-src/amadmin.c (balance): use default value of runspercycle.
10885         * server-src/planner.c (main): use default value of runspercycle.
10886
10887 1999-01-22  Martin Apel <apel@tecmath.de>
10888
10889         * example/amanda.conf.in: explanation of incronly strategy.
10890         * man/amanda.8.in: explanation of incronly strategy.
10891         * server-src/amadmin.c: recognize incronly strategy
10892         * server-src/conffile.c: read the incronly strategy in the
10893         configuration file.
10894         * server-src/conffile.h: definition of DS_INCRONLY
10895         * server-src/planner.c: Do planning for incronly strategy:
10896         If the force flag is set perform a full dump, otherwise do
10897         normal incremental processing but avoid full dumps.
10898         * server-src/tapefile.c: Bugfix so only tapes which match
10899         the regular expression for tape labels in the current 
10900         configuration are considered for writing.
10901
10902 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
10903
10904         * common-src/bsd-security.c (check_user): there was no uid variable
10905         here; replace with getuid()
10906
10907 1999-01-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
10908
10909         * server-src/planner.c (output_scheduleline): removed `or historical
10910         data' from `no estimate' message; historical data doesn't matter any 
10911         more
10912         Reported by Giorgos Vlachos <Giorgos.Vlachos@eurodyn.com>
10913
10914 1999-01-20  Todd Pfaff  <pfaff@mcmaster.ca>
10915         
10916         * client-src/sendbackup-gnutar.c: more Samba 2.0.0 messages
10917
10918         * client-src/sendbackup-gnutar.c: new Samba 2.0.0 message 
10919
10920 1999-01-19  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10921
10922         * server-src/amflush.c: use ap_snprintf instead of snprintf.
10923         * server-src/amflush.c: rotation of new amflush log was broken.
10924
10925 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10926
10927         * server-src/reporter.c: always call output_stats(), the problem is
10928         that degraded_mode is set if amflush fills the tape.
10929
10930 1999-01-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10931
10932         * server-src/amflush.c: write debuging info to $logdir/amflush
10933         instead of /dev/null if we run in background.
10934         * server-src/amcleanup.sh.in: rename $logdir/amflush.
10935
10936 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
10937
10938         * server-src/dumper.c (make_tapeheader): explicitly compare
10939         srvcompress against srvcomp_none instead of assuming that
10940         srvcomp_none's value is 0.
10941
10942 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
10943
10944         * server-src/dumper.c: move max() macro to top of file.  Add min()
10945         * server-src/dumper.c (databuf_write): use min() to determine the
10946         copy size
10947         * server-src/dumper.c (databuf_flush): more clearly calculate the
10948         buffer offset in the write loop
10949
10950 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
10951
10952         * server-src/dumper.c (databuf_write): Egads!  Also increment the
10953         source pointer doing a partial buf copy
10954
10955 1999-01-14  Mike Grupenhoff <kashmir@munge.com>
10956
10957         * common-src/bsd-security.c (check_user): use getpwnam(CLIENT_LOGIN)
10958         instead of getpwuid(getuid()), in case our caller has not done
10959         the setuid().
10960
10961 1999-01-12  Mike Grupenhoff <kashmir@munge.com>
10962
10963         * server-src/dumper.c (add_msg_data): properly check for half-sent
10964         msg lines.
10965
10966 1999-01-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10967
10968         * server-src/amstatus.pl.in: fix a divide by zero error.
10969
10970 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
10971
10972         * server-src/dumper.c (add_msg_data): clarify and comment.  Remove
10973         'len' arg.  Const 'str' arg.
10974         * server-src/dumper.c (do_dump): compresspid and indexpid should
10975         be pid_t's.  Also, remove len from add_msg_data call.
10976
10977 1999-01-11  Mike Grupenhoff <kashmir@munge.com>
10978
10979         * server-src/fileheader.c (parse_file_header): const the buffer
10980         argument
10981         * server-src/fileheader.h: update parse_file_header proto for const
10982         change
10983
10984 1999-01-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10985
10986         * server-src/amstatus.pl.in: report the current dump when reporting
10987         the busy time of each dumper.
10988
10989 1998-12-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
10990
10991         * server-src/dumper.c: open temporary holding file with O_TRUNC flags
10992         and with mode 0600.
10993
10994 1998-12-28  John R. Jackson  <jrj@purdue.edu>
10995
10996         * server-src/reporter.c: do not drop core generating labels if the
10997         tape label is not defined, e.g. in degraded mode (compliments of
10998         Jan L. Peterson <jlp@Part.NET>).
10999
11000 1998-12-28  John R. Jackson  <jrj@purdue.edu>
11001
11002         * server-src/amtape.c: initialize two strings to NULL to avoid a
11003         core dump, compliments of G. Allen Morris III <gam3@acm.org>.
11004
11005 1998-12-27  John R. Jackson  <jrj@purdue.edu>
11006
11007         * man/amreport.8.in: remove reference to 8.5x11 paper size for the
11008         3-hole binder.
11009
11010 1998-12-27  John R. Jackson  <jrj@purdue.edu>
11011
11012         * example/3hole.ps: new lbl-templ file for 3 hole punch reports
11013         * example/Makefile.am: add 3hole.ps
11014
11015 1998-12-22  Thomas Hepper <th@icem.de>
11016
11017         * docs/TAPE.CHANGERS Update notes about chg-scsi
11018         * changer-src/chg-scsi.c Added new config option tapestatus,
11019         if set the tape log pages are written to this file.
11020         changed parameter list for get_clean_state/ask_clean,
11021         * changer-src/libscsi.h changed parameter list for get_clean_state
11022         * changer-src/scsi-changer-driver.c Added new functions OpenDevice
11023         CloseDevice LookupDevice. 
11024         Added new functions to read and decode the Tape LOG Pages.
11025         Tape Eject and ready check is now done by SCSI calls
11026
11027         * changer-src/scsi-aix.c
11028         * changer-src/scsi-bsd.c
11029         * changer-src/scsi-hpux_new.c
11030         * changer-src/scsi-hpux.c
11031         * changer-src/scsi-irix.c
11032         * changer-src/scsi-solaris.c
11033         Changed all SCSI_OpenDevice/SCSI_CloseDevice functions so that they
11034         fit to the new OpenDevice/CloseDevice calls. Removed mtio.h from 
11035         includes, remove Tape_Ready and Tape_Eject
11036         * changer-src/scsi-chio.c
11037         * changer-src/scsi-defs.h
11038
11039         For all changer-src files, removed tabs, run indent (from xemacs)
11040         Added emacs variables to the end (no tab, gnu style)
11041
11042 1998-12-21  John R. Jackson  <jrj@purdue.edu>
11043
11044         * man/amanda.8.in: document the lbl-templ tapetype option.
11045
11046 1998-12-21  John R. Jackson  <jrj@purdue.edu>
11047
11048         * man/amreport.8.in: fix formatting problem.
11049
11050 1998-12-20  John R. Jackson  <jrj@purdue.edu>
11051
11052         * configure.in: define NEED_RESETOFS unless LFS (large file system
11053         support) is available.
11054         * config/acconfig.h: add NEED_RESETOFS tag.
11055         * server-src/taper.c: only reset the tape offset if NEED_RESETOFS
11056         is defined and only once per 2 GBytes.
11057
11058 1998-12-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
11059
11060         * server-src/amlabel.c (main): datestamp for new tapes is now 0
11061         * server-src/tapefile.c (reusable_tape): recognize datestamp 0 as
11062         reusable
11063         * man/amlabel.8.in: document that tapes are added to tapelist
11064
11065 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
11066
11067         * server-src/dumper.c (runcompress): new function.  Given an output
11068         file descriptor, inserts a gzip/compress in front of that descriptor.
11069         * server-src/dumper.c (do_dump): if srvcompress is true, insert
11070         the gzip (using runcompress) in front of the output fd instead
11071         of the input fd.  Only do this after the tapeheader has been written.
11072
11073 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
11074
11075         * server-src/dumper.c (startup_chunker): new function.  When doing
11076         chunking, fork a piped subprocess that reads in a fileheader and
11077         a data stream, and writes out the headered, chunked files.  This
11078         allows us to treat unchunked, chunked, and port-dump dumps exactly
11079         the same.
11080         * server-src/dumper.c (main): file-dump: if chunksize > 0,
11081         call startup_chunker for our outfd.  Otherwise, open the
11082         holding file directly.
11083
11084 1998-12-19  Mike Grupenhoff <kashmir@munge.com>
11085
11086         * server-src/dumper.c (struct databuf): add a chunk_size member,
11087         the size of each chunk.  Remove chunksize global.
11088         * server-src/dumper.c (main): add a chunksize local var
11089         * server-src/dumper.c (databuf_init): init the chunk_size member
11090         with the same value as split_size
11091         * server-src/dumper.c (databuf_flush): increment db->split_size
11092         by the amount in db->chunk_size instead of the global chunksize
11093
11094 1998-12-19  John R. Jackson  <jrj@purdue.edu>
11095
11096         * server-src/amstatus.pl.in: instead of just displaying why no
11097         dumpers were busy, display reason(s) why N+1 were not busy.
11098
11099 1998-12-18  John R. Jackson  <jrj@purdue.edu>
11100
11101         * server-src/amstatus.pl.in: add statistics about how much time
11102         taper and each dumper is busy, how much time N dumpers are busy
11103         and why no dumpers were busy.
11104
11105 1998-12-18  Mike Grupenhoff <kashmir@munge.com>
11106
11107         * server-src/dumper.c (struct databuf): add 'filename', 'filename_seq',
11108         and 'split_size' members to replace the equivalent globals.  Nuke
11109         those globals.
11110         * server-src/dumper.c (databuf_init): add 'filename' and 'split_size'
11111         args to init those members.  Init filename_seq to 0.
11112         * server-src/dumper.c (main): declare and init the databuf here
11113         * server-src/dumper.c (databuf_flush): refer to split_size, filename,
11114         and filename_seq in the databuf instead of the globals.
11115         * server-src/dumper.c (do_dump): now takes a databuf instead of an
11116         output file descriptor.
11117
11118 1998-12-18  John R. Jackson  <jrj@purdue.edu>
11119
11120         * server-src/amstatus.pl.in: fix two perl warnings.
11121
11122 1998-12-18  John R. Jackson  <jrj@purdue.edu>
11123
11124         * server-src/amstatus.pl.in: fix two minor typos.  Add percentage
11125         display to the summary comparing real and estimated size and real
11126         versus total estimate (showing how well the estimates are doing and
11127         a rough guess at how far along the run is).  Also the percentage of
11128         total holding disk space in use.
11129
11130 1998-12-18  John R. Jackson  <jrj@purdue.edu>
11131
11132         * server-src/amstatus.pl.in: take the --file argument as is if it
11133         is an absolute path.
11134
11135 1998-12-18  John R. Jackson  <jrj@purdue.edu>
11136
11137         * server-src/driver.c: call short_dump_state() one last time before
11138         quitting so amstatus gets a last good status.  Tell taper to quit
11139         after the dumpers since it writes more information to the amdump
11140         file (helps prevent mixed messages).
11141
11142 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
11143
11144         * server-src/dumper.c (databuf_flush): return 0 on success
11145
11146 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
11147
11148         * server-src/dumper.c (databuf_flush): new function.  Writes
11149         the contents of the databuf out to its backing file, doing splitting
11150         if necessary
11151         * server-src/dumper.c (databuf_write): call databuf_flush when the
11152         databuf fills up.  Fully complete all writes (no short writes)
11153         * server-src/dumper.c (do_dump): databuf_write now guarantees complete
11154         writes, so remove retry loop.  Call databuf_flush() when eof is hit.
11155         Do not close datafd on eof, because our caller (main) passed it to
11156         us and therefore owns it (and main does close it again).
11157
11158 1998-12-17  Mike Grupenhoff <kashmir@munge.com>
11159
11160         * server-src/dumper.c (databuf_init): new function, initializes
11161         a struct databuf.
11162         * server-src/dumper.c (update_dataptr): rename to databuf_write,
11163         and have it take a buffer and a size, and return how many bytes
11164         of the buffer were written
11165         * server-src/dumper.c (do_dump): use databuf_init to initialize db.
11166         Use databuf_write to add incomign data to the databuf.
11167         Make size1 and size2 local to the blocks they are used in.
11168
11169 1998-12-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11170
11171         * common-src/Makefile.am (noinst_DATA): removed; bogus
11172         * config/config.guess, config/config.sub: config/install-sh,
11173         config/mkinstalldirs: updated to current pre-2.13 autoconf CVS tree
11174         * patches/autoreconf.patch: removed
11175         * config/libtool/libtool.m4: renamed to config/libtool.m4i
11176         * config/acinclude.m4: renamed to config/acinclude.m4i
11177         * config/Makefile.am (EXTRA_DIST): updated to reflect changes
11178         * autogen: build config/acinclude.m4  by concatenating acinclude.m4i
11179         and libtool.m4i
11180         * configure.in: no longer test whether libtool is installed; require 
11181         newer autoconf
11182         * config/ltconfig, config/ltmain.sh, config/libtool.m4i: updated to
11183         libtool 1.2d
11184         * amplot/Makefile.am (EXTRA_DIST): no longer needed
11185         * changer-src/Makefile.am (chg_scsi_SOURCE): move scsi-defs.h closer 
11186         to the beginning of the list
11187         * docs/INSTALL: fixed URL to gnuplot; recommend autoconf and
11188         automake from CVS
11189
11190 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11191
11192         * common-src/genversion.c (main): rip out krb4 defines.  If we
11193         need this info, each driver will have to do it individually.
11194
11195 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11196
11197         * server-src/conffile.c: remove KRB4_AUTH, BSD_AUTH tokens, auth
11198         element from dumptype_t, and get_auth() lookup func.  Add
11199         security_driver to dumptype_t and parse value of AUTH keyword
11200         as a string.
11201         * server-src/conffile.h: nuke auth_t.  Remove auth_t auth, int s_auth
11202         from typetype_t; add char *security_driver, int s_security_driver.
11203         * server-src/diskfile.c: nuke auth_t auth from disk_t, add
11204         char *security_driver.  Inherit security_driver from the dumptype_t
11205         for this disk.
11206         * server-src/diskfile.h: ditto
11207         * server-src/amadmin.c (disklist_one): output the security-driver
11208         string in place of the auth type
11209         * server-src/amcheck.c (start_client_checks, handle_response):
11210         enum type hostp->disks->auth is gone.  check the string in the
11211         security_driver for this disk for krb4 auth.
11212         * server-src/planner.c (getsize, handle_result): check the string
11213         in hostp->disks->security_driver for the auth type.
11214
11215 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11216
11217         * server-src/amindexd.c: no need to include protocol.h
11218
11219 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11220
11221         * server-src/amindexd.c: remove duplication inclusion of version.h.
11222         Include tapefile.h to get read_tapelist() prototype
11223         * server-src/amindexd.c (build_disk_table): remove a plethora of
11224         unused local vars
11225         * server-src/amindexd.c (main): rename security_ok() call to
11226         check_security(), and define check_security() locally.  security_ok
11227         will disappear when the new security api goes in
11228
11229 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11230
11231         * server-src/changer.c (changer_label): make it return void
11232         to keep gcc warning about control reaching the end of a nonvoid
11233         function.
11234         * server-src/changer.c: update changer_label's proto for previous
11235
11236 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11237
11238         * common-src/amanda.h: define SET, CLR, ISSET macros for dealing
11239         with bitmasks
11240         * server-src/amadmin.c: use the bitmask macros for setting
11241         and clearing the bits in the infofile command word
11242         * server-src/planner.c: ditto.  This fixes a bug in the code that
11243         tried to clear FORCE_FULL with an xor expression that was
11244         never assigned (x ^ FORCE_FULL)
11245
11246 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11247
11248         * common-src/bsd-security.c (bsd_sendpkt): cast uid's to long and
11249         use %ld to print them.
11250
11251 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11252
11253         * common-src/dgram.h: mark dgram_cat with gcc's printf attribute
11254         * common-src/packet.h: ditto for pkt_cat
11255         * common-src/security.h: likewise for security_seterror
11256
11257 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11258
11259         * common-src/error.c (error): const the format arg
11260         * common-src/amanda.h: mark error with gcc's noreturn attribute, and
11261         const its format arg
11262
11263 1998-12-14  Mike Grupenhoff <kashmir@munge.com>
11264
11265         * common-src/debug.c (debug_printf): const the format arg
11266         * common-src/amanda.h: const debug_printf's format arg
11267
11268 1998-12-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
11269
11270         * configure.in (BSD SCSI): test ... -a ... is not portable, and less 
11271         so when written test ... -a test ... :-)
11272
11273 1998-12-14  Thomas Hepper <th@icem.de>
11274
11275         * changer-src/Makefile.am Added scsi-bsd.c
11276         * changer-src/chg-scsi.c Initialize *scsitapedevice
11277         * changer-src/scsi-changer-driver.c remove LITTLE_ENDIAN_BITFILEDS
11278         defenition
11279         changed RequestSense to pRequestSense (there is a function 
11280         called RequestSense)
11281         changed error handling in ResetStatus (fix for IRIX)
11282         FIxed length handling for the pages in ReadElemtStatus
11283         * changer-src/scsi-chio.c get_clean_state only returns 0, the
11284         ioctl to get the clean flag is not portable ;-(
11285         changed all (f)printf to dbprintf
11286
11287         * changer-src/scsi-defs.h ElementStatusData_T is for BIG and
11288         LITTLE endian the same ...
11289
11290         * changer-src/scsi-bsd.c New file for FreeBSD
11291
11292         * changer-src/scsi-irix.c Clean up in the return handling
11293         changed RequestSense to pRequestSense
11294         Removed unused function TapeStatus
11295
11296         * changer-src/scsi-linux.c changed RequestSense to pRequestSense
11297         Removed unused function TapeStatus
11298
11299         * changer-src/scsi-solaris.c changed RequestSense to pRequestSense
11300         Removed unused function TapeStatus
11301
11302         * config/acconfig.h added def for BSD_LIKE_SCSI
11303
11304         * configure.in Added check for ENDIAN type AC_C_BIGENDIAN
11305         added sys/scsiio.h and check for BSD SCSI interface
11306
11307 1998-12-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11308
11309         * server-src/driver.c (handle_dumper_result): rename .tmp files
11310         when receiving ABORT_FINISHED.
11311
11312 1998-12-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11313
11314         * server-src/driver.c (start_some_dumps): Use the holdp returned
11315         by find_diskspace for a big_dumper in degraded mode.
11316
11317 1998-12-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
11318
11319         * docs/SYSTEM.NOTES (Ultrix): recommend gcc or egcs
11320         (IRIX): patch for xfsdump estimates
11321
11322 1998-12-10  John R. Jackson  <jrj@purdue.edu>
11323
11324         * common-src/amflock.c (main): remove call set_pname() for
11325         CONFIGURE_TEST since error.o is not linked in.
11326
11327 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
11328
11329         * server-src/dumper.c (struct databuf): add a fd member - the file
11330         descriptor that we are buffering
11331         * server-src/dumper.c (update_dataptr): remove
11332         outf arguments, use the fd in the passed databuf.  Return 0 on
11333         success, and -1 on error.
11334         * server-src/dumper.c (update_dataptr): rework and comment the
11335         chunk code a bit.  Get rid of the cont_filename global.
11336         * server-src/dumper.c (do_dump): init the fd member of the databuf
11337         * server-src/dumper.c (write_dataptr): fold back into update_dataptr
11338
11339 1998-12-10  John R. Jackson  <jrj@purdue.edu>
11340
11341         * common-src/amflock.c (main): report CONFIGURE_TEST error messages to
11342         stderr.
11343
11344 1998-12-10  John R. Jackson  <jrj@purdue.edu>
11345
11346         * common-src/amflock.c (main): call set_pname() for CONFIGURE_TEST.
11347         * configure.in: do not set up pname global for lnlock CONFIGURE_TEST.
11348
11349 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
11350
11351         * server-src/dumper.c (update_dataptr): remove pointless backups
11352         of the databuf and associated vars when creating next chunk.
11353         Remove duplicate setting of file.cont_filename.
11354
11355 1998-12-10  Mike Grupenhoff <kashmir@munge.com>
11356
11357         * server-src/dumper.c (main): reuse outfd to clear the open files
11358         passed to us.  Nuke the fd var.
11359         * server-src/dumper.c (update_dataptr): nuke 'split' argument - it
11360         was always set to 1
11361
11362 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
11363
11364         * server-src/dumper.c (write_tapeheader): kill dead code
11365         * server-src/dumper.c (main): remove useless amfree of datestamp.
11366         Add missing break to 'default' case in command loop.
11367         * server-src/dumper.c: kill databuf, spaceleft, and dataptr globals.
11368         Create a 'struct databuf' that holds all three.
11369         * server-src/dumper.c (write_dataptr, update_dataptr): make
11370         these take a 'struct databuf *' as an argument, and have them
11371         operate on its contents instead of the aforementioned globals
11372         * server-src/dumper.c (do_dump): declare a 'struct databuf' here.
11373         Make it static, because it's large.  Use it instead of the
11374         globals.
11375
11376 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
11377
11378         * server-src/dumper.c (main): rework the command loop a bit.
11379         Consolidate all duplicated error cleanup into one place at the
11380         end of the loop after each command has been processed.  Exit
11381         with exit(), not return.
11382
11383 1998-12-09  Mike Grupenhoff <kashmir@munge.com>
11384
11385         * server-src/dumper.c (main, getcmd, write_dataptr): kill argc and
11386         argv globals, pass them as arguments to getcmd() via struct cmdargs.
11387         * server-src/dumper.c (getcmd): make the command lookup table driven.
11388         * server-src/dumper.c (write_dataptr): restructure the command
11389         logic a bit to hopefully clarify things.
11390
11391 1998-12-09  Henning P. Schmiedehausen  <henning@tanstaafl.de>
11392
11393         * client-src/sendbackup.c (parse_options): Added check whether the
11394         pathname of the exclude file is relative and if yes, use the
11395         mountpoint of the filesystem as anchor.  So you can put your exclude
11396         file in the root of the filesystem to backup.
11397         * client-src/sendsize.c (getsize_gnutar): added the same check as
11398         above so sendsize uses the same exclude file.
11399
11400 1998-12-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11401
11402         * server-src/holding.c (size_holding_files): return size in KB.
11403         * server-src/driver.c (adjust_diskspace): use KB returned by
11404         size_holding_files.
11405         * server-src/driver.c: rename .tmp file
11406         * server-src/dumper.c: do not rename .tmp file. let the driver do it.
11407
11408 1998-12-09  John R. Jackson  <jrj@purdue.edu>
11409
11410         * common-src/stream.c (stream_server): do not request a reserved port
11411         if we are root but PORTRANGE is defined.  Also, clean up the code
11412         and make sure *portp is -1 on all error returns.
11413
11414 1998-12-08  John R. Jackson  <jrj@purdue.edu>
11415
11416         * Makefile.am: add the user-contributed area.
11417         * contrib/README: describe the user-contributed area.
11418         * contrib/dbbackup.README: README for Oracle database backup system.
11419         * contrib/dbbackup.ksh: Oracle database backup system wrapper.
11420         * contrib/dbbackup.sql: Oracle database backup system setup commands.
11421         * contrib/dbbackup.tcl: Oracle database backup system main body.
11422
11423 1998-12-08  John R. Jackson  <jrj@purdue.edu>
11424
11425         * amplot/Makefile.am: fix install rule when DESTDIR is non-null,
11426         compliments of Henning P. Schmiedehausen <hps@tanstaafl.de>.
11427
11428 1998-12-08  John R. Jackson  <jrj@purdue.edu>
11429
11430         * configure.in: fix reversed code for --with-amrecover, compliments
11431         of Yar Tikhiy <yar@radio-msu.net>.
11432
11433 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11434
11435         * common-src/fileheader.h (dumpfile_t): new is_partial field.
11436         * common-src/fileheader.c: add codee for new is_partial field.
11437         * server-src/holding.h (rename_tmp_holding): declare new function.
11438         * server-src/holding.c (rename_tmp_holding): new function.
11439         * server-src/dumper.c (do_dump): return 1 if succeded, otherwise 0.
11440         * server-src/dumper.c (main): open .tmp when dumping to disk, 
11441         rename .tmp if do_dump return 1.
11442         * server-src/dumper.c (update_dataptr): open .tmp for new chunk.
11443         * server-src/amstatus.pl.in (dump_size): return size of .tmp file.
11444
11445 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
11446
11447         * server-src/amtape.c (main, usage): make command lookup and usage
11448         table-driven
11449
11450 1998-12-07  Mike Grupenhoff <kashmir@munge.com>
11451
11452         * server-src/amadmin.c: make command lookup and usage table-driven
11453         * server-src/amadmin.c (balance, tape, bumpsize): add
11454         argc/argv arguments to make them like the rest
11455         * server-src/amadmin.c (show_version): new function, implements
11456         the version command, so it is done like the other commands
11457         * server-src/amadmin.c (main): iterate through cmdtab[] when
11458         looking up the command, instead of a huge if/then/else
11459         * server-src/amadmin.c (usage): iterate through cmdtab[] when
11460         displaying usage strings.  Display the "disklist" usage string.
11461
11462 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11463
11464         * config/acconfig.h: add "#undef HAVE_WRITEV_DECL".
11465
11466 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11467
11468         * NEWS: document new force-bump, force-no-bump and unforce-bump
11469         command in amadmin.
11470
11471 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11472
11473         * server-src/holding.c (size_holding_files): new function to
11474         return the sum of the size of all chunk of an image.
11475         * server-src/holding.h (size_holding_files): declare.
11476         * server-src/driver.c (adjust_diskspace): use size_holding_files
11477         instead of doing a stat of only the first chunk.
11478
11479 1998-12-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11480
11481         * server-src/amadmin.c: new force-bump, force-no-bump and unforce-bump
11482         command.
11483         * man/amadmin.8.in: document them.
11484
11485 1998-12-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
11486
11487         * docs/FAQ (large filesystems): fixed reference to results missing
11488         (results missing): updated to 64Kb UDP packets
11489
11490 1998-12-04  Mike Grupenhoff <kashmir@munge.com>
11491
11492         * common-src/amanda.h: implement WIFSIGNALED() if not already
11493         defined
11494         * server-src/amcheck.c: ream out compat definitions of WEXITSTATUS(),
11495         WTERMSIG(), and WIFSIGNALED().  These are already handled in amanda.h
11496         * server-src/changer.c: ditto
11497
11498 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
11499
11500         * common-src/bsd-security.c (recv_security_ok): only check for
11501         a reserved port for REQ packets
11502
11503 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
11504
11505         * common-src/bsd-security.c (recvpkt_callback): only compare
11506         the sin_addr and sin_port fields in the sockaddr when determining
11507         what handle an incoming packet belongs to.
11508         * common-src/bsd-security.c (pkthdr2str): use %s for the handle,
11509         since it's a string.
11510
11511 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
11512
11513         * common-src/bsd-security.c (bsd_sendpkt): newline-terminate
11514         the 'SECURITY USER' line in the packet
11515         * common-src/bsd-security.c (check_user): fix many bugs
11516         in the USE_AMANDAHOSTS case
11517
11518 1998-12-03  Mike Grupenhoff <kashmir@munge.com>
11519
11520         * configure.in: AC_REPLACE_FUNCS(writev)
11521
11522 1998-12-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11523
11524         * server-src/infofile.h: rename PLANNER_FORCE to FORCE_FULL
11525         * server-src/planner.c: rename PLANNER_FORCE to FORCE_FULL
11526         * server-src/amadmin.c: rename PLANNER_FORCE to FORCE_FULL
11527
11528 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11529
11530         * config/acconfig.h: add KRB5_SECURITY.  Update comment above
11531         krb4 define to make clear that they are for krb4
11532
11533 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11534
11535         * configure.in: if we're doing krb4 and -lcom_err is there, pull
11536         it in
11537         * configure.in: implement --with-krb5-security.
11538
11539 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11540
11541         * common-src/dgram.c (dgram_cat): now can take printf-style
11542         arguments
11543         * common-src/dgram.g (dgram_cat): update prototype
11544
11545 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11546
11547         * common-src/bsd-security.c: wrap entire file in #ifdef BSD_SECURITY
11548         * common-src/bsd-security.c (bsd_connect): catch up with
11549         security interface changes - upper layer now allocates our handle
11550         Also, pass up useful error message about why connects failed
11551         via the handle we are given
11552         * common-src/bsd-security.c (gethandle): rename to inithandle,
11553         since we are now passed the handle's memory.  No need to allocate
11554         memory or initialize the error msg pointer
11555         * common-src/bsd-security.c (bsd_close): now an empty function - no
11556         memory to free
11557         * common-src/bsd-security.c (recvpkt_callback): allocate the handle
11558         before calling inithandle() (nee gethandle()).
11559         * common-src/bsd-security.c (stream_read_callback): put
11560         strerror(errno) in the handle's error buffer before passing a
11561         read error up to the caller
11562
11563 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11564
11565         * common-src/krb5-security.c: new stub file that pulls in the
11566         krb5 bits from the amanda-krb-2 tree if KRB5_SECURITY is
11567         defined
11568
11569 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11570
11571         * common-src/base64.{c,h}: new files, implement base64 encoding
11572         and decoding.  Implementation based on routines in bind, and so
11573         copyright is held by ISC and IBM (but is BSD-like).
11574
11575 1998-12-02  Mike Grupenhoff <kashmir@munge.com>
11576
11577         * common-src/security.h: add 'handlesize' to the driver struct, also
11578         make the connect function pointer return int and take a handle
11579         argument
11580         * common-src/security.h (security_connect): addd a 'const char **'
11581         errmsg argument for returning connect errors
11582
11583 1998-12-01  John R. Jackson  <jrj@purdue.edu>
11584
11585         * server-src/amcheck.c: make -t mean do the tape checks, add new -l
11586         option for doing just the local server (non-tape) checks.  Have -w
11587         turn on -t.  Have -cs (or -sc) do both server and client checks.
11588         * man/amcheck.8.in: document above changes and clean up some minor
11589         formatting issues.
11590
11591 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
11592
11593         * common-src/event.c (release): nuke bogus comment about signal
11594         handler release
11595         * common-src/event.c (event_loop): move the reentrancy assert
11596         after the empty queue check.  Otherwise, calling event_loop()
11597         with an empty event queue would cause the entry count to get
11598         out of sync.  Also, on exit, assert that the entry count has
11599         gone to 0
11600         * common-src/event.c (event_loop): fix bogus comment about event
11601         removal
11602
11603 1998-12-01  Mike Grupenhoff <kashmir@munge.com>
11604
11605         * common-src/arglist.h: implement arglist_function3()
11606
11607 1998-11-30  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11608
11609         * server-src/driver.c (start_some_dumps): In degraded mode,
11610         a big dumper should do high priority dump before low priority.
11611         * server-src/driver.c (sort_by_priority_reversed): sort by
11612         time if priority is equal.
11613
11614 1998-11-28  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11615
11616         * server-src/infofile.h: declare FORCE_BUMP and FORCE_NO_BUMP
11617         as command.
11618         * server-src/amadmin.c (force_one,unforce_one,info_one): work
11619         with info.command with bit operator.
11620         * server-src/planner.c (setup_estimate): work with info.command
11621         with bit operator, support for FORCE_BUMP and FORCE_NO_BUMP command.
11622
11623 1998-11-27  Thomas Hepper    <th@icem.de>
11624
11625         * changer-src/scsi-aix.c Some changes in the error handling in
11626         scsi command execution
11627         * changer-src/scsi-changer-driver.c More debug prints.
11628         removed Endian16/Endian24 (replaced with macros)
11629         * changer-src/scsi-chio.c make get_clean_state work on linux
11630         * changer-src/scsi-defs.h  added macros for converting from/to
11631         SCSI CDB MSB type
11632         * docs/TAPE.CHANGERS add note about AIX and chg-scsi
11633
11634 1998-11-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11635
11636         * server-src/amadmin.c(export_one): export the last_level and
11637         consecutive_runs field.
11638         * server-src/amadmin.c(import_one): import the last_level and
11639         consecutive_runs field.
11640
11641 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11642
11643         * common-src/amanda.h: uhh, every other decl has a leading
11644         'extern' so writev() should as well
11645
11646 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11647
11648         * common-src/amanda.h: if no writev() decl exists, declare one
11649
11650 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11651
11652         * configure.in: check for <sys/uio.h>, check for a writev() decl
11653         in <unistd.h> and/or <sys/uio.h>
11654
11655 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11656
11657         * common-src/writev.c (writev): new file, implements writev for
11658         systems that lack it
11659
11660 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11661
11662         * common-src/amanda.h: include <sys/uio.h> if it exists.  Otherwise,
11663         define struct iovec
11664
11665 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11666
11667         * server-src/amlabel.c: insist on being run as the dump user (ala
11668         amlabel) to keep permissions straight.
11669
11670 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11671
11672         * server-src/amadmin.c: fix minor message format problem.
11673
11674 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11675
11676         * server-src/amlabel.c: insist on being run as the dump user (ala
11677         amflush) to keep permissions straight.
11678
11679 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11680
11681         * server-src/amrmtape.sh.in: insist on being run as the dump user (ala
11682         amdump) to keep permissions straight.
11683
11684 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11685
11686         * server-src/amadmin.c: issue a warning for update commands that might
11687         leave ownership incorrect.
11688
11689 1998-11-24  John R. Jackson  <jrj@purdue.edu>
11690
11691         * server-src/amcheck.c: add a "-t" option to disable tape tests in the
11692         server checks.  This lets server checks be done without mounting a
11693         tape.  Add lots more sanity checks, in particular, ownership and
11694         permissions of the index area and text format database.  Warn if
11695         amcheck is not run as the dump user listed in amanda.conf.  Minor
11696         consistency cleanup in the messages.
11697         * man/amcheck.8.in: document the changes.
11698
11699 1998-11-24  Mike Grupenhoff <kashmir@munge.com>
11700
11701         * common-src/dgram.c (dgram_bind): always try to get a reserved
11702         port, even if KRB4_SECURITY is defined
11703
11704 1998-11-23  Mike Grupenhoff <kashmir@munge.com>
11705
11706         * common-src/bsd-security.c (struct bsd_handle): change 'int handle'
11707         to 'char proto_handle[32]' because the remote client might generate
11708         handles that aren't completely numerical
11709         * common-src/bsd-security.c (gethandle, str2pkthdr): the 'handle' arg
11710         is now a string
11711         * common-src/bsd-security.c (bsd_connect): convert our generated
11712         handle into a string to pass to gethandle()
11713         * common-src/bsd-security.c (str2pkthdr): rewrite to parse with
11714         strtok().  Parse the handle as a string instead of trying to
11715         convert it into a number
11716
11717 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
11718
11719         * server-src/amcleanup.sh.in (logdir/amdump): arrange that it is
11720         renamed if it exists, even if no log file could be found.
11721
11722 1998-11-20  Mike Grupenhoff <kashmir@munge.com>
11723
11724         * common-src/bsd-security.c: define STREAM_BUFSIZE to be
11725         the size of the tcp socket buffers
11726         * common-src/bsd-security.c (bsd_stream_server, bsd_stream_client):
11727         adapt to the stream_server() interface changes.  Set socket
11728         buffers to STREAM_BUFSIZE.
11729
11730 1998-11-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
11731
11732         * config/ltmain.sh, config/ltconfig, config/libtool/libtool.m4:
11733         updated to current CVS libtool
11734
11735 1998-11-19  John R. Jackson  <jrj@purdue.edu>
11736
11737         * server-src/conffile.c (get_holdingdisk, init_holdingdisk_defaults):
11738         set the default chunksize and the "0" and "-1" special chunksizes
11739         to 64 KBytes less than the maximum to allow the final read at EOF.
11740         * server-src/dumper.c (main): leave the chunksize as it is when it
11741         comes in except to truncate it to a 32 KByte boundary.
11742         * man/amanda.8.in: add some chunksize comments and clean up a few
11743         minor odds and ends.
11744
11745 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
11746
11747         Give amrecover its own security bits.  It has different needs
11748         and a different protocol than the rest of amanda, so it shouldn't
11749         try to reuse the security bits
11750         * recover-src/amrecover.c (get_security): new function, implements
11751         bsd security
11752         * recover-src/amrecover.c (main): call get_security()
11753         * recover-src/amrecover.h: get_security() prototype
11754         * recover-src/extract_list.c (extract_files_setup): call
11755         get_security()
11756         * restore-src/amidxtaped.c (check_security): new function, implements
11757         * restore-src/amidxtaped.c (main): call check_security()
11758
11759 1998-11-19  Mike Grupenhoff <kashmir@munge.com>
11760
11761         * common-src/stream.c (stream_server, stream_client): cast 4th
11762         arg of setsockopt() to (void *) to quash a compiler warning
11763         under solaris.
11764
11765 1998-11-19  John R. Jackson  <jrj@purdue.edu>
11766
11767         * recover-src/amrecover.c (main): use set_host to find the initial
11768         host name so we get the same alias resolution at startup as the
11769         sethost command.
11770         * recover-src/set_commands.c (set_host): report alternate names being
11771         attempted and only clear the directory list if a host is found.
11772
11773 1998-11-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
11774
11775         * server-src/driverio.c (update_info_dumper): do not update
11776         compression or dump rates when called from
11777         update_failed_dump_to_date
11778         Reported by Michael Schmitz <mschmitz@sema.de>
11779
11780 1998-11-18  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11781
11782         * server-src/dumper.c (main): reduce the size of the chunksize by
11783         2 blocks.
11784
11785 1998-11-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
11786
11787         * configure.in: hack for paxutils was not working; fixed
11788
11789 1998-11-18  Michael Povel  <mcp@ladyada.han.de>
11790
11791         * server-src/changer.h added new functions:changer_query
11792         ,changer_search,changer_find, changer_label
11793         * server-src/changer.c added changer_query, changer_search,
11794         changer_find, changer_label
11795         * server-src/amcheck.c (taper_scan) now uses changer_find 
11796         * server-src/amtape.c (load_label and taper_scan) now use changer_find
11797         * server-src/taper.c (taper_scan) now uses changer_find
11798         * server-src/amlabel.c (main) added call to changer_label
11799         which is only an empty dummy at the moment
11800
11801 1998-11-18  Thomas Hepper <th@icem.de>
11802
11803         * changer-src/chg-scsi.c Added debug print option
11804         * changer-src/chg-scsi.c If the load fails do not continue
11805         * changer-src/scsi-aix.c changed #include <config.h> to <amanda.h>
11806         * changer-src/scsi-aix.c Added debug prints to SCSI_ExecuteCommand
11807         * changer-src/scsi-changer-driver.c changed #include <config.h> to 
11808         #include <amanda.h>
11809         * changer-src/scsi-changer-driver.c Added debugging prints
11810         * changer-src/scsi-changer-driver.c Remove unused funktion TestUnitReady
11811         * changer-src/scsi-chio.c added missing funktion Tape_Ready
11812         * changer-src/scsi-hpux.c removed #include "config.h", is already done
11813         in amanda.h
11814         * changer-src/scsi-hpux_new.c  changed #include <config.h> to 
11815         #include <amanda.h>
11816         * changer-src/scsi-irix.c changed #include <config.h> to 
11817         #include <amanda.h>
11818         * changer-src/scsi-linux.c changed #include <config.h> to 
11819         #include <amanda.h>
11820         * changer-src/scsi-solaris.c changed #include <config.h> to 
11821         #include <amanda.h>
11822
11823 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11824
11825         * client-src/sendsize.c: disable HAVE_DUMP_ESTIMATE if SAMBA_CLIENT
11826         is defined
11827
11828 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11829
11830         * server-src/tapefile.c (lookup_last_reusable_tape): Wrong order
11831         to shift the tpsave array.
11832
11833 1998-11-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
11834
11835         * example/amanda.conf.in: document that infofile is supposed to be a
11836         directory with the default database format
11837         * docs/FAQ: New questions: `infofile update failed' and `using the
11838         same host in different configurations'
11839
11840 1998-11-17  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11841
11842         changer-src/scsi-linux.c (Tape_Ready): typo, the argument Device
11843         to the SCSI_CloseDevice() is not defined, I changed it to tapedev.
11844
11845 1998-11-17  Brendan M Coffey <bcoffey@connix.com>
11846
11847         * common-src/stream.c (stream_server): add requested send and receive
11848         socket size parameters.
11849         * common-src/stream.h (stream_server): ditto
11850         * server-src/taper.c (file_reader_side): set a large receive socket
11851         buffer size.
11852         * client-src/sendbackup.c (main): set a large send and receive socket
11853         buffer size for the data path, use defaults for the message and index
11854         paths.
11855
11856 1998-11-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
11857
11858         * changer-src/scsi-solaris.c (Tape_Ready): typo in Thomas' patch
11859
11860 1998-11-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11861
11862         * server-src/infofile.h (get_dumpdate): rename record parameter to info.
11863         * server-src/infofile.h (get_info): rename record parameter to info.
11864         * server-src/infofile.h (put_info): rename record parameter to info.
11865         * server-src/infofile.c (get_dumpdate): rename rec parameter to info.
11866         * server-src/infofile.c (zero_info): rename ip parameter to info.
11867         * server-src/infofile.c (get_info): rename record parameter to info.
11868         * server-src/infofile.c (put_info): rename record parameter to info.
11869         * server-src/infofile.c (dump_rec): rename r parameter to info.
11870         * server-src/infofile.c (dump_db): rename record variable to info.
11871         * server-src/planner.c (last_level): rename ip parameter to info.
11872         * server-src/planner.c (next_level0): rename ip parameter to info.
11873         * server-src/planner.c (runs_at): rename ip parameter to info.
11874         * server-src/planner.c (askfor): rename inf parameter to info.
11875         * server-src/planner.c (setup_estimate): rename inf variable to info.
11876         * server-src/driverio.c (update_info_dumper): rename inf parameter 
11877         to info.
11878         * server-src/driverio.c (update_info_taper): rename inf parameter 
11879         to info.
11880         * server-src/amadmin.c (next_level0): rename ip parameter to info.
11881         * server-src/amadmin.c (force_one): rename inf variable to info.
11882         * server-src/amadmin.c (unforce_one): rename inf variable to info.
11883         * server-src/amadmin.c (delete_one): rename inf variable to info.
11884         * server-src/amadmin.c (info_one): rename inf variable to info.
11885         * server-src/amadmin.c (due_one): rename inf variable to info.
11886         * server-src/amadmin.c (balance): rename inf variable to info.
11887
11888 1998-11-11  Thomas Hepper <th@icem.de>
11889
11890         * configure.in: amanda_cv_hpux_scsi was double defined.
11891         Replaced it in the chio check with amanda_cv_hpux_scsi_chio
11892         * docs/TAPE.CHANGERS: update the notes about chg-scsi
11893         * changer-src/chg-scsi.c: Unload the cleaning tape only
11894         if it is loaded
11895         Pass the changerdev and tapedev Tape_Ready, so we can check
11896         if changerdev=tapedev. In this case the fd is already open.
11897         * changer-src/scsi-aix.c: cleanup and first parts are running :-)
11898         * changer-src/scsi-changer-driver.c: Pass back the scsi status
11899         field to the calling function, not the result from the ioctl
11900         if the return form the ioctl is >= 0
11901         * changer-src/scsi-hpux.c: Add additional param to Tape_Ready
11902         fill Tape_Ready with live 
11903         * changer-src/scsi-hpux_new.c: Return the scsi status if 
11904         the ioctl result is >=0. Add new Parameter to Tape_Ready
11905         * changer-src/scsi-irix.c: same as scsi-hpux_new.c
11906         * changer-src/scis-linux.c: Add additional param to Tape_Ready
11907         * changer-src/scsi-solaris.c: same as scsi-hpux_new.c
11908
11909 1998-11-11  Mike Grupenhoff <kashmir@munge.com>
11910
11911         * server-src/security.h: add driver entry points and macros
11912         for security_stream_accept() and security_stream_auth()
11913         * server-src/bsd-security.c: implement security_stream_accept()
11914         and security_stream_auth() for bsd security
11915
11916 1998-11-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11917
11918         * server-src/driver.c (main): redo my patch about total_disksize that
11919         Alexendre has undone, only the 2.4.1 branch was broken.
11920
11921 1998-11-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
11922
11923         * server-src/driver.c (main): total_disksize was only added after
11924         the loop terminated, i.e., when hdp was NULL -> crash.  fixed.
11925
11926 1998-11-09  John R. Jackson  <jrj@purdue.edu>
11927
11928         * server-src/reporter.c (main): ignore SIGPIPE so if a child process
11929         dies we do not also go away.  Also fix a core dump if amanda.conf
11930         cannot be processed, and clean up a few error messages.
11931
11932 1998-11-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11933
11934         * server-src/infofile.h (struct info_s): add last_level and 
11935         consecutive_runs.
11936         * server-src/infofile.c: support new last_level and consecutive_runs
11937         * server-src/planner.c (last_level): return ip->last_level.
11938         * server-src/planner.c (runs_at): return ip->consecutive_runs.
11939         * server-src/driverio.c (update_info_dumper): update inf.last_level
11940         and inf.consecutive_runs.
11941         
11942 1998-11-09  Mike Grupenhoff <kashmir@munge.com>
11943
11944         * client-src/sendbackup-dump.c (start_backup): don't close indexf
11945         if it was never open
11946         * client-src/sendbackup-gnutar.c (start_backup): ditto
11947
11948 1998-11-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
11949
11950         * server-src/driver.c (main): add hdp->disksize to total_disksize
11951         even when we create the datestamp dir. (reserve was unusable).
11952
11953 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
11954
11955         * Makefile.am (EXTRA_DIST): added EVENT-API, SECURITY-API and
11956         STRATEGY-API
11957         * docs/STRATEGY-API: new file
11958
11959         * configure.in (GNUTAR): accept tar from Free paxutils, the new name
11960         of GNU tar
11961
11962 1998-11-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
11963
11964         * changer-src/scsi-solaris.c: added missing #endif
11965
11966         * configure.in: merge with camlib.h patch from Oct 31
11967         remove all uses of test ... -a ...; this is not portable.
11968         (AC_CHECK_HEADERS) added header files for Linux and Solaris
11969
11970 1998-11-07  Thomas Hepper  <th@icem.de>
11971
11972         * changer-src/chg-scsi: Add config option scsidev
11973         * changer-src/chg-scsi: Remove function tape_ready
11974         * changer-src/chg-scsi: Add new parameter tapedev to function
11975         ask_clean
11976         * changer_src/scsi-hpux.c: changed HAVE_HPUX_SCSI to 
11977         HAVE_HPUX_SCSI_CHIO, changed in configure.in too
11978         * changer-src/libscsi.h: Expand definition for get_clean_state
11979         * new files in /changer-src:
11980         scsi-aix.c, scsi-changer-driver.c, scsi-defs.h
11981         scsi-hpux_new.c, scsi-irix.c, scsi-linux.c, scsi-solaris.c
11982         * configure.in checks for scsi ioctl added, check for header files
11983         for the scsi suport added
11984         * config/acconfig.h new:
11985         HAVE_HPUX_LIKE_SCSI, HAVE_HPUX_SCSI_CHIO, HAVE_LINUX_LIKE_SCSI
11986         HAVE_IRIX_LIKE_SCSI, HAVE_SOLARIS_LIKE_SCSI, HAVE_AIX_LIKE_SCSI
11987                removed: HAVE_HPUX_SCSI
11988         * changer-src/Makefile.am: New conditional for building chg-scsi-chio
11989         and chg-scsi. chg-scsi-chio is the old chg-scsi
11990
11991 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
11992
11993         * common-src/bsd-security.c (bsd_stream_write): callback's third
11994         arg should now be an int.
11995         * common-src/bsd-security.c: quash some gcc -Wall warnings
11996
11997 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
11998
11999         * common-src/security.h: the callback to stream_read should
12000         take signed type as its 'length' argument so errors can be
12001         expressed as a negative number.
12002
12003 1998-11-06  Mike Grupenhoff <kashmir@munge.com>
12004
12005         * common-src/bsd-security.c (stream_read_callback): do reads into
12006         a buffer of size TAPE_BLOCK_BYTES, instead of 256, and place the
12007         buffer in the stream handle instead of on the stack, since it's
12008         huge
12009
12010 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
12011
12012         * common-src/event.c (event_loop): Consider error conditions on
12013         file descriptors as read or write events.  The caller will be
12014         able to differentiate when they call read or write and it
12015         fails.
12016
12017 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
12018
12019         * common-src/event.c (event_loop): print out WHY select failed
12020
12021 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
12022
12023         * common-src/bsd-security.c: adjust for the recvpkt timeout
12024         interface changes
12025         * common-src/bsd-security.c (handleq_remove): add a missing ; after
12026         an assertion
12027         * common-src/bsd-security.c (gethandle): initialize the error buffer
12028         in the security handle, since errors may be set before the handle
12029         is passed up to the general security layer
12030         * common-src/bsd-security.c (bsd_recvpkt_cancel): allow it to be
12031         called several times, or when no recvpkt was scheduled
12032
12033 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
12034
12035         * common-src/security.h: define security_recvpkt_status_t
12036         * common-src/security.h: security_driver_t->recvpkt() now
12037         takes a timeout argument, and its callback takes a
12038         security_recvpkt_status_t
12039         * common-src/security.h: adjust the security_recvpkt() macro
12040         for the above changes
12041
12042 1998-11-05  Mike Grupenhoff <kashmir@munge.com>
12043
12044         * common-src/event.c (event_loop): assert that we are not firing
12045         a dead event
12046
12047 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12048
12049         * recover-src/amrecover.c: remove declaration of errstr.
12050
12051 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12052
12053         * server-src/amindexd.c (build_disk_table): call find_dump() instead
12054         of popen("amadmin <conf> find ...")
12055
12056 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12057
12058         * server-src/holding.h: rename dir_list to holding_list because
12059         dir_list is also declared in amflush.c
12060         * server-src/holding.c: ditto
12061         * server-src/find.c: ditto
12062
12063 1998-11-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12064
12065         * server-src/amstatus.pl.in: remove warning.
12066
12067 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12068
12069         * common-src/event.c (event_register): delete some improper debug
12070         code that shouldn't have made it in
12071
12072 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12073
12074         * common-src/bsd-security.c: new file: security driver that
12075         implements "BSD" security.
12076
12077 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12078
12079         * common-src/security.h: new file: the security api header
12080
12081 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12082
12083         * common-src/event.c: new file: the event handler.  Handles file
12084         descriptor io, signals, and timed events.
12085         * common-src/event.h: new file: interface for the event handler.
12086
12087 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12088
12089         * common-src/packet.c: new file: description of pkt_t's and routines
12090         for formatting
12091         * common-src/packet.h: new file: header for common-src/packet.c
12092
12093 1998-11-04  Mike Grupenhoff <kashmir@munge.com>
12094
12095         * common-src/queue.h: new file: the 4.4BSD queue macros, with
12096         additions from NetBSD
12097
12098 1998-11-04  John R. Jackson  <jrj@purdue.edu>
12099
12100         * server-src/amverify.sh.in: tolerate extra amtape output.
12101
12102 1998-11-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
12103
12104         * configure.in: bumped to 2.5.0
12105
12106         * server-src/taper.c (read_file): if a new tape cannot be found,
12107         report a no-tape error to the log file and exit, just like it does
12108         for the first tape
12109
12110 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12111
12112         * server-src/planner.c (pick_inclevel): return base_level even
12113         when the estimate failed.
12114         * server-src/planner.c (output_scheduleline): test for degr_size
12115         instead of degr_level.
12116
12117 1998-11-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12118
12119         * server-src/planner.c (last_level): update last_date otherwise only
12120         level 0 or the highest is returned.
12121
12122 1998-11-03  Mike Grupenhoff  <kashmir@munge.com>
12123
12124         * common-src/alloc.c: const arguments to the stralloc functions
12125         * common-src/amanda.h: update stralloc prototypes for const
12126         poisoning
12127
12128 1998-11-03  John R. Jackson  <jrj@purdue.edu>
12129
12130         * server-src/dumper.c (do_dump): do not report FAILED back to driver
12131         when it sent us ABORT.  Clean up and send back ABORT-FINISHED.
12132
12133 1998-11-03  John R. Jackson  <jrj@purdue.edu>
12134
12135         * server-src/driver.c (handle_dumper_result): do not abort a dumper
12136         that reports NO-ROOM if taper is busy since some holding disk space
12137         will eventually be released (this code it not used when PORT-DUMP is
12138         in progress).
12139
12140 1998-11-03  John R. Jackson  <jrj@purdue.edu>
12141
12142         * server-src/taper.c (write_buffer): calling lseek after every tape
12143         write is wasteful and makes utilities like lsof less useful.  Only
12144         reset the offset when the amount written is about to go over 2 GBytes.
12145
12146 1998-11-02  John R. Jackson  <jrj@purdue.edu>
12147
12148         * server-src/driver.c (main, start_degraded_mode): fix rounding problem
12149         that made the code think there was a little room for full dumps in
12150         degraded mode, and fix the code that decides whether to do a full dump
12151         in degraded mode.
12152
12153 1998-11-02  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12154
12155         * server-src/amstatus.pl.in: initialize variable to remove warning.
12156
12157 1998-11-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
12158
12159         * client-src/Makefile.am (CLIENT_SCRIPTS): rename to
12160         CLIENT_SCRIPTS_OPT, because *_SCRIPTS is interpreted by automake
12161         * configure.in (CLIENT_SCRIPTS): ditto
12162         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
12163
12164         * configure.in (LIBTOOL_M4): no longer defined
12165         (LIBTOOL_M4_MACRO_DIR): defined assuming CWD is top_srcdir
12166         * Makefile.am (ACLOCAL_M4_FROM_SRCDIR): relative to srcdir
12167         (ACLOCAL_M4): defined and created using ACLOCAL_M4_FROM_SRCDIR
12168         Reported by Thomas Hepper <Thomas.Hepper@icem.de>
12169         
12170         * client-src/sendbackup.c (backup_program): rename to
12171         gnutar_program, that's the name it should have had from the
12172         beginning
12173         * client-src/sendbackup-gnutar.c (backup_program): ditto
12174
12175 1998-10-31  Michael Schmitz <mschmitz@iname.com>
12176
12177         * configure.in: let configure check whether strcasecmp is
12178         present
12179         * common-src/strcasecmp.c: new file which contains a definition
12180         of strcasecmp
12181         * common-src/amanda.h: added code to declare strcasecmp in
12182         case it's not declared in a standard header
12183
12184 1998-10-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
12185
12186         * configure.in (snprintf): arrange that it is included in the
12187         distribution automatically
12188         * common-src/Makefile.am (EXTRA_DIST): removed, not needed
12189
12190         * changer-src/Makefile.am (libexec_SCRIPTS): would only be enabled
12191         if WANT_CHG_SCSI
12192
12193         * configure.in (NO_SCSI_CHANGER_MODE): chg-scsi does not support the
12194         new FreeBSD 3.0 chio.h, so disable it if camlib.h is found.
12195         * docs/SYSTEM.NOTES (FreeBSD 3.0): add a note about this
12196         (SunOS 4.x): libtool will no longer find incorrect library versions
12197
12198 1998-10-30  John R. Jackson  <jrj@purdue.edu>
12199
12200         * common-src/security.c (bsd_security_ok): change error message to
12201         reflect that it is a host name we were looking up rather than an
12202         address (also makes the two similar messages unique).
12203
12204 1998-10-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
12205
12206         * docs/SYSTEM.NOTES: Debian 2's dump uses /var/lib/dumpdates 
12207
12208 1998-10-28  John R. Jackson  <jrj@purdue.edu>
12209
12210         * recover-src/set_commands.c (set_host): if the host given by the user
12211         does not work, try the canonical name and aliases returned by
12212         gethostbyname.
12213
12214 1998-10-28  John R. Jackson  <jrj@purdue.edu>
12215
12216         * configure.in: use "df /" instead of just "df" when trying to find
12217         the device that has the root file system to avoid things like NFS
12218         hangs that df sometimes suffers from.
12219
12220 1998-10-27  Mike Grupenhoff <kashmir@munge.com>
12221
12222         * common-src/stream.c (stream-client): add a 'localport' argument
12223         in which we can get the port this stream is bound to locally
12224         * common-src/stream.h (stream-client): update prototype
12225         * server-src/dumper.c: update stream-client calls
12226
12227 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12228
12229         * client-src/amandad.c (main): better logging of received packet,
12230         do not send a P_ACK when the received packet is not a P_REQ.
12231
12232 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12233
12234         * client-src/amandad.c (main): terminate immediately if started
12235         by a P_ACK packet without sending a P_NAK packet.
12236
12237 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12238
12239         * server-src/conffile.h (dtimeout): new keyword 
12240         * server-src/conffile.c (dtimeout): ditto
12241         * server-src/dumper.c: use dtimeout instead of READ_TIMEOUT
12242         * example/amanda.conf.in: document it
12243         * man/amanda.8.in: ditto
12244         * NEWS: ditto
12245
12246 1998-10-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12247
12248         * server-src/dumper.c (sendbackup_response): a nak error will
12249         be a TRY-AGAIN instead of a FAILED.
12250
12251 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12252
12253         * server-src/amlabel.c: move declaration of vtbl_no, datestr
12254         and slotcommand to the main function.
12255
12256 1998-10-26  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12257
12258         * server-src/amlabel.c: remove declaration of pname.
12259
12260 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12261
12262         * server-src/amcheckdb.sh.in: modify to match new tapelist file
12263         format (keyword reuse and no-reuse). Probably no-one use this
12264         program.
12265
12266 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12267
12268         * server-src/driver.c (handle_dumper_result): Add sleep time
12269         when a dumper failed, it could be a temporary network problem,
12270         such as NIS or NFS, better wait a few seconds before retrying.
12271
12272 1998-10-25  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12273
12274         * server-src/driverio.h: remove declaration of argc et argv.
12275         * server-src/driverio.h (getresult): add parameters result_argc, 
12276         result_argv and max_arg.
12277         * server-src/driverio.c (getresult): use new parameters.
12278         * server-src/amflush.c (flush_holdingdisk, run_dumps): declare
12279         and use result_argc and result_argv instead of global variables
12280         argc and argv.
12281         * server-src/driver.c (main, handle_taper_result, 
12282         handle_dumper_result, dump_to_tape): ditto
12283
12284 1998-10-24  John R. Jackson  <jrj@purdue.edu>
12285
12286         * server-src/amstatus.pl.in: do not be quite so accurate in matching
12287         the log file lines since messages may be intermixed.  Turn on perl
12288         -w switch and make first cut at cleaning up warnings.
12289
12290 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12291
12292         * server-src/driverio.h: remove datestamp declaration.
12293         * server-src/amcheck.c: remove 'extern' to datestamp declaration.
12294         * server-src/amflush.c: declare datestamp.
12295         * server-src/amtape.c: remove 'extern' to datestamp declaration.
12296         * server-src/driver.c: declare datestamp.
12297         * server-src/dumper.c: remove 'extern' to datestamp declaration.
12298         * server-src/reporter.c: remove 'extern' to datestamp declaration.
12299
12300 1998-10-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12301
12302         * server-src/driverio.h: remove declaration of tok.
12303         * server-src/amflush.c (flush_holdingdisk,run_dumps): declare
12304         tok locally.
12305         * server-src/driver.c (main, handle_taper_result, handle_dumper_result,
12306         dump_to_tape): declare tok locally.
12307
12308 1998-10-23  John R. Jackson  <jrj@purdue.edu>
12309
12310         * configure.in: disable the -E and -h dump estimate checks if $DUMP
12311         is not executable.
12312
12313 1998-10-19  John R. Jackson  <jrj@purdue.edu>
12314
12315         * server-src/amindexd.c (is_config_valid): fix core dump by moving
12316         amfree of conf_dir later in case it is needed in an error message.
12317
12318 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12319
12320         * server-src/reporter.c: remove declaration of curlinenum,
12321         curlog, curprog and curstr.
12322
12323 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12324
12325         * server-src/amflush.c (main): move declaration of diskqp from
12326         global to local.
12327
12328 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12329
12330         * server-src/amcheck.c (main): move declaration of mailout and 
12331         tempfname from global to local.
12332
12333 1998-10-16  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12334
12335         * server-src/amadmin.c (search_logfile): remove declaration
12336
12337 1998-10-15  Mike Grupenhoff <kashmir@munge.com>
12338
12339         * server-src/amadmin.c (reuse, no-reuse): don't core dump if tape
12340         label not found
12341
12342 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12343
12344         * server-src/conffile.h: remove declaration of holdingdisks and 
12345         num_holdingdisks, declare getconf_holdingdisks().
12346         * server-src/conffile.c: define getconf_holdingdisks(),
12347         * server-src/holding.c: use getconf_holdingdisks
12348         * server-src/find.c: ditto
12349         * server-src/amcheck.c: ditto
12350         * server-src/amflush.c: ditto
12351         * server-src/driver.c ditto
12352
12353 1998-10-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12354
12355         * server-src/driver.c: remove verbose and force_parameters
12356         variables.
12357
12358 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12359
12360         * server-src/dumper.c: remove declaration of pid.
12361         * server-src/dumper.c(do_dump): move declaration of runtime, 
12362         dumptime, compresspid, indexpid and killerr from global to local.
12363
12364 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12365
12366         * server-src/planner.c: remove declaration of total_waiting and
12367         result_socket.
12368         * server-src/planner.c(main): move declaration of initial_size from
12369         global to local.
12370
12371 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12372
12373         * server-src/driverio.h,server-src/driver.c: move declaration
12374         of big_dumpers, degraded_mode and reserved_space from 
12375         driverio.h to driver.c
12376
12377 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12378
12379         * server-src/driverio.h (optionstr): remove declaration
12380
12381 1998-10-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12382
12383         * configure.in (SAMBA_CLIENT): fix typo
12384
12385 1998-10-14  John R. Jackson  <jrj@purdue.edu>
12386
12387         * restore-src/amrestore.c (read_file_header): make a couple of error
12388         messages clearer that they refer to problems with a header rather
12389         than the image data.
12390
12391 1998-10-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
12392
12393         * client-src/Makefile.am (libamclient_a_SOURCES): missing since
12394         clean-up; re-added
12395
12396 1998-10-12  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12397
12398         * docs/INTERNALS (driver and dumper): document <dumpdate> in 
12399         FILE-DUMP and PORT-DUMP request, document <chunksize> in 
12400         FILE-DUMP request.
12401
12402 1998-10-12  John R. Jackson  <jrj@purdue.edu>
12403
12404         * server-src/amtape.c (usage, main, show_device): apply patch from
12405         Chris Jones <cjones@clydesdale.math.montana.edu> to support "device"
12406         as an option to return the drive device name as reported by the
12407         changer.
12408         * man/amtape.8: document the new "device" option.
12409         * server-src/amverify.sh.in: use the new amtape "device" option to
12410         better handle tape changers.  Overhaul for general cleanup and some
12411         security issues, plus amverify now tries to support non-tar images.
12412         * man/amverify.8.in: document non-tar image issues.
12413
12414 1998-10-08  John R. Jackson  <jrj@purdue.edu>
12415
12416         * example/amanda.conf.in: fix runspercycle example and comments
12417
12418 1998-10-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
12419
12420         * configure.in (SAMBA_CLIENT): try to find it by default; minimal
12421         checking
12422         * client-src/Makefile.am (WANT_SAMBA): use automake conditionals to
12423         enable findpass.o
12424         * docs/SAMBA: document that --with-smbclient is no longer required
12425         to enable SAMBA support
12426         
12427         * docs/FAQ: about inconsistencies in active filesystems
12428
12429 1998-10-06  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12430
12431         * docs/DUMPER-API: add `no-record' option to the `backup' command.
12432
12433 1998-10-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12434
12435         * docs/DUMPER-API: subdivise section 3.1.
12436
12437 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12438
12439         * docs/DUMPER-API: New `index-<mode>' options.
12440         define `support parse-estimate' and `support parse-backup' subcommand.
12441         New 'estimate-direct', `estimate-parse', `backup-direct' and
12442         `backup-parse' options.
12443         Remove PARSE keyword from estimate and backup command.
12444
12445 1998-10-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12446
12447         * docs/DUMPER-API: define PARSE keyword in stderr of the backup
12448         command
12449
12450 1998-10-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
12451
12452         * man/Makefile.am (EXTRA_DIST): make sure the man-pages that are not 
12453         generated by autoconf get into the distribution
12454
12455 1998-10-02  Josef Karthauser  <joe@pavilion.net>
12456
12457         * changer-src/chg-chio.pl.in (getTapeParams): fix regular expression 
12458         for $line; the trailing `s' of slots was missing
12459
12460 1998-10-02  John R. Jackson  <jrj@purdue.edu>
12461
12462         * server-src/amstatus.pl.in: fix error message.
12463
12464 1998-10-02  John R. Jackson  <jrj@purdue.edu>
12465
12466         * server-src/taper.c (write_file): fix a problem with tha taper
12467         stats where the times were all the same.  The wallclock_str function
12468         returns a pointer to a static area so it cannot be called more
12469         than once as an argument to a function.
12470
12471 1998-10-01  John R. Jackson  <jrj@purdue.edu>
12472
12473         * common-src/protocol.c (parse_integer): allow negative numbers.
12474
12475 1998-10-01  John R. Jackson  <jrj@purdue.edu>
12476
12477         * server-src/amstatus.pl.in: add timestamps.
12478
12479 1998-10-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
12480
12481         * docs/DUMPER-API: define `support index', to be used instead of the
12482         previous `index-*' sub-commands
12483
12484 1998-09-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
12485
12486         * server-src/Makefile.am (libexec_PROGRAMS, sbin_SCRIPTS): don't use 
12487         backslashes for continuation; this seems to break automake :-(
12488
12489 1998-09-30  John R. Jackson  <jrj@purdue.edu>
12490
12491         * man/amanda.8.in: minor typo in "reserve" description.
12492
12493 1998-09-29  John R. Jackson  <jrj@purdue.edu>
12494
12495         * server-src/taper.c (end_tape): do not rewind the tape when done.
12496
12497 1998-09-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
12498
12499         * configure.in (WANT_CLIENT, WANT_RESTORE, WANT_SERVER, 
12500         WANT_RECOVER, WANT_TAPE, WANT_AMPLOT, WANT_CHG_SCSI): automake
12501         conditionals
12502         * amplot/Makefile.am: use them
12503         * changer-src/Makefile.am: ditto
12504         * client-src/Makefile.am: ditto
12505         * common-src/Makefile.am: ditto
12506         * man/Makefile.am: ditto
12507         * recover-src/Makefile.am: ditto
12508         * restore-src/Makefile.am: ditto
12509         * server-src/Makefile.am: ditto
12510         * tape-src/Makefile.am: ditto
12511
12512         * Makefile.am: don't print commands that work around old aclocal bug
12513
12514         * docs/DUMPER-API: remove environment variables, and mention a
12515         program that will help translating disklist entries to device names, 
12516         mount points and filesystem types
12517
12518         * recover-src/extract_list.c (extract_files_child): do not crash
12519         after failing to read the dump file header
12520         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
12521
12522 1998-09-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
12523
12524         * server-src/taper.c (taperscan_slot): initialize scan_datestamp, to
12525         avoid amfree of uninitialized pointer
12526         Reported by Lance A. Brown <brown9@niehs.nih.gov>
12527
12528 1998-09-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
12529
12530         * docs/DUMPER-API (USER, GROUP): detailed security mechanisms
12531         (estimate, estimate-parse): can print `KILL' after the estimate
12532         
12533         * docs/DUMPER-API: various suggestions from Eric Siegerman
12534         <erics@now.com> and some explanations added
12535         
12536 1998-09-27  Andy Farkas  <andyf@speednet.com.au>
12537
12538         * man/amlabel.8.in (labelstr): fix typo
12539
12540 1998-09-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
12541
12542         * recover-src/extract_list.c (extract_files_child): fix-up
12543         no_initial_params if password or domain information is not found
12544         Reported by Jose Cheng <jcheng@math.ist.utl.pt>
12545
12546         * docs/DUMPER-API: extended `index' to `index-from-output' or
12547         `index-from-image', as suggested by Dale Hagglund <rdh@best.com>.
12548         Explained that the dumptype option `program' is the name of the
12549         wrapper program
12550
12551 1998-09-25  John R. Jackson  <jrj@purdue.edu>
12552
12553         * configure.in: fix --with-dump-honor-nodump test.  Patch by
12554         Jonas Oberg <jonas@coyote.org>.
12555
12556 1998-09-24  John R. Jackson  <jrj@purdue.edu>
12557
12558         * example/disklist: document the "spindle" and "interface" fields.
12559         Reported by Brendan M Coffey <bcoffey@connix.com>.
12560
12561 1998-09-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
12562
12563         * docs/DUMPER-API: added draft description of the DUMPER API
12564         * Makefile.am (EXTRA_DIST): add it to the distribution
12565
12566         * config/acinclude.m4 (AC_VALIDATE_CACHE_SYSTEM_TYPE): make sure
12567         cached values for host, build and target system types match with the
12568         guessed ones
12569         * configure.in: use it
12570
12571 1998-09-23  John R. Jackson  <jrj@purdue.edu>
12572
12573         * server-src/amstatus.pl.in: sort the host and partition names.
12574         From David Wolfskill <dhw@whistle.com>.
12575
12576 1998-09-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
12577
12578         * server-src/taper.c (getcmd): typo in last DEBUGging patch
12579
12580 1998-09-22  Tim Perkins  <Tim.Perkins@ddg.phar.cam.ac.uk>,  Alexandre Oliva <oliva@dcc.unicamp.br>
12581
12582         * client-src/selfcheck.c (check_disk): fix VDUMP auto-detection
12583
12584 1998-09-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
12585
12586         * changer-src/chg-mtx.sh.in: replace rew with rewind
12587         * changer-src/chg-zd-mtx.sh.in: ditto
12588         Reported by Henning Holtschneider <hh@loca.net>
12589
12590         * client-src/sendsize.c: remove usage of #error
12591         Reported by Jay Orr <orr@vss.fsi.com>
12592
12593 1998-09-21  John R. Jackson  <jrj@purdue.edu>
12594
12595         * man/amanda.8.in: document the new "tapebufs" parameter.
12596
12597 1998-09-21  Kelly Setzer  <setzer@telalink.net>
12598
12599         * server-src/taper.c (NBUFS): replaced with conf_tapebufs
12600         (THRESHOLD): now means `empty bufs' instead of `full bufs'
12601         * server-src/conffile.c: add support for the "tapebufs" option
12602         * server-src/planner.c: ditto
12603         * examples/amanda.conf.in: add sample "tapebufs" entry
12604
12605         * server-src/amlabel.c (main): adds entry to tapelist with date
12606         19700101
12607
12608 1998-09-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
12609
12610         * server-src/taper.c (getcmd): print DEBUGging output to stderr
12611         Reported by Henning Holtschneider <hh@loca.net>
12612
12613 1998-09-19  Eric Doutreleau <Eric.doutreleau@int-evry.fr>
12614
12615         * server-src/driverio.h (MAX_DUMPERS): increased from 15 to 63 in
12616         order to launch more dumper in parallel
12617         * example/amanda.conf.in (inparallel): Add the fact that it is
12618         limited by MAX_DUMPERS
12619
12620 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
12621
12622         * common-src/Makefile.am (libamanda_la_LDFLAGS): use libtool
12623         -release instead of -version_info, so as to encode the Amanda
12624         release number in the library name.  Problems related with
12625         pre-installed libraries should disappear, and separate releases can
12626         now be installed into the same directory without the risk of one
12627         using libraries from the other.
12628
12629 1998-09-18  Michael C. Povel  <Michael.Povel@hub.de>
12630
12631         * changer-src/chg-scsi.c (wait_ready): new function; keeps retrying
12632         until success or timeout
12633         (ask_clean, main): use it
12634
12635 1998-09-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
12636
12637         * client-src/selfcheck.c (check_options): don't require runtar for
12638         SAMBA backups
12639         
12640         * client-src/rundump.c: fix support for VDUMP-only installation
12641         * client-src/selfcheck.c (check_options): fix detection of advfs
12642         * client-src/sendsize.c (getsize_dump): ditto
12643         * client-src/sendbackup-dump.c (start_backup): ditto
12644         Reported by Tim Perkins <Tim.Perkins@ddg.phar.cam.ac.uk>
12645
12646 1998-09-16  John R. Jackson  <jrj@purdue.edu>
12647
12648         * man/amadmin.8.in: document that "hostname" is optional for "info".
12649         Reported by David Wolfskill <dhw@whistle.com>.
12650
12651 1998-09-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
12652
12653         * docs/FAQ: common compile-time and link-time errors
12654
12655 1998-09-11  John R. Jackson  <jrj@purdue.edu>
12656
12657         * server-src/tapefile.c (lookup_last_reusable_tape): use new
12658         calling sequence that passes how old a tape to return.  Remove
12659         lookup_previous_reusable_tape().
12660         * server-src/tapefile.h (lookup_last_reusable_tape): use new
12661         calling sequence that passes how old a tape to return.  Remove
12662         lookup_previous_reusable_tape().
12663         * server-src/amadmin.c (tape): use new lookup_last_reusable_tape
12664         calling sequence.
12665         * server-src/amcheck.c (taper_scan, start_server_check): use new
12666         lookup_last_reusable_tape calling sequence.
12667         * server-src/amflush.c (confirm): use new lookup_last_reusable_tape
12668         calling sequence.
12669         * server-src/amtape.c (taper_scan): use new lookup_last_reusable_tape
12670         calling sequence.
12671         * server-src/reporter.c (output_tapeinfo): use new
12672         lookup_last_reusable_tape calling sequence.
12673         * server-src/taper.c (taper_scan): use new lookup_last_reusable_tape
12674         calling sequence.
12675
12676 1998-09-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
12677
12678         * client-src/sendbackup-gnutar.c (re_table): ignore
12679         `load_client_codepage' message from SAMBA
12680
12681 1998-09-11  John R. Jackson  <jrj@purdue.edu>
12682
12683         * server-src/amstatus.pl.in (all): fix USE_VERSION_SUFFIXES=yes
12684         problems.  Reported by David Eckelkamp <davide@locutus.tradewave.com>.
12685
12686         * man/amstatus.8.in (all): fix minor typos.
12687
12688 1998-09-10  John R. Jackson  <jrj@purdue.edu>
12689
12690         * configure.in (LFS): add code that might support configuring large
12691         files on HP-UX.
12692
12693 1998-09-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
12694
12695         * server-src/conffile.c (dump_configuration): runspercycle is not a
12696         member of dumptype_t
12697         (init_holdingdisk_defaults): init chunksize with documented default,
12698         not -1, because it wouldn't be recalculated
12699
12700         * docs/INSTALL: URL for SAMBA was broken; note about 1.9.18p10 bug
12701
12702 1998-09-10  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12703
12704         * docs/SAMBA: 1.9.18p10 has a bug
12705
12706 1998-09-09  Terje Malmedal  <tm@funcom.com>
12707
12708         * common-src/stream.c (stream_server, stream_client): added
12709         SO_KEEPALIVE option so we get an error if the other side crashes
12710
12711 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
12712
12713         * configure.in (CHIO): look for chio and AC_SUBST it
12714         (MT, CHS): if not found, use just the program name
12715         
12716 1998-09-09  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12717
12718         * server-src/planner.c (last_level): return the last level
12719         even it is still on holding disk if reserve < 100.
12720
12721 1998-09-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
12722
12723         * server-src/reporter.c (divzero, divzero_wide): print `#'s on
12724         overflow
12725
12726         * server-src/amtape.c (show_init): no longer print `scanning'
12727         message
12728         (show_init_show, current_init_all): call show_init, then print the
12729         appropriate `scanning' message
12730         Reported by David Wolfskill <dhw@whistle.com>
12731
12732         * changer-src/chg-scsi.c (main): use new multi-configuration
12733         mechanism only if tape_device contains only a single digit
12734
12735 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12736
12737         * server-src/planner.c (setup_estimate): Don't write a
12738         "mismatch: no tapelist record, but curinfo next_level0" message
12739         and force a level 0 when reserve < 100.
12740
12741 1998-09-08  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12742
12743         * server-src/holding.h (get_amanda_names): return a filetype_t
12744         instead of an int.
12745         * server-src/holding.c (get_amanda_names): return the filetype_t
12746         of the file or F_UNKNOWN if it's not an amanda file.
12747         * server-src/find.c (search_holding_disk): Use the new return 
12748         type of get_amanda_names.
12749         * server-src/amflush.c (flush_holdingdisk): Don't write a
12750         "ignoring cruft file" message for chunk files,
12751         filetype is F_CONT_DUMPFILE.
12752
12753 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12754
12755         * recover-src/extract_list.c (extract_files_child): don't write
12756         the samba password to the debug file.
12757
12758 1998-09-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12759
12760         * server-src/driverio.c (update_info_dumper): set inf.command to
12761         NO_COMMAND if reserve< 100 because if you force a level 0 with
12762         'amadmin force', it will do level 0 every days until you flush them
12763         to tape.
12764
12765 1998-09-03  Matthias Urlichs    <smurf@noris.net>
12766
12767         * recover-src/uscan.l: recognize "?" as alias for "help"
12768
12769         * configure.in (MAILER): recognize "mail" as well as "Mail" and
12770         "mailx"
12771
12772         * client-src/calcsize.c (add_file_dump, add_file_unknown): only get
12773         sizes of directories and files
12774
12775         * client-src/amandates.c (start_amandates): create amandates if
12776         error is either EINTR or ENOENT
12777
12778         * common-src/dgram.c (dgram_send_addr): handle ECONNREFUSED by not
12779         dying when receiving, and retrying when sending, a packet.  The
12780         server may get this error when a client reboots and hasn't started
12781         inetd yet.
12782         * common-src/protocol.c (handle_incoming_packet): ditto
12783
12784         * server-src/driver.c (read_schedule): catch cases when the time
12785         goes negative.  Some operators have the bad habit of syncing clocks
12786         late at night. ;-)
12787
12788         * common-src/dgram.h (MAX_DGRAM): increased to 64Kb
12789         * NEWS: ditto
12790         * client-src/amandad.c (main): read the pipe from the child
12791         incrementally: the pipe buffer of many OSes is shorter than
12792         MAX_DGRAM.  Instead of SIGCHLD, note end-of-data by way of
12793         end-of-file
12794         (sigchild_jump, sigchild_flag): removed
12795         * client-src/sendbackup.c (main): instead of fork-and-exit, tell
12796         amandad to process our data by closing our end of the pipe
12797         
12798 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
12799
12800         * NEWS: another typo (too late :-(
12801
12802 1998-09-03  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12803
12804         * server-src/driver.c: amanda will not use an holding disk
12805         if the directory with the datestamp already exist.
12806
12807 1998-09-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
12808
12809         * Amanda 2.4.1 released
12810         
12811 1998-08-27  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
12812
12813         * NEWS: typo
12814
12815 1998-08-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
12816
12817         * docs/INSTALL: update some version numbers; SAMBA 1.9.18p10 has
12818         fixed the bug in p8; using p8 is not recommended any more
12819         * docs/SAMBA: ditto
12820
12821         * config/config.guess: updated to libtool 1.2b's, in order to
12822         auto-detect some recent architectures
12823         * config/config.sub: ditto
12824
12825         * server-src/amcleanup.sh.in (sbindir): amreport now lives in
12826         sbindir; added it to PATH and removed full pathnames to binaries
12827
12828 1998-08-27  Blair Zajac  <blair@gps.caltech.edu>
12829
12830         * configure.in: Add the directory /usr/lib/fs/vxfs to the search
12831         path where configure looks for vxdump and vxrestore.  This is for
12832         Solaris so it can automatically handle vxfs filesystems.
12833         * client-src/sendbackup-dump.c: add missing last NULL argument to
12834         newvstralloc().
12835         * server-src/dumper.c: add missing last NULL argument to
12836         newvstralloc().
12837         * NEWS: reorder 2.4.1 items into most to least important for most
12838         users.
12839         * config/acconfig.h: update comment for VXDUMP and VXRESTORE to
12840         include systems where the Veritas filesystem is used.
12841
12842 1998-08-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
12843
12844         * man/amanda.8.in (nofull): only level 1 incrementals
12845
12846 1998-08-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
12847
12848         * changer-src/chg-mtx.sh.in (PATH): added /usr/local/bin
12849
12850         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): added chg-zd-mtx
12851         (AC_OUTPUT): ditto
12852         * changer-src/Makefile.am (EXTRA_SCRIPTS): ditto
12853         * docs/TAPE.CHANGERS (chg-zd-mtx): documented it
12854         (chg-mtx): mentioned chg-zd-mtx
12855
12856 1998-08-20  Eric Doutreleau  <Eric.Doutreleau@int-evry.fr>
12857
12858         * changer-src/chg-zd-mtx.sh.in: new changer script for
12859         Zubkoff/Dandelion version of mtx.
12860
12861 1998-08-19  Alexandre Oliva  <oliva@dcc.unicamp.br>
12862
12863         * docs/SAMBA: updated; documented new patch (sambatar.diff,
12864         available in the patches page) and requirements about backup user.
12865         * docs/INSTALL: documented new patch
12866
12867 1998-08-18  Alexandre Oliva  <oliva@dcc.unicamp.br>
12868
12869         * client-src/sendsize.c (regex_s): refuse to compile if SAMBA_CLIENT
12870         and HAVE_DUMP_ESTIMATE are both defined: the regexp that matches the
12871         estimate from DU 4.0's dump also matches an output line from
12872         smbclient, that provides an incorrect estimate.
12873         * docs/SYSTEM.NOTES: document the problem
12874
12875 1998-08-14  John R. Jackson  <jrj@purdue.edu>
12876
12877         * docs/TAPE.CHANGERS: describe "advance" and clean up some spelling.
12878
12879 1998-08-13  Alexandre Oliva  <oliva@dcc.unicamp.br>, Marcel Hild  <hild@id-pro.de>
12880
12881         * configure.in (--with-portrange): validate and define PORTRANGE
12882         * example/config.site: document it
12883         * config/acconfig.h (PORTRANGE): prepare for configure define
12884         * common-src/stream.c (stream_server): use PORTRANGE to limit TCP
12885         unreserved server sockets
12886
12887 1998-08-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
12888
12889         * docs/FAQ: working around `dumps way too big'
12890
12891 1998-08-11  Alexandre Oliva  <oliva@dcc.unicamp.br>, Gunnar Gunnarsson  <gunnar@ki.ericsson.se>
12892
12893         * common-src/token.h (rxquote, shquote): new functions
12894         * common-src/token.c (rxquote) quotes a string into an equivalent
12895         regular expression
12896         (shquote): quotes all shell special meta-characters, so that a
12897         string can be safely passed down for shell interpretation in
12898         system() or popen()-like calls
12899         * server-src/amindexd.c (build_disk_table): quote the disk_name with 
12900         both rxquote and shquote
12901
12902 1998-08-11  John R. Jackson  <jrj@purdue.edu>
12903
12904         * changer-src/chg-manual.sh.in: put the debug file in DEBUG_DIR for
12905         security.  Clean up and enhance logging.  Fix locations of the
12906         changer files.  Source the changerfile into the script so it can
12907         override the request() function and allow alternatives to /dev/tty
12908         (e.g. E-mail, syslog).  Issue rewind before status (Solaris does
12909         not give a good status report right after a tape is loaded).
12910
12911 1998-08-10  Nick Hibma  <nick.hibma@jrc.it>
12912
12913         * changer-src/chg-chio.pl.in: move to first slot if last is unused
12914
12915 1998-08-07  Alexandre Oliva  <oliva@dcc.unicamp.br>
12916
12917         * example/Makefile.am (EXTRA_DIST): add DIN-A4.ps
12918
12919 1998-08-07  Günter Felkel  <G.Felkel@edelmann.de>
12920
12921         * example/DIN-A4.ps: new file
12922
12923 1998-08-06  Alexandre Oliva  <oliva@dcc.unicamp.br>
12924
12925         * tape-src/tapetype.c (initrandombytes): use random() instead of
12926         rand(), its low-order bits are more random
12927         (main): call srandom(seed) instead of srand(seed)
12928         (USE_RAND): if defined, reverts to using rand() and srand(seed)
12929
12930         * docs/FAQ: some notes about driving real tape changers
12931
12932 1998-08-05  Alexandre Oliva  <oliva@dcc.unicamp.br>
12933
12934         * man/amreport.8.in (SYNOPSIS): replace `amtoc' with `amreport'
12935
12936 1998-08-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
12937
12938         * client-src/sendsize.c: revert 1998-08-01's change, it wouldn't
12939         even compile, as amfree() expands to a statement, not an expression, 
12940         so it cannot be used as the `increment' part of a for loop.
12941
12942         * server-src/planner.c (main): if runs_per_cycle is set to zero or
12943         negative, set it to 1, in order to avoid division by zero.
12944         * server-src/amadmin.c (balance): ditto
12945
12946 1998-08-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
12947
12948         * client-src/sendsize.c: replace free(line) with amfree(line),
12949         because line is not ensured to be non-NULL
12950         
12951         * docs/FAQ: amandad: error receiving message
12952         
12953         * docs/FAQ: difference between skip-full and strategy nofull
12954
12955 1998-07-31  Alexandre Oliva  <oliva@dcc.unicamp.br>
12956
12957         * docs/FAQ: software or hardware compression?
12958
12959         * server-src/driver.c (adjust_diskspace): do not abort just because
12960         a holding disk file is missing
12961         (main): report warning if holding disk directory could not be
12962         created, and do not use it
12963         Reported by Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
12964
12965         * example/Makefile.am (EXTRA_DIST): add 8.5x11.ps to the
12966         distribution
12967         Reported by Jason L Tibbitts III <tibbs@hpc.uh.edu>
12968
12969         * server-src/conffile.c (get_holdingdisk): define chunksize 0 as
12970         INT_MAX/1024, and chunksize -1 as -INT_MAX/1024
12971         * server-src/driver.c (find_diskspace): accept negative chunksizes
12972         as the maximum size (in modulus) for using the holding disk
12973         * man/amanda.8.in (chunksize): document the usage of negative
12974         values, and improve the explanation of chunking
12975         * example/amanda.conf.in: ditto
12976
12977 1998-07-29  Alexandre Oliva  <oliva@dcc.unicamp.br>
12978
12979         * docs/FAQ: disk offline
12980
12981 1998-07-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
12982
12983         * restore-src/amidxtaped.c (main): use tape_rewind() instead of
12984         running `mt'
12985
12986         * server-src/amcleanup.sh.in (reporter): update to call amreport.
12987         (amdump.<n>) update to use the same renaming technique introduced in
12988         June 30's change to amdump.
12989
12990 1998-07-25  Michael Graff  <explorer@vix.com>
12991
12992         * changer-src/Makefile.am (install-exec-hook): support $(DESTDIR)
12993         * client-src/Makefile.am (install-exec-hook): ditto
12994         * man/Makefile.am (install-data-hook): ditto
12995         * recover-src/Makefile.am (install-exec-hook): ditto
12996         * restore-src/Makefile.am (install-exec-hook): ditto
12997         * server-src/Makefile.am (install-exec-hook): ditto
12998
12999         * configure.in: link krb5 and com_err in for Kerberos support, if
13000         they exist
13001
13002 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13003
13004         * server-src/reporter.c (copy_template_file): add braces to 
13005         remove warning
13006         * tape-src/tapeio.h: declare is_zftape to remove warning in
13007         amlabel.c and taper.c
13008
13009 1998-07-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
13010
13011         * server-src/driver.c (any_delayed_disk): new variable, to ensure
13012         that we do not leave the main driver loop if there are delayed disks 
13013         but there are no active dumpers
13014         (main): instead of checking whether idle_reason is IDLE_START_WAIT,
13015         check whether there is any_delayed_disk for remaining in the loop
13016         (start_degraded_mode): set any_delayed_disk when needed
13017         Reported by Peter Walker <peter@talarian.com>
13018
13019 1998-07-23  John R. Jackson  <jrj@purdue.edu>
13020
13021         * server-src/reporter.c (main): handle LPRCMD being undefined.
13022
13023 1998-07-23  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13024
13025         * client-src/selfcheck.c (check_suid): new function to check if a
13026         program is SUID root.
13027         * client-src/selfcheck.c (check_overall): check that runtar and
13028         rundump are SUID root.
13029
13030 1998-07-22  Alexandre Oliva  <oliva@dcc.unicamp.br>
13031
13032         * configure.in: version number set to 2.4.1
13033
13034         * recover-src/Makefile.am (LDADD): libamtape imports symbols from
13035         libamanda, so it must be listed first
13036
13037         * changer-src/Makefile.am (LDADD): remove duplication of libamserver
13038         and libamanda, as they no longer provide symbols for each other
13039         * server-src/Makefile.am (LDADD): ditto
13040         
13041 1998-07-21  Blair Zajac  <blair@gps.caltech.edu>
13042
13043         * server-src/amrmtape.sh.in: now use amanda.conf's tapelist variable
13044         * server-src/amcheckdb.sh.in:  now use amanda.conf's tapelist variable
13045         * server-src/amfreetapes.sh.in: now use amanda.conf's tapelist variable
13046         * server-src/amtoc.pl.in: now use amanda.conf's tapelist variable,
13047         make perl4 compatible
13048
13049 1998-07-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
13050
13051         * docs/FAQ (results missing): suggestions to work around the UDP
13052         packet size limit
13053
13054 1998-07-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
13055
13056         * docs/FAQ (amrecover): a config name may have to be specified
13057         Reported by digital messiah <dmessiah@silcon.com>
13058
13059 1998-07-15  Blair Zajac  <blair@gps.caltech.edu>
13060
13061         * server-src/reporter.c (main): declare optind
13062
13063 1998-07-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
13064
13065         * configure.in: created Amanda 2.4.1 branch
13066
13067         * example/amanda.conf.in: strategy noinc is not implemented yet
13068
13069 1998-07-14  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13070
13071         * NEWS: new runspercycle keyword
13072         * server-src/conffile.h: new runspercycle keyword
13073         * server-src/conffile.c: new runspercycle keyword
13074         * server-src/amadmin.c (balance): new runspercycle keyword
13075         * server-src/planner.c (main): new runspercycle keyword
13076         * man/amanda.8.in: document new runspercycle keyword
13077         * example/amanda.conf.in: example for new runspercycle keyword
13078
13079 1998-07-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
13080
13081         * docs/FAQ: What to do if DUMP program is not available.
13082         * client-src/selfcheck.c (check_overall): if a needed program is
13083         missing, print an error message.
13084         Reported by Klaus Hoffmann <handatalog@csi.com>
13085
13086         * */Makefile.am: checked library version numbers, no need for update
13087         
13088         * configure.in: version number set to 2.4.1b1
13089
13090 1998-07-11  Alexandre Oliva  <oliva@dcc.unicamp.br>
13091
13092         * docs/FAQ: new entries: how to label tapes, (not) spanning large
13093         filesystems across tapes, how to enable index generation,
13094         overwriting selected tapes, cleaning up databases, selecting tape
13095         changer.
13096         
13097 1998-07-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
13098
13099         * man/Makefile.am (EXTRA_DIST): amreport.8 is built from .8.in
13100
13101         * configure.in (AC_OUTPUT): generate chg-chio.pl
13102         * changer-src/Makefile.am (EXTRA_DIST): removed chg-chio.c
13103         * changer-src/chg-chio.c: removed, as it was confusing make
13104         
13105 1998-07-10  Nick Hibma  <nick.hibma@jrc.it>, Alexandre Oliva <oliva@dcc.unicamp.br>
13106
13107         * changer-src/chg-chio.pl.in: new script, created to replace old
13108         chg-chio written in C
13109         * docs/TAPE.CHANGERS (chg-chio): document it
13110         * changer-src/Makefile.am (EXTRA_SCRIPTS): add chg-chio
13111         (EXTRA_DIST): still include chg-chio.c, just in case it is useful
13112         * configure.in (BUILD_CHANGER_SCRIPTS_LIBEXEC): add chg-chio
13113         
13114 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
13115
13116         * server-src/reporter.c (main): if no arguments are given, preserve
13117         original behavior; require config name otherwise.  Perform better
13118         argument checking.
13119         * example/DLT.ps (DrawHost): discard additional argument introduced
13120         in Steven Freed's modification
13121         * example/EXB-8500.ps (DrawHost): ditto
13122         * example/HP-DAT.ps (DrawHost): ditto
13123
13124         * server-src/Makefile.am (amreport_SOURCES): build from reporter.c
13125         (driver_SOURCES) removed, no longer needed
13126         * man/Makefile.am (EXTRA_DIST): added amreport.8
13127
13128 1998-07-08  Steven Freed  <sfreed@gilasoft.com>
13129
13130         * server-src/reporter.c (usage): new function
13131         (main): accept command-line arguments for selecting config name,
13132         output file, log file name to read from, postscript file to write
13133         to.
13134         (output_summary): print tape labels list, tape section numbers and
13135         dump sizes.
13136         * server-src/amdump.sh.in: run amreport
13137         * server-src/amflush.c (main): ditto
13138         (run_dumps): ditto
13139         * configure.in (BUILD_SERVER_PROGS_SBIN): add amreport
13140         (BUILD_SERVER_PROGS_LIBEXEC): remove reporter
13141         * man/amreport.8.in: new file
13142         * man/Makefile.am (man_MANS): added amreport.8
13143         * example/8.5x11.ps: new file
13144
13145 1998-07-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
13146
13147         * Makefile.am (ACLOCAL_M4): fix ||/&& precedence problem
13148
13149 1998-07-07  John R. Jackson  <jrj@purdue.edu>
13150
13151         * changer-src/scsi-chio.c: move #include's so this will compile on
13152         systems without <sys/mtio.h> (e.g. AIX).
13153
13154 1998-07-06  John R. Jackson  <jrj@purdue.edu>
13155
13156         * client-src/sendsize.c (handle_dumpline): allow the dump block
13157         count estimate to be negative.  Found by Lance A. Brown
13158         <brown9@niehs.nih.gov> on NeXT.
13159
13160         * common-src/Makefile.am, common-src/security.c: add TEST code to
13161         security.c so people can do "make security" and have a test program
13162         to track down why they are getting "access as XXX not allowed from
13163         YYY@ZZZ".
13164
13165         * common-src/security.c (bsd_security_ok): allow the remote user
13166         field in .amandahosts to be empty ala .rhosts.
13167
13168 1998-07-04  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13169
13170         * server-src/amcheck.c (start_server_check): report space use for
13171         holding disk if a negative value is given in the use parameter.
13172
13173         * server-src/driver.c (main): compute holding disk space if 
13174         a negative value is given in the use parameter..
13175
13176         * man/amanda.8.in (use) : document negative use paramater for 
13177         holding disk.
13178
13179         * example/amanda.conf.in (use): document negative use paramater for
13180         holding disk..
13181
13182 1998-07-04  Alexandre Oliva  <oliva@dcc.unicamp.br>
13183
13184         * man/amanda.8.in (reserve): document it
13185         * example/amanda.conf.in (reserve, gigabytes): ditto
13186         (etimeout) negative number stands for total estimate time
13187
13188         * NEWS: documented major changes since amanda 2.3.0.4
13189
13190         * docs/INSTALL: refer to patch-system for editing services and
13191         inetd.conf
13192
13193         * docs/FAQ: added entries for common amdump and amcheck errors
13194
13195         * COPYRIGHT: updated to 1998, refer to Amanda Development Team
13196         * AUTHORS: who is the Amanda Development Team
13197
13198 1998-07-03  John R. Jackson  <jrj@purdue.edu>
13199
13200         * docs/SYSTEM.NOTES: add comment about using the variable device name
13201         on IRIX.  Otherwise, IRIX will write 4KByte physical blocks, which
13202         it appears to read OK, but not if you take the tape to some other
13203         system that does what you tell it.  Discovered by Steve E. Khoo
13204         (steve@gordian.com).
13205
13206 1998-07-02  Alexandre Oliva  <oliva@dcc.unicamp.br>
13207
13208         * server-src/planner.c (setup_estimate): handle new disks with
13209         skip-full correctly.
13210
13211         * Makefile.am (aclocal.m4): must depend on libtool.m4, so as to
13212         force it to be newer on distributions.
13213
13214 1998-07-01  John R. Jackson  <jrj@purdue.edu>
13215
13216         * server-src/driverio.h: change reserved_space to unsigned long to
13217         match free_space() and avoid a compiler warning.
13218
13219 1998-06-30  John R. Jackson  <jrj@purdue.edu>
13220
13221         * man/amanda.8.in: fix amrecover synopsis and add a short description.
13222         Noted by Brendan M Coffey <bcoffey@connix.com>.
13223
13224         * example/amanda.conf.in: make tapecycle example fit dumpcycle value
13225         better.  Noted by Tom.Croll@radisys.com and suggested comments from
13226         Alexandre Oliva <oliva@dcc.unicamp.br>.
13227
13228 1998-06-30  Alexandre Oliva  <oliva@dcc.unicamp.br>
13229
13230         * server-src/amdump.sh.in (maxdays): set up with tapecycle+2
13231         (days): loops from 1 to $maxdays, but stops if amdump.$days does not 
13232         exist, so that we only rename amdump log files that exist.  This
13233         prevents too long loops in case of an infinite tapecycle.
13234         Reported by Nick Hibma <nick.hibma@jrc.it>
13235
13236 1998-06-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
13237
13238         * common-src/security.c (bsd_security_ok): accept case mismatches
13239         when comparing hostnames and usernames from amandahosts, and assume
13240         localuser if username is missing.
13241         * docs/INSTALL: clarify BSD security and amandahosts, WRT to
13242         non-FQDNs.
13243         Reported by Chris Shenton <chris@absinthe.shenton.org>
13244
13245         * server-src/reporter.c (output_tapeinfo): degraded mode no longer
13246         implies incremental dumps only.
13247         Reported by Randy Dees <rrd@amherst.com>
13248
13249 1998-06-26  John R. Jackson  <jrj@purdue.edu>
13250
13251         * configure.in: fix BSD/OS Kerberos include file location.
13252
13253 1998-06-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
13254
13255         * config/ltmain.sh: install official patch to libtool 1.2a
13256
13257         * configure.in: do not set max file size for Solaris 2.6, it is no
13258         longer used.
13259
13260 1998-06-26  Tim McNerney  <mumbly@netcom.com>
13261
13262         * common-src/fileheader.c (parse_file_header): accept missing
13263         PROGRAM in tape section header, for backward compatibility.
13264
13265 1998-06-25  Blair Zajac  <blair@gps.caltech.edu>
13266
13267         * server-src/amflush.c: fix mismatch arguments to error()
13268
13269 1998-06-24  Steven Freed  <sfreed@gilasoft.com>
13270
13271         * configure.in (dump-honor-nodump): fix test for `-h' support
13272
13273 1998-06-24  Scott Mesches  <mesches@allison.Colorado.EDU>
13274
13275         * example/DLT.ps: new file
13276         * example/Makefile.am (EXTRA_DIST): add DLT.ps
13277
13278 1998-06-24  Alexandre Oliva  <oliva@dcc.unicamp.br>
13279
13280         * Makefile.am (EXTRA_DIST): moved CHANGES into ChangeLog
13281
13282         * recover-src/extract_list.c (extract_files_child): handle
13283         IS_UNKNOWN dumptype as IS_DUMP
13284
13285         * client-src/sendsize.c (getsize_dump): always create pipe for
13286         killpgrp.
13287
13288         * client-src/amandad.c (sendnak): report `UNKNOWN' error if str is
13289         NULL.
13290
13291         * amplot/amplot.awk: ignore `interface-state'
13292         Reported by Peter Walker <peter.walker@talarian.com>
13293
13294 1998-06-24 Alexandre Oliva <oliva@dcc.unicamp.br>
13295
13296         * server-src/amrmtape.sh.in: enable verbose by default; implement -q 
13297         for quiet.
13298         * man/amrmtape.8.in: ditto
13299         Suggested by Nick Hibma  <nick.hibma@jrc.it>
13300         
13301 1998-06-24  Nick Hibma  <nick.hibma@jrc.it>
13302
13303         * server-src/amrmtape.sh.in: better error reporting for incorrect
13304         database entries
13305
13306 1998-06-24  Dan Swartzendruber <dswartz@druber.com>
13307         
13308         * server-src/conffile.h (RESERVE): new keyword.
13309         * server-src/conffile.c (RESERVE): ditto.
13310         (getconf_seen): recognize "reserve" keyword.
13311         (getconf_int): return value of "reserve" keyword.
13312         (read_confline): parse "reserve" line.
13313         * server-src/driverio.h (reserved_space): new global
13314         * server-src/driver.c (main): compute holding disk space to reserve
13315         for degraded dumps.
13316         (start_degraded_mode): if we haven't hit degraded mode reservation
13317         limit, allow full dump.
13318         
13319 1998-06-18  Blair Zajac <blair@gps.caltech.edu>
13320
13321         * config/ltconfig: update to 1.2a
13322         * config/ltmain.sh: update to 1.2a
13323         * config/libtool/libtool.m4: update to 1.2a
13324
13325 1998-06-17  John R. Jackson  <jrj@purdue.edu>
13326
13327         * server-src/dumper.c (write_tapeheader): comment out some variables
13328         to get rid of a compiler warning.
13329
13330 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13331
13332         * server-src/amadmin.c (bumpsize): write wrong equation for bump
13333         threshold.
13334
13335 1998-06-15  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13336
13337         * man/amanda.8.in: add info about the chunksize parameter
13338         of the holdingdisk.
13339         * man/amanda.8.in: add info about amstatus command
13340
13341 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
13342
13343         * common-src/Makefile.am (libamanda_version): updated
13344         * tape-src/Makefile.am (libtape_version): updated
13345         * client-src/Makefile.am (libclient_version): updated
13346         * server-src/Makefile.am (libserver_version): updated
13347
13348         * server-src/taper.c (read_file): if switching to the next file
13349         fails or there's no next file, do not send a `W' to taper writer.
13350
13351         * server-src/changer.h (changer_clean): new function
13352         * server-src/changer.c (changer_clean): ditto
13353
13354 1998-06-13  Michael C. Povel  <mcp@ladyada.han.de>
13355
13356         * changer-src/chg-scsi.c: added ejetct_tape and sleep for external
13357         tape devices, and changed some code to allow multiple drives to use
13358         their own slots. Also added support for reserverd slots.
13359         * changer-src/libscsi.h (get_clean_state, eject_tape): new functions 
13360         * changer-src/scsi-chio.c (get_clean_state, eject_tape): implemented 
13361         using Linux ioctls
13362         * changer-src/scsi-hpux.c (get_clean_state, eject_tape): do nothing, 
13363         until someone implements them
13364         * changer-src/scsi-proto.c (get_clean_state, eject_tape): new
13365         functions
13366         * docs/TAPE.CHANGERS: document new configuration file format
13367         * example/chg-scsi.conf: sample configuration file
13368         * example/Makefile.am: add chg-scsi.conf to the distribution
13369         * server-src/amtape.c: add support for `clean' command
13370
13371 1998-06-13  Alexandre Oliva  <oliva@dcc.unicamp.br>
13372
13373         * docs/SYSTEM.NOTES: clean-up
13374
13375         * docs/FAQ: new file
13376         * docs/SUNOS4.BUG: removed
13377         * Makefile.am: remove docs/SUNOS4.BUG and add docs/FAQ
13378         
13379         * example/amanda.conf.in (bumpmult): fixed equation for threshold
13380         * man/amanda.8.in (bumpsize): fix threshold example.
13381         problem reported by Brian McEntire <brianm@fsg1.nws.noaa.gov>
13382
13383         * server-src/logfile.c (open_log): open log file with mode 0600.
13384
13385         * server-src/amdump.sh.in: refuse to run if either amdump or log
13386         exist in logdir.
13387         * server-src/amflush.c (main): refuse to run if log exists.
13388         * server-src/amcheck.c (start_server_check): do not perform tape
13389         testing if amdump and/or log exist in logdir.
13390
13391 1998-06-11  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13392
13393         * restore-src/amrestore.c (restore): fixed -p flag (and amrecover)
13394         should not dup2( A, B ); aclose(A) when A == B
13395
13396 1998-06-10  Alexandre Oliva  <oliva@dcc.unicamp.br>
13397
13398         * client-src/sendsize.c (getsize_dump): use killpgrp
13399         unconditionally, so we're not bitten by setuid dump programs.
13400         * client-src/killpgrp.c: enable unconditionally.
13401
13402         * tape-src/tapetype.c: new program: calculates tapetype parameters.
13403         * tape-src/Makefile.am (EXTRA_PROGRAMS): added tapetype.
13404         * example/amanda.conf.in: point to tapetype program.
13405
13406 1998-06-09  Alexandre Oliva  <oliva@dcc.unicamp.br>
13407
13408         * docs/SAMBA: added notes about (not) backing up registry files and
13409         ACLs with SAMBA.
13410         * docs/INSTALL: point to docs/SAMBA for usage and limitations
13411
13412 1998-06-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
13413
13414         * configure.in (amanda_cv_print_command): removed; using PRINT
13415         instead.
13416
13417 1998-06-07  Todd Kover <kovert@omniscient.com>
13418
13419         * add --with-owner option to allow installed binaries to be owned
13420         by someone other than the amanda user
13421
13422         * add GB as valid holding disk size.
13423
13424 1998-06-07  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13425
13426         * server-src/amadmin.c (info): don't need to specify an host.
13427
13428         * server-src/amadmin.c (due): new due command to write when a
13429         filesystem is due ffor next level 0 or how much days it is
13430         overdue.
13431
13432         * server-src/amstatus.pl.in (dump_size): new function to report
13433         the size of a dump split on multiple files.
13434
13435 1998-06-05  Jean-Louis Martineau <martineau@IRO.UMontreal.CA>
13436
13437         * recover-src/extract_list.c (read_buffer): write a message
13438         when amrecover timeout waiting for amrestore to send the dump.
13439
13440 1998-06-04  John R. Jackson  <jrj@purdue.edu>
13441
13442         * client-src/getfsent.c (main): use a dynamically allocated string
13443         for the lookups since dev2rdev alters it on the fly and some systems
13444         drop core for trying to write into read only memory.  Also add the
13445         capability of passing additional lookups on the command line.
13446
13447         * common-src/Makefile.am, common-src/file.c (main),
13448         common-src/token.c (main), server-src/conffile.c (dump_configuration,
13449         main), server-src/diskfile.c (main), server-src/infofile.c (main):
13450         Clean up compiler warnings in the test programs and make them all
13451         work again.
13452
13453 1998-06-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
13454
13455         * amplot/amplot.sh.in: modified command line argument parsing
13456         mechanism, so as to prevent shell quoting problems and unportable
13457         constructs.
13458         Reported by Chris Jones <cjones@clydesdale.math.montana.edu>
13459
13460 1998-06-02  John R. Jackson  <jrj@purdue.edu>
13461
13462         * server-src/amcheck.c (main), server-src/reporter.c (main): make
13463         sure internal errors, such as the mail command failing, get
13464         reported.  In the case of amcheck, they go to stderr even if -m is
13465         set since there didn't seem to be anyplace better to do so and if
13466         this is running from a cron job it might get back to a real user.
13467         For reporter, the errors go to .../amdump along with everything
13468         else from the amdump script, and they should also go to .../log,
13469         except since it's reporter that's having the trouble, they probably
13470         will not make it into the mail report.
13471
13472 1998-06-01  John R. Jackson  <jrj@purdue.edu>
13473
13474         * client-src/killpgrp.c: clean up minor compiler warnings by not
13475         building term_kill_{soft,hard} unless they are needed.
13476
13477         * server-src/driverio.c (dumper_cmd): clean up compiler warning
13478         in printf format by forcing argument to always be long and using %ld.
13479
13480         * server-src/driver.c: include <holding.h> to get declaration for
13481         unlink_holding_files and avoid a compiler warning.
13482
13483         * common-src/amanda.h, common-src/match.c (validate_glob, match_glob,
13484         glob_to_regex), recover-src/amrecover.h, recover-src/extract_list.c
13485         (add_glob, add_regex, add_file, delete_glob, delete_regex,
13486         delete_file), recover-src/help.c (help_list), recover-src/uparse.y,
13487         recover-src/uscan.l, man/amrecover.8.in: add shell wildcard support
13488         for the add/delete amrecover commands.  Add addx/deletex commands
13489         that use regular expressions.  Support more characters in path names.
13490
13491 1998-06-01  Dan Swartzendruber  <dswartz@druber.com> via John R. Jackson
13492
13493         * server-src/amlabel.c (main): check argc before referencing too
13494         far into argv for "-f".
13495
13496 1998-06-01  Alexandre Oliva  <oliva@dcc.unicamp.br>
13497
13498         * docs/SYSTEM.NOTES: advise Linux users to use dump without
13499         setuid/setgid
13500
13501         * docs/INDEXING: update dumptype syntax
13502
13503 1998-05-29  John R. Jackson  <jrj@purdue.edu>
13504
13505         * server-src/amindexd.c (uncompress_file, process_ls_dump,
13506         build_disk_table, is_dir_valid_opaque, opaque_ls): fix file
13507         descriptor leak, log the amadmin find command, fix error reporting
13508         from routines that do not generate system errors.
13509         * common-src/amanda.h: make sure errno is saved through amfree().
13510
13511 1998-05-28  Alexandre Oliva  <oliva@dcc.unicamp.br>
13512
13513         * docs/SYSTEM.NOTES: GNU tar must be patched on HP/UX.
13514         * patches/tar-1.12.patch: ditto.
13515
13516         * server-src/taper.c (endtape): do not log amount of used tape after 
13517         entering degraded mode.
13518
13519         * client-src/sendsize.c (getsize_dump): pass at least argv[0] to
13520         killpgrp.
13521
13522 1998-05-28  Paul R. Johnson  <prj@mit.edu>
13523
13524         * client-src/sendbackup.c (check_status): when checking whether
13525         return status 1 is valid for dump, make sure it was *not* tar that
13526         was running.
13527
13528 1998-05-28  Tom Lear <toml@accesscom.com>, John R. Jackson  <jrj@purdue.edu>
13529
13530         * man/amcheck.8.in: document new -Maddress command line flag.
13531         * server-src/amcheck.c (usage, main): add -Maddress command line
13532         flag to send mail to a specific address instead of mailto from
13533         amanda.conf.
13534
13535 1998-05-27  John R. Jackson  <jrj@purdue.edu>
13536
13537         * man/amrestore.8: update for host/disk/date triplets.
13538         * recover-src/extract_list.c (extract_files_setup): pass datestamp
13539         argument in new position and without -d.
13540         * restore-src/amidxtaped.c (main): remove -d checks.
13541         * restore-src/amrestore.c (restore, usage, main): fix file descriptor
13542         leak, move datestamp to host/disk triplet and allow all to be repeated.
13543
13544 1998-05-27  Alexandre Oliva  <oliva@dcc.unicamp.br>
13545
13546         * client-src/killpgrp.c (main): wait for either SIGTERM or EOF on
13547         stdin.
13548
13549         * client-src/sendsize.c (getsize_dump): close the other end of
13550         killpgrp's stdin pipe before trying to kill it, because we just
13551         can't kill it.
13552
13553         * configure.in (HAVE_HPUX_SCSI): check whether sys/scsi.h actually
13554         supports HP/UX-like changer commands.
13555
13556         * config/acconfig.h (HAVE_HPUX_SCSI): indicates HP/UX-like changer
13557         interface is supported.
13558
13559         * changer-src/scsi-hpux.c: check for HAVE_HPUX_SCSI instead of
13560         HAVE_SYS_SCSI_H.
13561
13562 1998-05-25  Allen Briggs  <briggs@canolog.ninthwonder.com>
13563
13564         * changer-src/chg-manual.sh.in (ONLINEREGEX): add `^er=0$' for
13565         NetBSD's mt
13566
13567 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
13568
13569         * client-src/sendsize.c (getsize_dump): killpgrp must be direct
13570         child of sendsize, otherwise sendsize won't be able to kill it.
13571
13572 1998-05-23  Alexandre Oliva  <oliva@dcc.unicamp.br>
13573
13574         * configure.in (bcopy, bzero, fread, fwrite, vfprintf, vprintf,
13575         vsprintf): check for these in stdlib.h
13576         (memmove): check for it in strings.h
13577         
13578         * common-src/amanda.h (memmove): fix declaration of memmove, so as
13579         to be compatible with the ones in common-src/memmove.c and
13580         regex-src/fake/memmove.c
13581         
13582         reported by Tim Potter <tpot@acsys.anu.edu.au>
13583
13584 1998-05-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
13585
13586         * client-src/sendbackup.c (check_status): when checking whether dump 
13587         returned 1, make sure it was not tar; #ifdef'ed out the code that
13588         ignores exit status 2 from gnutar (will be compiled in only if
13589         IGNORE_TAR_ERRORS is defined)
13590         * client-src/sendbackup-gnutar.c (GNUTAR active filesystem errors): 
13591         updated comment; compile in GNUTAR error messages as DMP_NORMAL if
13592         IGNORE_TAR_ERRORS is defined; compile in SMBCLIENT error messages as 
13593         DMP_NORMAL if IGNORE_SMBCLIENT_ERRORS is defined.
13594         
13595 1998-05-20  Tom Lear  <toml@accesscom.com>
13596
13597         * client-src/sendbackup.h (tarpid): new variable, used to check
13598         whether it is gnutar that is running
13599         * client-src/sendbackup-gnutar.c (start_backup): set tarpid when
13600         starting gnutar
13601         * client-src/sendbackup.c (check_status): if gnutar returns 2,
13602         ignore the error
13603
13604 1998-05-19  Jean-Louis Martineau <martineau@IRO.UMontrealCA>
13605
13606         * client-src/amandad.c: set parse_errmsg when unexpected packet
13607         * recover-src/amrecover.c: overflow in clean_pathname()
13608         * recover-src/extract_list.c: add log in delete_file().
13609         small bug when call clean_pathname()
13610         * server-src/amindexd.c: ORLD command is not working
13611         * server-src/dumper.c: fixe overflow
13612
13613 1998-05-17  Alexandre Oliva  <oliva@dcc.unicamp.br>
13614
13615         * configure.in: do not check for MAXFILESIZE
13616         * config/acconfig.h: do not define MAXFILESIZE
13617         * server-src/conffile.c: use INT_MAX instead of MAXFILESIZE
13618         * example/amanda.conf.in: ditto
13619
13620         * server-src/driver.c (interface_state): new function; print the
13621         free bandwidth for each interface.
13622         (short_dump_state): call interface_state before holdingdisk_state
13623
13624         * ChangeLog: renamed from CHANGES.  Original entries follow.
13625
13626         fix skip-incr handling so that reporter reports SKIPPED
13627         instead of missing result.
13628         -Jim Simmons <s4i@sws6.ctd.ornl.gov>
13629
13630         split big dumps ( > MAXFILESIZE ) in multiple files on holding disk. 
13631         new chunksize parameter in holdingdisk description of 
13632         the amanda.conf file.
13633         -J-L Martineau <martineau@IRO.UMontreal.CA>
13634
13635         an amstatus command that give the current state of a run.
13636         -J-L Martineau <martineau@IRO.UMontreal.CA>
13637
13638         possibility to amflush multiple runs on one tape.
13639         possibility to select dump by datestamp in amrestore (-d datestamp).
13640         -J-L Martineau <martineau@IRO.UMontreal.CA>
13641
13642         amidxtrm keep index of all active tapes as listed in tapelist file.
13643         -J-L Martineau <martineau@IRO.UMontreal.CA>
13644
13645         the tapelist file keep every active tapes.
13646         "amadmin reuse" and "amadmin no-reuse" to mark tapes you want
13647         to keep for a long time.
13648         -J-L Martineau <martineau@IRO.UMontreal.CA>
13649
13650         amlabel will not overwrite an amanda tape.
13651         The -f flag allow to overwriting an amanda tape.
13652         -J-L Martineau <martineau@IRO.UMontreal.CA>
13653
13654         be consistent and use 1048576 as a dump size everyplace instead of
13655         100000 in some places (mostly cosmetic).  -JJ
13656
13657         negative numbers are now accepted in the configuration file
13658         parser.  -oliva
13659
13660         allow a total estimate time-out to be specified.  -oliva
13661         Suggested by Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
13662
13663         fix amtoc behavior in case of failed reads.
13664         -Niek Rijnbout <niek@knoware.nl>
13665
13666         index files are now stored in a directory tree ala curinfo instead
13667         of a flat namespace. -JJ
13668
13669         amrecover will now restore files using SAMBA.
13670         -Rob Riggs <rob@devilsthumb.com>
13671
13672         VXDUMP needs not be run as root, so it no longer enables
13673         rundump automatically.  -oliva
13674
13675         new `killpgrp' setuid-root program.  It is used to kill
13676         VDUMP, VXDUMP and XFSDUMP or with-rundump DUMP estimates in a
13677         safe manner.
13678         -Joerg Behrens <jbehren@umpa06.gwdg.de> & oliva
13679
13680         fixed amrmtape so that it will delete from tapelist only the
13681         entry that corresponds to the specified tape, not others that
13682         contain the tape name as a substring.
13683         -Nick Hibma <nick.hibma@jrc.it> & oliva
13684
13685         Added support for FreeBSD dump -h flag (honor nodump).
13686         -James E. Housley <housley@pr-comm.com>
13687
13688         Added support for ZFTAPE on Linux.
13689         -Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
13690
13691         Added support for printing tape labels.
13692         -Scott Mesches <mesches@allison.Colorado.EDU>
13693
13694         Do not let amrecover die because of SIGPIPE if the pager terminates
13695         early during a long listing.  Use the PAGER environment variable if
13696         available, else "more".  -JJ
13697
13698         Change log() calls to log_add() so it does not conflict with the math
13699         function of the same name.  Replace pname global variable with two
13700         functions to set/get.  Get rid of libamnolog.  -JJ
13701
13702         chg-chio was renamed to chg-scsi, and now it will support not
13703         only chio.h, but also tape changer interfaces available on
13704         HPUX, Solaris 2.5, IRIX and possibly others.  Currently, only
13705         chio and HPUX are implemented.
13706         -Eric Schnoebelen <eric@cirr.com>
13707
13708         Numerous bugs/errors were fixed in chg-chio/chg-scsi.  it now
13709         properly responds to -eject requests, among other things.
13710         -Eric Schnoebelen <eric@cirr.com>
13711
13712 Version 2.4.0p1
13713
13714         updated to libtool 1.2a.  -oliva
13715
13716         fix kerberos encryption to work.  -Chris Ross <cross@uu.net>
13717
13718         add --with-owner option to optionally not have things owned by
13719         the amanda user.  (meant to be in 2.4.0) -kovert
13720
13721         only call initgroups() if it is available.  -oliva
13722
13723         check whether GNUTAR_LISTED_INCREMENTAL_DIR is a directory.
13724         -oliva, reported by J.A. Gutierrez <spd@gtc1.cps.unizar.es>
13725
13726         amindexd no longer considers prefixes of hostnames as valid
13727         hostnames. -oliva
13728
13729         fix strappend2 so that it accepts a NULL first argument.
13730         -Rob Riggs <rob@devilsthumb.com>
13731
13732         pass kerberos encryption switch to client.
13733         -Fredrik Jönsson <fjo@nada.kth.se>
13734
13735         rename afree to amfree, to work around IRIX 6.4's afree.
13736         -oliva, reported Stephan P. Martin <smartin@schlund.de>
13737
13738         implement `strategy skip' just like `ignore'.
13739         -oliva,
13740         reported by Michael O'Shaughnessy <mikeo@emg.sms.siemens.com>
13741
13742         amcheck now checks whether COMPRESS_PATH is executable, which
13743         would prevent server-compression and indexing from working.
13744         -oliva, reported by Peter Schultze <peter@mbi.ucla.edu>
13745
13746         fixed dump estimate regular expression for DU 4.0.
13747         -Andreas Schmitz <schmitz@theorie.physik.uni-wuppertal.de>
13748
13749 Version 2.4.0
13750
13751         fixed memory corruption error in amtape.
13752         -oliva
13753
13754         fixed VXDUMP support.
13755         -Andrew Ivanov <ivanov@mics.msu.su> & oliva
13756
13757         typos fixed in chg-chs.
13758         -David Barr <dbarr@simplex.com>
13759
13760         chg-mtx now prints error message if tapedev or changerdev must
13761         be defined.
13762         -Adrian T. Filipi-Martin <atf3r@cs.virginia.edu>
13763
13764         fixed amflush problem, reported by Dietmar Goldbeck
13765         <dietmar@telemedia.de>  -oliva
13766
13767 Version 2.4.0-980319
13768
13769         chg-mtx should use changer-dev if specified.
13770         -Steve Khoo <steve@gordian.com>
13771
13772         flex-related backward-compatibility problem fixed.
13773         -Norman K Scherer <nsche@seros-48.hac.com>
13774
13775         ported to RISCOS 4BSD.  -Harlan Stenn <Harlan.Stenn@pfcs.com>
13776
13777         when amrecover starts up, it will warn you $CWD is not the root
13778         of the selected filesystem.  -oliva
13779
13780         removed all uses of #elif, because some C compilers won't
13781         handle it correctly. -Gunther Felkel <G.Felkel@edelmann.de>
13782
13783         fixed VDUMP-only (no DUMP defined) estimates.
13784         -Joern Behrens <jbehren@umpa05.gwdg.de>
13785
13786         ported to UnixWare.  -Jeff Moscow <jeff@rtr.com>
13787
13788         improved vxdump support so that rundump will be used for vxfs
13789         filesystems only, and it will be enabled automatically.  -oliva
13790
13791         various portability problems fixed.
13792
13793         taper will now log reason for tape error to log.<DATE> file,
13794         in addition to amdump.<n>.
13795         -Liudvikas Bukys <bukys@cs.rochester.edu>
13796
13797         amflush now correctly updates the info database.  -oliva
13798         reported by Liudvikas Bukys <bukys@cs.rochester.edu>
13799
13800         sendsize now wait()s for tar and samba child processes.  -oliva
13801         reported by Brian Morris <brian@mvhs.fuhsd.org>
13802
13803         ensure that `amadmin find' reports multiple backups performed on
13804         the same day in the correct sequence.
13805         -Liudvikas Bukys <bukys@cs.rochester.edu>
13806
13807         if backup server has multiple IP addresses, security code
13808         might reject it.  -Gunnar Gunnarsson <gunnar@ki.ericsson.se>
13809
13810         vdump would not work.  -oliva
13811
13812         kerberos support was broken.  -mike
13813
13814 Version 2.4.0-980222
13815
13816         retry tape open on AIX if it fails with EAGAIN errno.
13817         -Francois Morris <Francois.Morris@lmcp.jussieu.fr>
13818
13819         fix amrmtape so that it behaves well when files to amflush
13820         remain.  Reported by Dietmar Goldbeck <dietmar@telemedia.de>
13821
13822         retry tape rewind on FreeBSD.  -Bob Willcox <bob@prm.com>
13823
13824         read all output from amrestore otherwise, instead of the
13825         beginning of the next tape section, it would read garbage.
13826         -Terje Malmedal <tm@odin.funcom.com> & oliva
13827
13828         formatting error in amoverview fixed.
13829         -Terje Malmedal <tm@odin.funcom.com>
13830
13831 Version 2.4.0b6p4
13832
13833         use vdump to dump advfs filesystems only.  add support for vdump
13834         indexes.
13835         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk> & oliva
13836
13837         change index generation commands so that they are less prone
13838         to be fooled by blanks or strange characters in filenames.
13839         -oliva
13840
13841         check whether exclude-list file exists before calling gnutar.
13842         If it does not, log a message to debugging file and discard it.
13843         selfcheck should check for that too, and print a warning message,
13844         but this is left for a future version.  -oliva
13845
13846         fix sendbackup-gnutar crashing problem.  -oliva
13847
13848         ensure that, in case of tape failure when dumping to tape, no
13849         incremental relative to the failed backup is performed.
13850         -oliva & Liudvikas Bukys <bukys@cs.rochester.edu>
13851
13852         Fix buffer use and write() error handling in the index pipeline.
13853         -Dietmar Goldbeck <dietmar@telemedia.de>
13854         & Lars Fenneberg <lf@elemental.net>
13855
13856         new index generation commands.  -oliva
13857
13858 Version 2.4.0b6p3
13859
13860         accept curses and ncurses in addition to termcap for readline
13861         support, just as readline itself does.  -oliva
13862
13863         fix NO-ROOM handling when Kerberos encryption is enabled.
13864         -oliva & Eric Siegerman <erics@now.com>
13865
13866         patch file for automake 1.2d provided. -oliva
13867
13868         sendbackup.debug now contains the argument list of child
13869         processes. -oliva
13870
13871         wait() for child processes, such as server compressor, before
13872         accepting other commands.
13873         -Liudvikas Bukys <bukys@cs.rochester.edu>
13874
13875         amrecover will print an error message if it is not run by root.
13876         It will not crash if you `pwd' before selecting a disk.  -oliva
13877
13878         updated to libtool 1.0i. -oliva
13879
13880         fixed tape block size of vxdump on HPUX 10.20.
13881         -Andrew Ivanov <ivanov@mics.msu.su>
13882
13883         Use "a" mode instead of "w" for the fdopen of the debug file.
13884         -David Lamkin <drl@net-tel.co.uk>
13885
13886         allow multiple concurrent gnutar backups, by fixing amandates
13887         locking mechanism.
13888         -Liudvikas Bukys <bukys@cs.rochester.edu>
13889
13890         amdump should check for a hold file, as says the man-page.
13891         -oliva
13892
13893         fix automatic enabling of USE_RUNDUMP for systems that require
13894         this.  xfsdump support no longer requires USE_RUNDUMP to be
13895         defined, rundump will be enabled and used for xfs filesystems
13896         even if USE_RUNDUMP is not defined, unless XFSDUMP is not defined.
13897         This seems to have completely solved the xfsdump problems.
13898         -oliva
13899
13900         when USE_RUNDUMP is enabled, instead of checking for read or write
13901         access in selfcheck, just test for the existence of disk devices.
13902         -oliva
13903
13904         fixed code that computed the dump size when incomplete
13905         writes occurred in dumper.  -Eric Siegerman <erics@now.com>
13906
13907         amplot no longer crashes if there's no holding disk. -oliva
13908
13909 Version 2.4.0b6p2
13910
13911         fix xfsdump index generation command.
13912         -Robert Tarrall <tarrall@bamboo.colorado.edu>
13913
13914         tape device wouldn't rewind if opened O_WRONLY.
13915         -Palle Girgensohn <girgen@partitur.se> & oliva
13916
13917         use setpgid instead of setpgrp if available
13918         -Mark Woodford <woodford@uniprise.com> & oliva
13919
13920         chg-mtx will check whether slot 6 is a cleaning tape or not.
13921         -Martyn Johnson <Martyn.Johnson@cl.cam.ac.uk>
13922
13923         amrmtape updated to text database.  -oliva
13924
13925         incorrect NO-ROOM error when dumping directly to tape fixed.
13926         -oliva
13927
13928         --with-user and --with-group become are now required.  -oliva
13929
13930         patch-system script much more configurable.  -oliva
13931
13932         amindexd must get an exact match for diskname.
13933         -Richard Kail <e8903122@student.tuwien.ac.at> & oliva 
13934
13935         fix serial number message in amflush
13936         -Liudvikas Bukys <bukys@cs.rochester.edu>
13937
13938         removed backslashes from inside macro calls.
13939         un-indented # directives.
13940         -Gregory Neil Shapiro <gshapiro@WPI.EDU>
13941
13942         bsd-security is now enabled by default.  -oliva
13943
13944         fixed estimate command for XFSDUMP.
13945         -Mark Radleigh <radleigh@image.ucr.edu>
13946         & Jeff Moskow <jeff@rtr.com>
13947
13948 Version 2.4.0b6p1
13949
13950         documented etimeout configuration option.  -oliva&jrj
13951
13952         prevent a few crashes in dumper and reporter.  -jrj
13953
13954         reporter would report the same host and disk for RESULTS MISSING.
13955         -martineau
13956
13957         fix a few file-locking configure bugs.  -oliva
13958
13959         chg-multi updates and bugfixes.
13960         -Liudvikas Bukys <bukys@cs.rochester.edu>
13961
13962 Version 2.4.0b6
13963
13964         amindexd bugfix -Jos Alsters <Jos.Alsters@sci.kun.nl>
13965
13966         New --disable-libtool configure option, for those who really don't
13967         want libraries to be installed.  Shared libraries won't be
13968         built, of course.  -oliva
13969
13970         samba-related bugfixes.
13971         -Klaus Thiele <kth@becker-software.com>
13972
13973         xfsdump, DNS and amidxtaped bugfixes. -martineau
13974
13975         exclude-list support was broken, the filename was not copied
13976         to the gnutar argument list.
13977         -Stefan Bohm <Stefan.Bohm@rp-online.de>
13978
13979         chg-chio still thought it was seagate-changer, and contained a
13980         few bugs.  -Tim Tsai <tim@futuresouth.com>
13981
13982         New file docs/RESTORE, by Daniel Moore <dmoore@jeffco.k12.co.us>
13983
13984 Version 2.4.0b5
13985
13986         Make sure amverify waits for the tape device to be ready before it
13987         starts reading each section. -oliva
13988
13989         Fix amrecover so that it accepts filenames with blanks.
13990         -J. Shirk <jshirt@ksu.edu> & oliva
13991
13992         Add a TIMEOUT config file parameter to replace the hard coded value
13993         in planner.  -Daniel David Benson <bensond@ucdavis.edu>
13994
13995         Change amrecover/amindexd/amidxtaped to require a SECURITY
13996         exchange if --with-bsd-security is enabled.  It is done on a
13997         reserved port, which means amrecover must be run as root and that
13998         amindexd/amidxtaped need an entry for the incoming amrecover in
13999         either .rhosts or .amandahosts (Kerberos is not yet supported).  --JJ
14000
14001         Make our internal TEXTDB the default database style for the infofile.
14002         If you wish to keep using a dbm style database use the configure
14003         option "--with-db={db,dbm,gdbm,ndbm}".
14004         -scott
14005
14006         Sanitise the disk name in the TEXTDB code.
14007         **NOTE** if your infofile database uses TEXTDB (which has only been
14008                  available since Amanda-2.4.0b1) and you have '/'s in the
14009                  first field in disklist you will need to 'amadmin export'
14010                  the data using the old version of Amanda, 'mv' the old
14011                  database out of the way and 'amadmin import' it back again
14012                  using the new version.  When you are happy with the new
14013                  version you may delete the old database.
14014         -scott
14015
14016         Get rid of DEV_ROOT/DEV_RROOT and figure out the raw name on the
14017         fly by trying a leading 'r' before each path element one at a time
14018         until we find a character device.  This should handle all the current
14019         cases plus things like Solaris DiskSuite that have /dev/md/rdsk/xxx
14020         names.  -JJ
14021
14022         Change kill logic in sendsize to try TERM first, then KILL if that
14023         does not get dump's attention.  This fixes a problem on AIX 4.x
14024         where dump was always getting a KILL and leaving orphaned message
14025         queues, which would eventually run the system out of resources.  -JJ
14026
14027         Extensive buffer management, bug and defensive coding overhaul
14028         including:
14029             * Use proper fgets/fread/read buffer size.
14030             * Wrote agets and areads to get a line without buffer overflow
14031               and changed most gets/fgets and some read calls to use it.
14032             * Replaced all *scanf("...%s...") with explicit pointer work.
14033             * Replaced most fixed size buffers with dynamic ones.  This has
14034               no doubt introduced some memory leaks.
14035             * Replaced most sprintf calls with vstralloc (new routine).
14036             * Added overflow checks to some remaining explicit buffer
14037               management.
14038             * Made almost all read() and write() calls into loops to handle
14039               short and broken up transfers.
14040             * Fixed potentially uninitialized fstype field.
14041             * Added more sanity checks when parsing various things, including
14042               converting some assert() calls to real code.
14043             * The pattern amtrmidx used to find old index files to delete
14044               thought the date field was YYYY-MM-DD, but it is YYYYMMDD,
14045               so no files were being deleted.
14046             * Limited the number of directories listed by amflush to 26 to
14047               avoid funny characters in the user prompt.
14048             * Changed some of the amrecover routines to soak up the rest of
14049               the continuation lines after an error.
14050             * If a dumper dies, driver still tries to send a QUIT command
14051               which fails because the file descriptor has been closed.
14052             * Wrote afree macro that calls free and then sets the pointer
14053               to NULL.  Changed most free calls to afree.
14054             * Wrote aclose/afclose/apclose macros to do the associated close
14055               and then set the argument to something invalid (-1 or NULL).
14056             * Check the file descriptor before calling FD_ISSET in dumper.
14057               Otherwise it goes to -1 on EOF and FD_* doesn't like that.
14058             * Call aclose() after FD_CLR (so the descriptor is not -1).
14059         Odds and ends:
14060             * Added some TEXTDB support code to the infofile test program.
14061             * Set it up so -DPROTO_DEBUG could come from the compiler command
14062               line instead of having to modify the source.
14063             * Added -t command line flag code to sendbackup.c to support some
14064               limited debugging.
14065             * Added a test to amcheck to see if the log file is writable
14066               (if it already exists).  During debugging, I keep leaving one
14067               around owned by root :-).
14068             * Changed upper limit on close loops from 255 to FD_SETSIZE.
14069               This probably needs some more study.
14070         -JJ
14071
14072         If krb4 auth was compiled in but not enabled, clients would hang
14073         forever.  -Aidan Cully <aidan@panix.com>
14074
14075         Make sure SAMBA will not clear archive bits when performing an
14076         incremental backup, so any incremental will be a level 1.
14077         -martineau
14078
14079         Add a LOGDIR option to amanda.conf and use it to replace the
14080         --with-logdir option to configure (this was only used for the
14081         amdump files) and the logfile option in amanda.conf.  Log
14082         files are now LOGDIR/log and amdump files are LOGDIR/amdump.
14083         Note: if there is a LOGFILE option in amanda.conf it has its
14084         filename removed and is used as the LOGDIR (eg, if you have
14085         "logfile /usr/adm/amanda/log" in amanda.conf it is translated to
14086         "logdir /usr/adm/amanda" instead).  This should not cause a
14087         problem for most sites.
14088         -scott
14089
14090         Remove --with-dbdir option from configure.  This was only used
14091         to setup things for the man pages and example files.  Oh.. and
14092         amrmtape.  Fix this as well.
14093         -scott
14094
14095         Remove --with-indexdir option from configure.  This is obtained
14096         from amanda.conf at run time.  Also fix things so that it *is*
14097         obtained from amanda.conf in all cases.
14098         -scott
14099
14100         This is no longer tested on configure.in, since it is
14101         expressly forbidden to include kernel headers under glibc,
14102         according to Matthias Urlichs <smurf@noris.de>.  However, Eric
14103         Doutreleau <ed@cti.ecp.fr> said he needed to include this
14104         header file in order to build amanda on
14105         sparc-unknown-linux-gnu.  -oliva
14106
14107         It is now possible to specify a username to be used to backup
14108         up with samba.
14109         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
14110
14111         Make sure dumper replies with ABORT_FINISHED when a PORT-DUMP
14112         is aborted because of tape error.
14113         -Michael C. Povel <Michael.Povel@hub.de>
14114
14115         Amcheck checks only for the needed features.
14116         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
14117
14118         Performance and memory-usage improvements to amrecover.
14119         -Jean-Louis Martineau <martinea@iro.umontreal.ca>
14120
14121         Use extended regular expressions.
14122         -Noel Hunt <noel@jpmorgan.com>
14123
14124         Fixed regular expressions for samba support.
14125         -Brian Fernald <fernald@nsi.edu>
14126
14127         Fixed a few bugs that caused arithmetic exceptions in planner.
14128         -Bob Willcox <bob@luke.pmr.com>, Evan Champion
14129         <evanc@synapse.net>, scott and oliva
14130
14131         amrecover should now be able to handle GNUtar restores.
14132         -Jean-Louis Martineau <martinea@iro.umontreal.ca>, plus
14133         incremental (-G) patch by Lars Fenneberg <lf@elemental.net>
14134
14135         Ported to SINIX (Reliant Unix V5.43).
14136         -Michael Schmitz <mschmitz@iname.com>
14137
14138         Configure now looks for large file support and will use it under
14139         Solaris 2.6 and above.
14140         -Blair Zajac <blair@gps.caltech.edu>
14141
14142         Compatibility problems fixed for:
14143                 SCO OpenServer 5.0.2: Paul Gampe <paulg@twics.com>
14144
14145 Version 2.4.0b4
14146
14147         New changerfile and changerdev configuration keywords, that
14148         allow changer scripts to be configured in the main amanda
14149         configuration file.  Each changer script has been adapted, so
14150         that it uses those flags whenever possible.  Also,
14151         documentation about built-in scripts has been added to
14152         docs/TAPE.CHANGERS.  -oliva & Eric Schnoebelen
14153         <eric@egsner.cirr.com>
14154
14155         --with-debugging now accepts a directory name, where debugging
14156         files should be stored.  -John R. Jackson <jrj@cc.purdue.edu>
14157
14158         Compatibility problems fixed for:
14159                 NextStep 3.3: Fabrice GAILLARD <gaillard@ina.fr>
14160                 SCO OpenServer V5: Christopher B. Olsen <colsen@compus.com>
14161                 AIX: Georg Rehfeld <georg@wmd.de>
14162
14163         Planner would core dump if it had to delay dumps.  -Georg
14164         Rehfeld <georg@wmd.de>
14165
14166         Added patch for samba to support very long filenames.  -Todd
14167         Pfaff <todd@edge.cis.mcmaster.ca>
14168
14169         Added VXDUMP support to estimate program.  -oliva & John
14170         R. Jackson <jrj@cc.purdue.edu>
14171
14172         Fixed amflush so that it cd's to the configuration directory
14173         before invoking reporter.  -oliva
14174
14175         driver no longer opens the infofile, so a deadlock is
14176         prevented.  -oliva & John R. Jackson <jrj@cc.purdue.edu>
14177
14178         Fixed typo in sendbackup-dump that would prevent compilation
14179         if either xfsdump or vxdump were enabled.  -oliva
14180
14181         Debugging messages produced by sendbackup are no longer
14182         included in the dump stream.  -oliva
14183
14184         amrestore should wait for the child process to die before
14185         re-opening the tape device.  -Dietmar Braun
14186         <dietmar@tin-lizzy.hig>
14187
14188 Version 2.4.0b3 
14189
14190         fixed race condition in debug file open operation.  -oliva and
14191         Thomas Schmeidl
14192
14193         exclude-list and exclude-file are correctly handled by
14194         sendsize.  -oliva and Johann Klasek <jk@auto.tuwien.ac.at>
14195
14196         fix some kerberos4 problems; no longer require low ports for
14197         kerberized connections; now use amanda@REALM instead of
14198         amanda.amanda@REALM in .klogin's.  -kovert
14199
14200         amrecover no longer depends on GNU flex library.  -oliva
14201
14202         Ensure that malloc(0) is not called.  -Wolfram Schmidt
14203         <Wolfram.Schmidt@iao.fhg.de>
14204
14205         Compression is now performed where specified, and server
14206         compress best specifications are obeyed. -oliva
14207
14208         genversion now correctly recognizes the selected locking scheme.
14209         -Thomas Schmeidl <schmeidl@nwp.kwu.siemens.de>
14210
14211 Version 2.4.0b2
14212
14213         Several bugfixes by John R. Jackson <jrj@cc.purdue.edu>
14214
14215         AIX's restore support added to amrecover.  -David B. Anderson
14216         <dbanders@mail.physics.utah.edu>
14217
14218         Dump process would not be killed unless it supported the -E
14219         flag (flipped #ifdef): fixed.  -Steve Bower <sbower@raytheon.com>
14220
14221         --with-testing now supports a trailing argument, that
14222         specifies the a string to be appended to service names.  -oliva
14223
14224         Recent versions of Samba require additional arguments so that
14225         estimates and total sizes are logged to stdout, not to syslog.
14226         -Ernie Oporto <ernie_oporto@MENTORG.COM> & Norbert Holzknecht
14227         <Holzknecht@fs31.vdeh-bfi.de>
14228
14229 Version 2.4.0b1
14230
14231         Improved planner backup-delaying mechanism.  -scott
14232
14233         Concurrent estimates are now supported.  -oliva
14234
14235         Shared library support included with GNU libtool.  -oliva
14236
14237         New hard-link-based locking mechanism for operating systems
14238         that do not support standard locking system calls.  -scott
14239
14240         New configuration file format, simpler and easier to
14241         extend.  -scott
14242
14243         New curinfo database format that uses only text files.  The
14244         old dbm format is used by default, though.  -scott
14245
14246         DGUX support. -Brian Harvey <bharvey@raven.phs.com>
14247
14248         Tentative HPUX vxdump support.  -oliva
14249
14250         Integrated amgetidx into dumper/sendbackup protocol.  This
14251         ***breaks backward compatibility***!  -oliva
14252
14253         Have sendbackup-dump and sendbackup-gnutar list the actual
14254         program that should be used to restore a file from a backup
14255         instead of just listing restore or gtar. -blair&oliva
14256
14257         Have configure check for the initgroups() declaration in
14258         unistd.h in addition to grp.h and sys/types.h, which is where
14259         some OSes have the declaration. -blair
14260
14261         SAMBA backups wouldn't succeed if GNUTAR listed incrementals
14262         were enabled.  SAMBA password file can now specify workgroup
14263         and may contain comments.  -oliva
14264
14265         Fixed xfsdump support. -oliva
14266
14267         Fixed srvcompress option. -oliva
14268
14269         Fixed exclude/exclude-list support. -oliva
14270
14271         Change umask to 066 before creating index file in /tmp. -oliva
14272
14273         Fixed autoconf for gdbm on linux. -oliva
14274
14275         configure now seeks out a few possible locations for
14276         kerberos4 includes and tries to find the correct path if
14277         the kerberos bits have been installed.  It's possible for
14278         someone to just specify the root of a kerberos tree for
14279         where the bits live, as well. -kovert
14280
14281 Version 2.3.0.4
14282
14283         Have bsd_security_ok() in amandad return 1 when BSD security is
14284         not turned on.  Patch from Michael C. Grant
14285         <mcgrant@rascals.Stanford.EDU>.
14286
14287         Add a configure option, --with-db, which lets the user specify
14288         the database library to use.  The available codes to look for
14289         are db,dbm,gdbm,ndbm.  The new configure code goes to a lot
14290         more length to find pairs of header files and libraries.  If a
14291         header file exists and the library does not, but dbm_open() is
14292         found by linking against -lc, then that header file is used.
14293         Patch from Blair Zajac <blair@gps.caltech.edu>.
14294
14295         Fixed bug at line 158 where selfcheck was testing that the
14296         result returned by open() was nonzero.  The correct thing to do
14297         is check for non-negative values returned by open().  Changed
14298         the "ERROR" in line 169 to "OK" to prevent selfcheck from
14299         flagging the non-existence of /etc/amandapass as an error.
14300         Using "OK" in this line flags this condition as an informative
14301         statement rather than an error - which is to say this will be
14302         reported along with other errors but it isn't enough in itself
14303         to generate an error report.  The reason that I think this is
14304         the right fix is because although every Amanda client is
14305         capable of backing up PCs using smbclient it isn't the case
14306         that we will back up PCs with every Amanda client.  This also
14307         implies that we don't want to have /etc/amandapass files on all
14308         these machines either.  If an Amanda client does have a samba
14309         "//host/share" entry in its disklist file then selfcheck will
14310         flag the non-existence of the /etc/amandapass file on line 105
14311         when it attempts to check that partition, so I believe that
14312         this is a safe fix.  Patch from Michael Brantley
14313         <Michael-Brantley@deshaw.com>.
14314
14315         Have all calls to gethostname() leave the result in character
14316         arrays of length 1025.  This will make sure that gethostname
14317         behaves correctly.  Patch from  blair Zajac
14318         <blair@gps.caltech.edu>.
14319
14320         Have amrecover.c include history.h or readline/history.h if
14321         configure finds it.  Patch from blair Zajac
14322         <blair@gps.caltech.edu>.
14323
14324         Have Amanda use cat if gzip and compress cannot be found.  In
14325         this case, do not #define COMPRESS_FAST_OPT, COMPRESS_BEST_OPT,
14326         or UNCOMPRESS_OPT as "" since cat will look look for a file by
14327         the name of "".  Place #ifdef's around code that uses any of
14328         the _OPT defines.  Patch from Blair Zajac
14329         <blair@gps.caltech.edu>.
14330
14331         Rewrite amgetidx to use amandad instead of rsh/rcp.  amgetidx
14332         now only gets the index files from a given day.  It now takes
14333         two optionally arguments <on day> or <ago days>.  <on day> lets
14334         the user specify the day in one of the forms YYYYMMDD MMDD DD
14335         YYYY-MM-DD --MM-DD ---DD.  <ago days> gets the files from days
14336         days ago.  Have configure look for an appropriate directory to
14337         use for the temporary files on the clients.  Use /var/tmp, then
14338         /usr/tmp, and if neither of those exist, then use /tmp.  Have
14339         selfcheck check if the index holding directory has enough space
14340         in it.  Add a new program called sendindex which sends the
14341         index files.  Add the file docs/INDEXING which describes the
14342         index code.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
14343
14344         Have configure set up mt to use either the -f or the -t option
14345         depending upon the operating system.  Patch from Blair Zajac
14346         <blair@gps.caltech.edu>.
14347
14348         Include the amanda_tapetypes.txt file as docs/TAPETYPES.  File
14349         composed by Chris Stacey <chris@snrc.uow.edu.au>.
14350
14351         Allow certain dumptypes to be kicked off at specific times.
14352         Add a new, optional, parameter to the dumptype description in
14353         the config file.  The parameter is called "starttime" and takes
14354         one argument which is a time of day (local timezone) formated
14355         as either hhmm or hmm (no `.'s, no `:'s, just an integer).
14356                 define dumptype comp-user-2am {
14357                         comment "Non-root partitions on fast machines"
14358                         options compress-fast
14359                         priority medium
14360                         starttime 0200
14361                 }
14362         Any partitions listed in disklist with this dumptype will be
14363         fired off no earlier than 2am.  If 2am today is less than 43200
14364         seconds past (12 hours ago) it will assume you meant 2am today
14365         and fire the dumps off right away.  But if 2am today is more
14366         than 12 hours in the past, it will wait till 2am tomorrow.
14367         Patch from Brad Huntting <huntting@misc.glarp.com>.
14368
14369         Totally rewrite the socket buffering code for dumper.
14370         Eliminate SO_SNDTIMEO and SO_RCVTIMEO setsockopt calls.  Remove
14371         the check for HAVE_SO_SNDTIMEO from configure.  Add a new
14372         option to configure named --enable-buffered-dump to enable this
14373         code.  Patch from Brad Huntting <huntting@misc.glarp.com>.
14374
14375         Have amflush call setsid() to detach amflush from the
14376         controlling terminal.  Patch from Ken Laprade
14377         <klaprade@harris.com>.
14378
14379         Have configure correctly work on systems where dbm_open is in
14380         libc.  Patch from Farzad Farid <farzy@sgip.fr>.
14381
14382         Patches to amrmtape which remove C style comments and let the
14383         script remove a tape if there is only one tape in the tapelist
14384         file.  Patch from Andrew A. Ivanov <IVANOV@mics.msu.su>.
14385
14386         Sprintf formatting error in amgetidx fixed.  Patch from Yossi
14387         Gottlieb <yogo@xpert.com>.
14388
14389         I'm using a Sony SDT/STL-7000 4mm DAT changer.  I could not
14390         find any method of directly controlling the device, except for
14391         simply using the 'offline' mt command for advancing to the next
14392         tape.  Using this method, however, I could not go beyond the
14393         last cassette (that is, to roll back to the first one).  This
14394         means the device is currently being used as a simple gravity
14395         changer, only able to change forward.  The chg-generic.conf
14396         should list the default tape device for all slots, disable
14397         'needeject', enable 'gravity' and enable the new option named
14398         'multieject'.  Patch from Yossi Gottlieb <yogo@xpert.com>.
14399
14400         Update the example chg-generic.conf file to include comments
14401         that describe how to use the multieject feature of the script.
14402         Patch from Yossi Gottlieb <yogo@xpert.com>.
14403
14404         Protocol seems to loop when a A_TIMEOUT occurs because
14405         p->reqtries was not being decremented.  Problem noted by Neal
14406         Becker <neal@ctd.comsat.com>.
14407
14408         About half the calls to gethostname() in Amanda fail to
14409         null-terminate properly.  This patch makes them all
14410         consistent.  In addition it updates sendbackup-dump and
14411         sendbackup-gnutar so they handle USE_FQDN is a way consistent
14412         with the amindex stuff.  In particular when USE_FQDN is set,
14413         the dump clients will not truncate their hostname before
14414         putting it in the dump headers.  My patches to amflush are
14415         already in the Amanda betas so amflush should be able to match
14416         up both FQDN and non-FQDN clients against FQDN and non-FQDN
14417         disklist files.  I also fixed an error message that was
14418         attributed to gethostname when it actually came from
14419         getpeername.  Patches from James Mathiesen
14420         <james@nyc.deshaw.com>.
14421
14422         I have run into the problem, on a Linux system, where the first
14423         time I run configure it generates valid Makefiles and Amanda
14424         compiles without problem.  If I run configure again, or I alter
14425         a Makefile.in or something which causes autoconf to be called,
14426         the resulting Makefiles are no good - the programs in
14427         server-src don't finish linking because there is no dbm
14428         library.  That is, the first time through configure -lgdbm is
14429         added to LIBS but the second, and any subsequent times, it is
14430         not.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
14431
14432         I've just found a bug that has prevented Amanda from running on
14433         my site for almost one week.  Just after a dumper replied that
14434         it timed-out, the driver would send it another dump request.
14435         Then the driver would log to amdump an event of receiving a
14436         message from the dumper, but that message would be empty, the
14437         holding file for the requested filesystem would not exist, and
14438         driver would quit.  It turned out that the problem was that
14439         dumper started to close its sockets (datafd, mesgfd and outfd)
14440         since release 2.3.0.4b3.  outfd is initialized before invoking
14441         startup_dump, but it is sendbackup_response, intended to be
14442         invoked by the amandad protocol driver, that opens sockets and
14443         initializes datafd and mesgfd.  If sendbackup_response is never
14444         run (because the amandad request times out), datafd and mesgfd
14445         will not be initialized, so they may contain already closed
14446         (and possibly already reopened) file descriptor numbers or
14447         still be uninitialized, containing any garbage, but usually 0
14448         --- but 0 is stdin, used for reading commands from the driver,
14449         it should not be closed!  I've solved the problem by
14450         initializing them to -1 in startup_dump.  Patch from Alexandre
14451         Oliva <oliva@dcc.unicamp.br>.
14452
14453         Include declarations for select(), bind(), connect(), fread(),
14454         fwrite(), getopt(), getpeername(), getsockname(), getsockopt(),
14455         initgroups(), listen(), lstat(), mktemp(), mktime(), puts(),
14456         recvfrom(), select(), sendto(), setpgrp(), setsockopt(),
14457         shmat(), shmctl(), shmdt(), shmget(), socketpair(), sscanf(),
14458         strftime(), strncasecmp(), system() if the system does not
14459         declare these in any header files.  Patch from Blair Zajac
14460         <blair@gps.caltech.edu>.
14461
14462         Have configure correctly substitute for DB_DIR and LOG_DIR in
14463         example/amanda.conf when --prefix was not used.  Problem noted
14464         by Philippe Charnier <charnier@xp11.frmug.org>.
14465
14466         Include seagate-changer.c from Larry D. Pyeatt
14467         <pyeatt@cs.colostate.edu>.  This program was written to control
14468         the Seagate/Conner/Archive autoloading DAT drive.  This drive
14469         normally has 4 tape capacity but can be expanded to 12 tapes
14470         with an optional tape cartridge.  This program may also work on
14471         other drives.  This program works for me under Linux with Gerd
14472         Knorr's <kraxel@cs.tu-berlin.de> SCSI media changer driver
14473         installed as a kernel module.  The kernel module is available
14474         at
14475         http://sunsite.unc.edu/pub/Linux/kernel/patches/scsi/scsi-changer*
14476         Since the Linux media changer is based on NetBSD, this program
14477         should also work for NetBSD, although I have not tried it.  It
14478         may be necessary to change the IOCTL calls to work on other
14479         OS's.
14480
14481         Add a new configure option, --with-group, which tells Amanda
14482         the group to install all files as.  Patch from Alexandre Oliva
14483         <oliva@dcc.unicamp.br>.
14484
14485         If --with-bsd-security was not set, then dumper would not find
14486         the amanda/udp port to use to connect to clients.  Patch from
14487         Alan McIvor <alan@auck.irl.cri.nz>.
14488
14489         The order of dump programs to search for (ufsdump, vdump, dump,
14490         backup) didn't work on AIX systems, where backup should be used
14491         but a program named dump exists on the system.  Patch by Blair
14492         Zajac <blair@gps.caltech.edu>.
14493
14494         The configure --with-mmap was not working properly since
14495         configure was using the wrong variable to see if the system had
14496         a working mmap().  Problem noted by Keith Mitchell
14497         <kmitch@weenix.guru.org>.
14498
14499 Version 2.3.0.4b3
14500
14501         Save the results of getchar() into int's instead of char's in
14502         amidxtaped.c.  Patch by Blair Zajac <blair@gps.caltech.edu>.
14503
14504         Fix sendbackup-gnutar so that it can be compiled with a K&R
14505         compiler.  Patch by Blair Zajac <blair@gps.caltech.edu>.
14506
14507         Since I installed Amanda 2.3.0.4b3, I noticed some annoying
14508         messages in amdump:
14509                 dumper: pid 8696 setsockopt(SO_SNDTIMEO): Invalid argument
14510         This is because Solaris 2.5 does declare SO_SNDTIMEO in
14511         sys/socket.h, but fails to setsockopt with the given
14512         arguments.  Unfortunately, it is not documented, so I could not
14513         find out the correct way to do this, so I just added a test in
14514         configure to check whether SO_SNDTIMEO works as expected or
14515         not.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14516
14517         Include amplot-2.2.6 written by Olafur Gudmundsson
14518         <ogud@tis.com> into Amanda.  Have amplot be configured using
14519         configure instead of amplot.conf.  It will be installed if
14520         gnuplot and the version of awk configure finds can handle
14521         variable assignment from the command line.  I also changed some
14522         of the command line options so that the amdump files will not
14523         be compressed unless amplot is told to do so on the command
14524         line.  It also takes a new command line option, -t, which lets
14525         the user set the time of the right side of the plot.  Work done
14526         by Blair Zajac <blair@gps.caltech.edu>.
14527
14528         Made rth-changer check all system calls for valid returns.
14529         Patch by Blair Zajac <blair@gps.caltech.edu>.
14530
14531         amrestore.c and sendbackup-common.c would do an ifdef on
14532         HAVE_GZIP, which was no longer being defined if Amanda was
14533         using gzip.  Now, define HAVE_GZIP if gzip is being used.
14534         Patch by Blair Zajac <blair@gps.caltech.edu>.
14535
14536         Include a script, amoverview, that outputs an overview of all
14537         of the backups done on all of the disks.  Script written by
14538         Dave Disser <disser@sdd.hp.com>.
14539
14540         The prototype for amname_to_fstype() is missing in
14541         createindex-dump.c when xfsdump is available.  Patch from Ken
14542         Laprade <klaprade@harris.com>.
14543
14544         Apparently SGI provides a dummy libsun.a that does not really
14545         have anything in it.  I guess this tricks configure into adding
14546         it to the Makefile.  Have configure not check for libsun.a on
14547         SGI systems.  Patch from Ken Laprade <klaprade@harris.com>.
14548
14549         The global variable overwrite in amcheck.c apparently is seen
14550         as a potential conflict with the overwrite() curses function
14551         which is apparently in SGI's libtermcap.a.  Declaring the
14552         variable static eliminates the warning.  Patch from Ken Laprade
14553         <klaprade@harris.com>.
14554
14555         Add a new configure option, --with-fqdn, which allows Amanda to
14556         back up systems in different domains.  This requires that the
14557         disklist file have the fully qualified domain names (FQDNs)
14558         listed.  Patch from Joe Ammond <Joe.Ammond@ee.gatech.edu>.
14559
14560         Include rundump, a setuid program that runs dump as root.  This
14561         is used under OSF1 systems.  Patch from Alexandre Oliva
14562         <oliva@dcc.unicamp.br>.
14563
14564         Install setuid files executable only by the owner and group of
14565         the files.  This stops other users from running these programs,
14566         making security tighter.  Patch from Alexandre Oliva
14567         <oliva@dcc.unicamp.br>.
14568
14569         On FreeBSD 3.0, amanda.h needs to include <sys/types.h> before
14570         <dirent.h>.  Problem noted by Keith Mitchell
14571         <kmitch@weenix.guru.org>.
14572
14573         Amanda had a bug regarding the recent addition of support for
14574         excluding files in GNUTAR.  planner and sendsize did not
14575         understand each other about empty exclusion lists, so there
14576         were failures using gnutar, as dump does not support excludes.
14577         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14578
14579         Fixed a problem in configure where DUMP was being set to
14580         /no/restore/available when no restore program could be found
14581         instead of setting RESTORE to this.  Patch from Alexandre Oliva
14582         <oliva@dcc.unicamp.br>.
14583
14584         Have no-changer and hp-changer check for the existence of the
14585         logging directory before trying to use it.  Patch by Blair
14586         Zajac <blair@gps.caltech.edu>.
14587
14588         Patches to have nicer looking Samba support code.  Patch from
14589         Michael Zucchi <cismpz@cis.unisa.edu.au>.
14590
14591         Got Amanda to compile fine on a m88k-motorola-sysv4 system.
14592         Patches from Blair Zajac <blair@gps.caltech.edu>.
14593
14594         In amandad.c, pk_t dupmsg was conflicting with dupmsg in
14595         /usr/include/sys/stream.h on an m88k-motorola-sysv4 system.
14596         Rename dupmsg to dup_msg.  To keep things consistent, rename
14597         inmsg to in_msg and outmsg to out_msg.  Patch by Blair Zajac
14598         <blair@gps.caltech.edu>.
14599
14600         Check for the dbm_open declaration in any header file that may
14601         contain it.  If it doesn't exist, then declare it and all of
14602         the other dbm_ functions.  Check if struct datum is declared in
14603         any header files and if it isn't then declare it.  Patch from
14604         Blair Zajac <blair@gps.caltech.edu>.
14605
14606         Have runtar make sure that it is being invoked by the
14607         CLIENT_LOGIN user, since it is a suid executable.  Patch from
14608         Alexandre Oliva <oliva@dcc.unicamp.br>.
14609
14610         Have selfcheck check for /etc/vdumpdates if vdump is being
14611         used.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14612
14613         If we're on an Ultrix system, then define STATFS_ULTRIX.  Patch
14614         by Blair Zajac <blair@gps.caltech.edu>.
14615
14616         amadmin export produces a full version number (2.3.0.4b2, for
14617         instance), while amadmin import expects three integers
14618         separated by dots, so it fails to import an exported file by
14619         itself.  Patch by Alexandre Oliva <oliva@dcc.unicamp.br>.
14620
14621         Sendsize.c would loop forever if debugging was not turned on.
14622         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14623
14624         Define STATFS_OSF1 if we are on a *-dec-osf-* system.  Change
14625         ifdef OSF1_HANG_BUG to ifdef OSF1_VDUMP, since I'd rather not
14626         have too many defines floating around.  Patch by Blair Zajac
14627         <blair@gps.caltech.edu>.
14628
14629         There was a bug in selfcheck.c when Blair installed the Samba
14630         support.  I deleted an extra space that was added after
14631         SAMBA_CLIENT when the command was being put together.  Fix by
14632         Michael Zucchi <cismpz@cis.unisa.edu.au>.
14633
14634         Add a needed ; to client-src/Makefile.am and
14635         server-src/Makefile.am.  Patch from Alexandre Oliva
14636         <oliva@dcc.unicamp.br>.
14637
14638         Have planner.c and amcheck.c always get the amanda port number
14639         even if BSD security is turned off.  Patch by Blair Zajac
14640         <blair@gps.caltech.edu>.
14641
14642         Change the way amgetidx caches host up/down information.  It
14643         used to stralloc() a string depending on if the host was up or
14644         down.  Now, create two static character arrays, one holding
14645         "down" and the other holding "up" and simply point the
14646         hostinfo->up pointer to one of the two arrays.  This should
14647         save a little memory.  Patch by Blair Zajac
14648         <blair@gps.caltech.edu>.
14649
14650         The Bourne shell in FreeBSD can't handle setting IFS to : and
14651         expanding $LOCPATH:$SYSPATH.  Create two new variables before
14652         their use called $LOCSYSPATH and $SYSLOCPATH.  Patch by Blair
14653         Zajac <blair@gps.caltech.edu>.
14654
14655         Have open_fstab for BSD systems return the value of setfsent.
14656         Patch by Blair Zajac <blair@gps.caltech.edu>.
14657
14658         Configure was searching for the dump program in the following
14659         order: ufsdump, vdump, backup, dump.  On HP-UX systems,
14660         configure would find backup, which is a valid program but does
14661         not do what dump does.  So switch the order of the programs to
14662         ufsdump, vdump, dump, backup.  Patch by Blair Zajac
14663         <blair@gps.caltech.edu>.
14664
14665         Fixed some dbprintf(()) bugs in amgetidx.c.  Patch by Blair
14666         Zajac <blair@gps.caltech.edu>.
14667
14668         Have amrecover.c always declare
14669             extern char *optarg;
14670             extern int optind;
14671         This makes amrecover.c compile on Ultrix systems.  Problem
14672         noted by Scott Gasch <scott@cray-ymp.acm.stuorg.vt.edu>.
14673
14674         Patch to configure to have it recognize gnutar version 1.11.2.
14675         Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14676
14677 Version 2.3.0.4b2
14678
14679         Have amcleanup, no-changer, and hp-changer find out where the
14680         logging directory, or amdump error file is from getconf instead
14681         of using @LOG_DIR@ or @DB_DIR@ from configure.  Problem noted
14682         by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
14683
14684         Remove VarDir=@DB_DIR@ from amrmtape.sh.in, since amrmtape
14685         figures out where the curinfo files are from the amanda.conf
14686         file.  Problem noted by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
14687
14688         Include rth-changer, a tape changer script for the Robotic Tape
14689         Handling system OEM'd by Andataco (RTH-406).  Script written by
14690         Erik Frederick <edf@tyrell.mc.duke.edu>.
14691
14692         Add a new configure option called --with-pid-debug-files which
14693         has Amanda append the process ID to the debugging files placed
14694         in /tmp.  The PID will not be appended unless this option is
14695         used.  Suggestion by Joe Ammond <Joe.Ammond@ee.gatech.edu>.
14696
14697         Add a new #define UNCOMPRESS_OPT to pass to UNCOMPRESS_PATH to
14698         get compressed standard input decompressed and pass it to
14699         standard output.  The configure script only recognized gzip and
14700         compress right now, so it will set UNCOMPRESS_OPT to -dc and
14701         set UNCOMPRESS_PATH to the same value as COMPRESS_PATH.  Edit
14702         all of the files that make use of UNCOMPRESS_PATH to also make
14703         use of UNCOMPRESS_OPT now.  Patch by Blair Zajac
14704         <blair@gps.caltech.edu>.
14705
14706         The readline() substitute in amrecover.c when the real
14707         readline() code is not available did not return to the caller
14708         what the user typed in.  It now does so.  Patch from Blair
14709         Zajac <blair@gps.caltech.edu>.
14710
14711         Avoid -lnsl on Irix.  On IRIX 5.x and 6.x systems that have the
14712         svr4net module installed, there will be a /usr/lib/libnsl.so
14713         present on the system. The configure script looks for this and
14714         tosses into the library list if it's there.  It is not
14715         advisable to link against libnsl on IRIX unless you really need
14716         it for SVR4 networking (TLI/STREAMS). If you _do_ link against
14717         it, you should use include '-lc' _before_ '-lnsl'. The reason
14718         for this is that libnsl.so also contains the SysV TI-RPC code,
14719         which is RPC based on STREAMS/TLI rather than sockets. (Solaris
14720         2.x now uses this by default.) TI-RPC has some compatibility
14721         functions with the same names as older RPC functions, such as
14722         clnt_call(), clnt_create(), clnt_destroy(), and these conflict
14723         with the functions in libc.so. The main place this will hose
14724         you is NIS: NIS v2 expects the underlying RPC code to use
14725         sockets, not STREAMS, and it fails if the TI-RPC symbols in
14726         libnsl.so override the RPC symbols in libc.so.  Again, you
14727         don't need libnsl.so unless you're actually using STREAMS/TLI
14728         or TI-RPC, so in Amanda's case it's safe to just ignore it. If
14729         you _do_ need it, you must do 'cc -o foo foo.c -lc -lnsl' in
14730         order to make sure the linker resolves the RPC symbol
14731         references correctly. The primary symptom of this problem is
14732         that things like getpwent(), getgrent() and getnetgrent() stop
14733         working in an NIS environment.  To make a long story short: on
14734         IRIX, avoid using libnsl. Amanda doesn't need it anyway. So far
14735         I haven't encountered a problem with this, but you never know.
14736         Note from Bill Paul <wpaul@ctr.columbia.edu>.
14737
14738         Include patches to have Amanda do incrementals of gnutar based
14739         backups.  Patch from Alexandre Oliva <oliva@dcc.unicamp.br>.
14740
14741         Delete the GNUTAR_BROKEN_PIPE from configure and acconfig.h
14742         since no code was testing for it.  Patch by Blair Zajac
14743         <blair@gps.caltech.edu>.
14744
14745         Have configure check for the number of arguments that
14746         gettimeofday takes and have clock.c use the appropriate number
14747         of arguments.  Patch by Blair Zajac <blair@gps.caltech.edu>.
14748
14749         Have sendbackup-common.c include tapeio.h instead of defining
14750         BUFFER_SIZE.  Fix by Philip Guenther <guenther@gac.edu>.
14751
14752         Put in more support for AIX by defining AIX_BACKUP if the
14753         system is an AIX system.  Fix createindex-dump.c to pass the -B
14754         flag to restore to have it read from standard input.  Problem
14755         noted by Bill Paul <wpaul@ctr.columbia.edu>.  Patch by Blair
14756         Zajac <blair@gps.caltech.edu>.
14757
14758         Add a regexp for AIX 4's backup in sendbackup-dump.c and
14759         sendsize.c.  Patch from Bill Paul <wpaul@ctr.columbia.edu>.
14760
14761         Add a comment to tapeio.h about BUFFER_SIZE and what it is used
14762         for and how people should not change it.  Noted by Bill Paul
14763         <wpaul@ctr.columbia.edu>.
14764
14765         Added a --with-mmap option to force the use of mmap() instead
14766         of shared memory support.  Requested by wpaul@ctr.columbia.edu
14767         <Bill Paul>.  Patch by Blair Zajac <blair@gps.caltech.edu>.
14768
14769         On FreeBSD 2.x and 3.x, the SO_SNDTIMEOUT value is too large in
14770         dumper.c.  Looking at the kernel source, the maximum value for
14771         tv_sec is about 227.  The value used is READ_TIMEOUT/4, or
14772         (30*60)/4 == 450 seconds.  This causes setsockopt() to return
14773         EDOM (Numerical argument out of domain), and again everything
14774         grinds to a halt.  I changed the value from READ_TIMEOUT/4 to
14775         READ_TIMEOUT/8, which reduces the SO_SNDTIMEO value to 225.  I
14776         haven't extensively tested this yet, but based on eyeballing
14777         the kernel source it should work.  Patch from Bill Paul
14778         <wpaul@ctr.columbia.edu>.
14779
14780         In dumper.c:do_dump(), there is code to set the transmission
14781         timeout, receive buffer size and receive low water mark on the
14782         data socket using setsockopt().  For SO_RECVBUF, the receive
14783         buffer size (recbuf) is set to DATABUF_SIZE * 4, which is
14784         32*1024*4, or 131072.  On SunOS 4.1.x, this value is too
14785         large:  dumper generates a 'no buffer space available' error
14786         and everything grinds to a halt.  I took away the '*4', which
14787         reduces the size to 32767 bytes, which seems to work.  I'm
14788         surprised nobody else has noticed this since it breaks SunOS
14789         Amanda servers.  I can only surmise that people aren't using
14790         SunOS machines as servers these days. :)   Patch from Bill Paul
14791         <wpaul@ctr.columbia.edu>.
14792
14793         Have Amanda include either readline.h or readline/readline.h
14794         Fix suggested by Neal Becker <neal@ctd.comsat.com>.
14795
14796         Have --with-includes put the -I flags into $CPPFLAGS and
14797         $CFLAGS so that AC_CHECK_HEADERS will find other include
14798         files.  Problem noted by Neal Becker <neal@ctd.comsat.com>.
14799
14800         Fixed common-src/Makefile.am to put the extra libamanda.a
14801         sources into the EXTRA_libamanda_a_SOURCES variable instead of
14802         EXTRA_DIST.  Fix from Tom Tromey <tromey@drip.Colorado.EDU>.
14803
14804         When compiling amgetidx.c with some compilers, trigraph
14805         substitutions were being made when they should not have been.
14806         Protect the code from this.  Patch from Blair Zajac
14807         <blair@gps.caltech.edu>.
14808
14809         Test for flock support in the following order:
14810                 1) POSIX fcntl file locking
14811                 2) flock locking
14812                 3) lockf locking
14813         The common-src/flock.c file will only be used if the lockf type
14814         locking is needed on this system.  Patch from Blair Zajac
14815         <blair@gps.caltech.edu>.
14816
14817         Have Samba support compile in only if requested by the user.
14818         Patch from Blair Zajac <blair@gps.caltech.edu>.
14819
14820         Configure was not using $CFLAGS and $CPPFLAGS when trying to
14821         calculate the select argument type.  Patch from Blair Zajac
14822         <blair@gps.caltech.edu>.
14823
14824         Updated amanda.h to include alloca.h if the system has it and
14825         if it's ok to include.  Also protect more include files with
14826         #ifdefs found by configure.  Patch from Blair Zajac
14827         <blair@gps.caltech.edu>.
14828
14829         Linux does not use the raw device names to do backups.
14830         configure now checks to see if it can find a raw disk device
14831         file whose name is built from root's mount point.  If it can't,
14832         then set RDEV_PREFIX to use /dev/ instead of /dev/r.  Fix
14833         suggested by Brian <brian.s.mogged@uwrf.edu> and Ken Latta
14834         <latta@parc.xerox.com>.
14835
14836         Fixed const cast message from regex.c.  Problem noted by Ken
14837         Laprade <klaprade@harris.com>.  Patch from Blair Zajac
14838         <blair@gps.caltech.edu>.
14839
14840         Configure was not checking for the OSF1_VDUMP #ifdef used in
14841         Amanda.  It now will set OSF1_VDUMP if vdump is found on the
14842         system.  However, it does not check if the system is really a
14843         OSF system.  Patch from Blair Zajac <blair@gps.caltech.edu>.
14844
14845         Have configure check for asm/byteorder.h for
14846         sparc-unknown-linux-gnu.  Problem noted by Eric Doutreleau
14847         <ed@cti.ecp.fr>.
14848
14849         Remove the check for libintl.h from configure.  It was only
14850         being used for regex.c, which really didn't need it.  Patch
14851         from Blair Zajac <blair@gps.caltech.edu>.
14852
14853         Convert all code to K&R C by trying to compile Amanda using
14854         /usr/bin/cc on a SunOS 4.1.1 machine.  Have configure check if
14855         the compiler can handle the volatile keyword and if it can't,
14856         #define it to empty in the config.h file.  Patch from Blair
14857         Zajac <blair@gps.caltech.edu>.
14858
14859         Move the contents of versuff.h into version.h and remove
14860         versuff.h.  Add a new function called version() which returns
14861         the version string.  Use version() in some of the programs.
14862         Patch from Blair Zajac <blair@gps.caltech.edu>.
14863
14864         m88k-motorola-sysv4 systems define L_FAIL, which is used by
14865         logfile.h.  Undefine it in logfile.h.  Patch from Blair Zajac
14866         <blair@gps.caltech.edu>.
14867
14868         Include amindex-1.0 from Alan McIvor.  It includes these
14869         improvements over 0.3:
14870                 Amrecover now provides the ability to restore files
14871                 from the tapes, via the "extract" command.
14872
14873                 Support for gnutar based index generation (but not file
14874                 restoration yet).
14875
14876                 Numerous bug fixes.
14877
14878         Have amgetidx try to open a socket to the shell/tcp port on the
14879         remote machine and cache if it succeeds.  If it connection
14880         attempt succeeds, then attempt to get the index files over from
14881         the client.  Patch from Blair Zajac <blair@gps.caltech.edu>.
14882
14883         Update patch-system to include the amidxtape service at
14884         10083/tcp.  Patch from Blair Zajac <blair@gps.caltech.edu>.
14885
14886         Configure said that the server configuration was OK and then
14887         next said it wasn't.  Remove these checks.  Patch from Blair
14888         Zajac <blair@gps.caltech.edu>.
14889
14890         Fixed building Amanda for multiple architectures in
14891         subdirectories of Amanda.  Problem noted by Thomas Hepper
14892         <Thomas.Hepper@icem.de>.
14893
14894 Version 2.3.0.4b1
14895
14896         Fix a problem with `amadmin <conf> balance' dumping core.  If
14897         some disks are overdue, they are stored in the sequence array
14898         with a negative index.  This has the potential to cause memory
14899         corruption, and it makes the reported balance figures not add up
14900         to the same as the total.  Since overdue disks are really going
14901         to be candidated for today's backups, they are thrown in the
14902         bin for those.  Patch from Ken Laprade <klaprade@harris.com>.
14903
14904         Add Samba client support using smbclient to Amanda.  Samba must
14905         be patched with the file patches/samba-1.9.16p2.1.patch - this
14906         is a patch for 1.9.16p2 of Samba, and modifies the way the
14907         'dir' command works, and adds totals to both the dir command
14908         and the tar command, via stderr.  These are used by amanda to
14909         estimate and count backup sizes.  This should be installed on
14910         an amanda 'client' host, that will act as the 'samba server'
14911         host.  This will most likely be the same machine as the Amanda
14912         master server.  Patches from Michael Zucchi
14913         <zucchi@cis.unisa.edu.au>.
14914
14915         Amrmtape converted from Bash to Bourne shell.  Patch from Blair
14916         Zajac <blair@gps.caltech.edu>.
14917
14918         Fix the indexing code to use "arglist.h" instead of <stdarg.h>
14919         Patch from Blair Zajac <blair@gps.caltech.edu>.
14920
14921         Have amdump call amgetidx and amtrmidx.  Put amgetidx and
14922         amtrmidx into the libexec directory instead of the bin
14923         directory, since Amanda users will not use these by hand.
14924         Patch from Blair Zajac <blair@gps.caltech.edu>.
14925
14926         Modified diskfile.c to match hostname in the backup header
14927         against the fully qualified domain name in disklist file,
14928         because amflush fails in a multidomain backup environment, as
14929         backup headers have only the hostname.  Patch from Karl
14930         Lehenbauer <karl@neosoft.com>.
14931
14932         Have autoconf figure out if some functions are not declared and
14933         if they are not, then declare them.  Patch from Blair Zajac
14934         <blair@gps.caltech.edu>.
14935
14936         Add security fixes to amandad.c.  It now checks the forward and
14937         reverse DNS names for consistency.  Added a configure option
14938         --amandahosts to use Michael's code to use .amandahosts instead
14939         of .rhosts.  Patch from Michael Douglass <mikedoug@texas.net>.
14940
14941         Add amverify, a simple shell script to check Amanda tapes -
14942         gnutar driven backups only.  Patch from Thomas Hepper
14943         <Thomas.Hepper@icem.de>.
14944
14945         Add the version option to amadmin (eg amadmin <conf> version).
14946         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
14947
14948         Add the current option to amtape (eg amtape <conf> current).
14949         This let's you the label of the current tape only without using
14950         dd.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
14951
14952         Gnutar support for amindex added.  Patch from Thomas Hepper
14953         <Thomas.Hepper@icem.de>.
14954
14955         Calcsize supports exclude-list (gtar).  The source was
14956         extracted from gnutar itself to be 100% compatible.  Patch from
14957         Thomas Hepper <Thomas.Hepper@icem.de>.
14958
14959         Calcsize checks the file type and ignores special files and
14960         pipes.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
14961
14962         Calcsizes calculation for gnu tar archives had a bug (gtar file
14963         blocks always are a multiple of 2k).  Patch from Thomas Hepper
14964         <Thomas.Hepper@icem.de>.
14965
14966         `amandates.c': amdandad suffered by missing AMANDATES_FILE.
14967         Now it creates this file before missing it.  Patch from Thomas
14968         Hepper <Thomas.Hepper@icem.de>.
14969
14970         `createindex-gnutar.c' added.  Patch from Thomas Hepper
14971         <Thomas.Hepper@icem.de>.
14972
14973         alloca(), strdup.c and getcwd added for those system who don't
14974         have them.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
14975
14976         A dirty hack for BSD based systems without sigaction(), see
14977         amanda.h.  Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
14978  
14979         Add two scripts, hp-changer and no-changer. hp-changer is a
14980         tape changer script for a HP DAT changer. Every 10th tape a
14981         taper clean runs.  no-changer is a changer-like script for
14982         single tape streamer.  It makes Amanda see a tape changer unit
14983         with an infinite count of tapes (and requires an operator to
14984         change the tapes :-)). Every 10 tapes the operator is
14985         recommended to insert a cleaning tape.  Patch from Thomas
14986         Hepper <Thomas.Hepper@icem.de>.
14987
14988         The version suffix adding is done with a seperate function
14989         versionsuffix() also available as standalone program.  Patch
14990         from Thomas Hepper <Thomas.Hepper@icem.de>.
14991
14992         Several files got debug support. Patch from Thomas Hepper
14993         <Thomas.Hepper@icem.de>.
14994
14995         Added an idle type file-too-large to driver.c to avoid dumping
14996         files to the holding disk(s) which exceed the maximum file size
14997         (2 GB on the most 32-bit machines).  Patch from Thomas Hepper
14998         <Thomas.Hepper@icem.de>.
14999
15000         Some minor bug fixes, mostly regarding missing or wrong casts
15001         confusing c compilers (shmat()/shmdt(), select()).  Patch from
15002         Thomas Hepper <Thomas.Hepper@icem.de>.
15003
15004         Genversion gives some more information.  Patch from Thomas
15005         Hepper <Thomas.Hepper@icem.de>.
15006
15007         getfsent.c and statfs.c have been cleaned up. The have to be
15008         checked on non-Irix/Solaris/NextStep/HPUX/AIX/Linux-systems.
15009         Patch from Thomas Hepper <Thomas.Hepper@icem.de>.
15010
15011         Simple support if readline.a is missing.  NEVER TESTED!  Patch
15012         from Thomas Hepper <Thomas.Hepper@icem.de>.
15013
15014         Linux requires libdb.a and ndbm.h to handle database files. Not
15015         really what I expected.  Patch from Thomas Hepper
15016         <Thomas.Hepper@icem.de>.
15017  
15018         Here's a simple patch which fixes a problem that causes amflush
15019         to erroneously complain "ignoring cruft file" about good dump
15020         files on the holding disk, and fail to flush them to tape.
15021         This happens if your holding disk directory has a long name,
15022         and the dump file also has a long name (i.e. if you use
15023         filesystem mount points in disklist).  The problem occurs if
15024         the holding directory + filename exceeds 80 bytes.  The patch
15025         still leaves a length limitation, but at least it matches the
15026         size limit imposed by driver (and thus dumper & taper) of 128
15027         bytes.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
15028
15029         Use regex.h and regex.c from
15030         ftp://prep.ai.mit.edu/sh-utils-1.15.tar.gz instead of the regex
15031         checking code in the system.  This code includes re_comp and
15032         re_exec calls, so it will work on any system.  Patch by Blair
15033         Zajac <blair@gps.caltech.edu>.
15034
15035         Amadmin find reports the wrong tape file numbers after when a
15036         dump is amflush'ed to tape.  Patch by Ralf Fassel
15037         <ralf@atg.venture.de>.
15038
15039         Fix a bug where dumps of disks on the Amanda server are counted
15040         against the available network bandwidth.  Patch from Marion
15041         Hakanson <hakanson@cse.ogi.edu>.
15042
15043         Tell gnutar to not exit with a nonzero value if a read failed.
15044         This prevents backups from aborting if a file disappeared
15045         before gnutar could save it.  Patch from Hal Snyder
15046         <hal@vailsys.com>.
15047
15048         Fix dumper which can cause the entire amdump run to hang after
15049         dumper issues a "TRY-AGAIN" message to driver while dumping
15050         directly to tape.  Patch from Marion Hakanson's
15051         <hakanson@cse.ogi.edu>.
15052
15053         Added Marion Hakanson's <hakanson@cse.ogi.edu> patches to fix
15054         problems when amanda dumps directly to tape (i.e. when holding
15055         space is full, or you're backing up a huge filesystem, etc.).
15056         The bug occurs in the way taper determines it has succeeded
15057         when doing a PORT-WRITE operation (i.e. dumping directly to
15058         tape).  It used to assume that an EOF meant no more data --
15059         true if it's reading from a file, but when reading from a port
15060         (i.e. directly from a dump process), an EOF could signal
15061         abnormal exit as well as a normal one.  So, I extended the
15062         protocol between driver and taper when dumping directly to tape
15063         (see dump_to_tape() in driver.c) so the taper will wait for the
15064         driver to pass PORT-WRITE-SUCCESS or PORT-WRITE-FAILURE to the
15065         taper (since driver gets OK/not-OK from the dumper) before the
15066         taper records success or failure.  Note that this change
15067         affects only the PORT-WRITE case in taper.  FYI, the bug
15068         resulted in the curinfo database for a failed port-dump to have
15069         the tape-label & file-number fields updated with the location
15070         of the failed dump, even though the timestamp & dump statistics
15071         still have the values of the last successful dump (the latter
15072         fields are updated by dumper itself).
15073
15074         Patches from George Scott <George.Scott@cc.monash.edu.au> to
15075         fix the following problems in planner.c.
15076         1) Initialise total_size, total_lev0 and balanced_size.  They
15077         are updated in analyze_estimates() but never initialised.  Zero
15078         them before the first call.
15079         2) Remove oversize dumps.   If there is a dump whose estimated
15080         size is larger than the tape the planner would tend to throw
15081         away all the other dumps and then probably generate an
15082         unworkable plan anyway.  (The standard 2.2.6 planner probably
15083         tossed these dumps fairly quickly for other reasons, but my
15084         next fix made this one almost mandatory!)  The fix is to drop
15085         these enormous dumps right at the begining.  This shouldn't be
15086         triggered for anyone with a sane configuration.
15087         3) Promote hills.  There are two ways to create a balanced
15088         cycle.  The first is to fill in any holes and the second is to
15089         remove any hills.  The original planner is good at doing the
15090         first but doesn't even attempt the second.  A quick look at
15091         "amadmin balance" would show big hills quite clearly.  This fix
15092         effectively does an "amadmin balance" and promotes a dump from
15093         one of the "hills".  This type of promotion is quite
15094         restricted:
15095           - don't bother if we already plan to do any level 0 dumps
15096           - don't promote a dump if it was going to be the only level 0
15097             to be done on that run (ie, ignore hills that are only one
15098             dump high)
15099           - only promote one level 0 by this method
15100           - don't exceed tape_length
15101         The key to it is the first restriction.  Large sites (with
15102         large numbers of disks and a large balanced_size) will have at
15103         least one level 0 scheduled for each day in the dump cycle and
15104         will already have a balanced cycle.  This code will not
15105         activate for them.  Small sites will probably not have a level
15106         0 scheduled and will benefit.  The second restriction will stop
15107         Amanda from constantly promoting dumps when the schedule is as
15108         balanced as it will go.  The third restriction will stop Amanda
15109         over reacting.  Promoting one dump by this method would take
15110         total_lev0 larger that balanced_size.  If it wouldn't then the
15111         first stage promotion didn't work like it should.
15112         4) Initialise got_estimate for all cases.  This fix was from
15113         der Mouse <mouse@collatz.mcrcim.mcgill.edu>.  "got_estimate"
15114         wasn't being initialised for skipped disks.  Later in the code
15115         it was being used in all cases.  The fix is to move its
15116         initialisation up a few lines.
15117         5) Explicitly ignore off-line disks.  If a disk is off-line
15118         when the planner is run it gets -1 for all dump sizes.  These
15119         were ignored at a later stage.  This fix explicitly ignores
15120         them up front.
15121         6) Ignore down machines.  If a machine is down when the planner
15122         is run it guesses from historical data what the size of
15123         tonights dump is likely to be and schedules a dump anyway.  The
15124         dumper then usually discovers that the machine is still down
15125         and ends up with a half full tape.  Unfortunately the planner
15126         had to delay another dump because it thought that the tape was
15127         full.  The fix here is for the planner to discard unavailable
15128         machines totally rather than just ignore the fact that they are
15129         unavailable.
15130         7) Keep at least one total.  Amanda moves level 0 dumps back to
15131         incrementals to try and fit everything onto the tape.
15132         Unfortunately if all your incrementals are too big (or your
15133         tape too small) it can move all of your level 0 dumps.  This
15134         ends up being a kind of deadlock since, unless a level 0 gets
15135         done, the incrementals will not reduce in size and until the
15136         incrementals reduce in size there will not be enough room to
15137         fit in a level 0.  (This is not quite accurate since a level 4
15138         dump can get bumped to a level 5 which reduces its size.
15139         However, this deadlock has happened to me and for many days in
15140         a row.)  The fix is to pick on the highest priority level 0 and
15141         not let it be moved.  This change will not affect users with
15142         reasonably sized tapes since Amanda would not have moved all
15143         their disks to incrementals.
15144         8) Make usage of total_lev0 consistent.  "total_lev0" is a
15145         double and doesn't include tape_mark's.  Make it so.
15146
15147         Add a fflush(outf) to amcheck.c.  Patch from Mike Russell
15148         <Michael_Russell@Brown.EDU>.
15149
15150         Fix problems with amhpfixdevs.  Patch from Michael Schmitz
15151         <mschmitz@iname.com>.
15152
15153         Have DEC OSF1 use installbsd instead of install.  Patch from
15154         Rainer Landes <rlandes@fphws01.physik.uni-karlsruhe.de>.
15155
15156         Have amcontrol take the first command line argument as the
15157         configuration to use.  If there are no command line arguments,
15158         then use daily.  Patch from Thomas Schmeidl
15159         <schmeidl@nwp.kwu.siemens.de>.
15160
15161         Removed --atime-preserve from sendbackup-gnutar.c so that
15162         incremental backups of filesystems will work.  Patch from
15163         Alexandre Oliva <oliva@dcc.unicamp.br>.
15164
15165         Change all #if __STDC__ to #ifdef __STDC__ for those systems
15166         that define __STDC__ to 0, such as Solaris using cc -Xt, cc
15167         -Xa.  Patch from Blair Zajac <blair@gps.caltech.edu>.
15168
15169         Increase the socket buffer size, and set a low watter mark at
15170         32k.  This cut the number of syscalls done to process one 32k
15171         block from dozens down to 4 (select, read, lseek, write).
15172         Patch from Brad Huntting <huntting@glarp.com>.
15173
15174         Include amindex-0.3 from Alan McIvor <alan@salan.auck.irl.cri.nz>.
15175
15176         Add the "srvcompress" option to compress dumps on the tape host
15177         instead of on the client machines.  This may be useful when a
15178         fast tape host is backing up slow clients.  The patches add a
15179         dump-type option, analogous to "compress-fast" or
15180         "compress-best" - the way to use it is to create a new dumptype
15181         in your amanda.conf that includes "srvcompress" and use the new
15182         dumptype for those filesystems you wish to have compressed on
15183         the tape server. For example, in amanda.conf:
15184             define dumptype srvcomp-user {
15185             comment "Partitions on slow machines, compressed on tapehost"
15186             options srvcompress
15187             priority medium
15188         }
15189         Patches from Eric Volpe <epv@panix.com>.
15190
15191         Increase the planner timeout for one estimate from 30 seconds
15192         to 120 seconds.  Patch from Michael Schmitz
15193         <mschmitz@iname.com>.
15194
15195         The select(2) prototype on HPUX specifies 'int' as argument
15196         type of the filedescriptor arguments. All other systems I know
15197         of use 'fd_set'. This has been fixed by having configure check
15198         the argument type to select and adding casts to the select(2)
15199         calls.  Patch from Michael Schmitz  <mschmitz@iname.com>.
15200
15201         Improve the diagnostic output and increase the robustness of
15202         the system by adding better error checking on communication
15203         between taper & driver, and among the two taper processes.
15204         Patches from Marion Hakanson <hakanson@cse.ogi.edu>.
15205
15206         Convert all flock() calls to use POSIX-style locks via the
15207         fcntl(2) call.  This operation was prompted by the fact that
15208         the flock() emulation in the Amanda-provided common-src/flock.c
15209         was broken for read-only file descriptors, and the fcntl(2)
15210         locks are widely available.  This patch makes it possible to
15211         have a read-only lock on the /etc/amandates file on systems
15212         which want to use it.  I've built and tested the patched code
15213         on Amanda servers running on Digital Unix v3.2B (on Alpha
15214         hardware) and on SPARC Solaris-2.5.1.  It's also been compiled
15215         here on SPARC's running SunOS-4.1.3u1b, HP-UX 9.0[345], and
15216         NeXTstep-3.3 (NeXT hardware).  Note that the patches also
15217         remove all trace of the NEED_FLOCK define, and I have removed
15218         the file common-src/flock.c from our source tree here.  Patch
15219         from Marion Hakanson <hakanson@cse.ogi.edu>.
15220
15221         For disk/filesystem names which are wider than 14 characters,
15222         have reporter print out the rightmost characters of the disk
15223         name, which is usually more meaningful in a daily backup
15224         summary.  Patch from Marion Hakanson <hakanson@cse.ogi.edu>.
15225
15226         Lets amflush work in a wider variety of cases than was
15227         previously true (it used to work if the disklist contains only
15228         the first token of each hostname).  sendbackup-dump.c and
15229         sendbackup-gnutar.c now do not trim the domain name from the
15230         host name that is sent back to the server.  amflush now looks
15231         for an exact match, in the database.  If it can't find one it
15232         strips the last token off the dump header hostname and keeps
15233         trying until it finds a match in the disklist or runs out of
15234         tokens.  This also has the advantage that if gethostname()
15235         returns FQDNs and you specify the same FQDNs in the disklist,
15236         then amflush will always work.  It will also work as long as
15237         the disklist and gethostname() on the clients return enough
15238         information to be unambiguous.  Patch from James Mathiesen
15239         <james@deshaw.com>.
15240
15241         Increase the READ_TIMEOUT in dumper.c to 30 minutes.  This
15242         needs to be longer than the longest amount of time dump will
15243         not produce output.  People have observed dumps taking more
15244         than 10 minutes to finish mapping some of the passes
15245         sometimes.  Patch from James Mathiesen <james@deshaw.com>.
15246         
15247         Added Adrian T. Filipi-Martin's <atf3r@cs.virginia.edu>
15248         amrmtape script, which allows you to invalidate the contents of
15249         an existing backup tape within the Amanda current tape
15250         database.  This is meant as a recovery mecanism for when a good
15251         backup is damaged either by faulty hardware or user error,
15252         i.e.  the tape is eaten by the tape drive, or the tape has been
15253         overwritten.  Blair Zajac wrote a quick little manual page for
15254         this script.
15255
15256         amrmtape was using the return value from amadmin and amadmin
15257         was exiting with a non-zero value, causing amrmtape to quit.
15258         Added a return 0 statement to amadmin.c.  Patch from Blair
15259         Zajac <blair@gps.caltech.edu>.
15260
15261         Went through all of the files and changed void main()'s to int
15262         main()'s.  Patch from Blair Zajac <blair@gps.caltech.edu>.
15263
15264         Removed the 50 tape file limit in amcleanup and amdump.
15265
15266         createindex-dump and sendbackup-dump did not always take into
15267         account the version suffix.  This is now handled.  Patch from
15268         Philippe Charnier <charnier@lirmm.fr>
15269
15270         Compile and install amrecover and amrestore as client programs,
15271         not a server program.  The motovation for this is that
15272         amrecover is truly a program for all of the users on the
15273         system, while the remaining amanda programs could be used by
15274         only the system administrator.  Patch from Alexandre Oliva
15275         <oliva@dcc.unicamp.br>.
15276
15277         The program amtrmidx fails to close some of the pipes it uses,
15278         and this can lead to failure on systems with large numbers of
15279         disks with incomplete database sets, and file descriptor
15280         ulimits set.  Patch from Alan McIvor <alan@auck.irl.cri.nz>.
15281
15282 Version 2.3.0.3
15283
15284         Expanded the width of the DISK column from the reporter
15285         output.  I like to use mount points like /export/home?? instead
15286         of device names to back up.  Since the width of the disk name
15287         field from reporter's output is pretty small, I couldn't easily
15288         figure out the statistics for a particular partition.  Patch
15289         from Blair Zajac <blair@gps.caltech.edu>.
15290
15291         Included Eric Doutreleau <ed@cti.ecp.fr> patch's for amadmin to
15292         handle multiple tapes better.  The patch that he posted on used
15293         a hardwired value of 6 for runtapes, which I changed.
15294
15295         Included Marion Hakanson's <hakanson@cse.ogi.edu> patches to
15296         amadmin.c and amadmin.8 to let amadmin use the same disk
15297         regular expression matching as amrestore.  So now "^/$" will
15298         match only the root partition, not all of the disks.
15299
15300         Added a patch from George.Scott@cc.monash.edu.au which makes
15301         new disks and forces dump with a higher priority.
15302
15303         Changed tools/munge to delete blank lines and the commented
15304         lines that the C preprocessor generates (i.e. # 123).  We also
15305         remove the space after the = sign that can be generated by cpp
15306         on some systems.
15307
15308         Installed amindex-0.2 from Alan McIvor <alan@auck.irl.cri.nz>
15309         with the following patches:
15310
15311                 Fix problem so that rsh'ing on a hpux host works.
15312                 Patch from Neal Becker <neal@ctd.comsat.com>.  This
15313                 patch includes a new #define for RSH_COMMAND, which is
15314                 set to rsh in config-common.h and defined as remsh in
15315                 config.h-hpux.
15316
15317                 Fix bugs in createindex-dump.c when comparing errno to
15318                 EINTR.  The code was using = instead of ==.  Patch from
15319                 Neal Becker <neal@ctd.comsat.com>.  I'm guessing this
15320                 might fix some of the runaway createindex-dump
15321                 processes that I have seen on my system.
15322
15323                 On my system, we use MAE which likes to generate path
15324                 names with spaces in them.  I patched
15325                 createindex-dump.c so that filenames with spaces have
15326                 the whole filename listed.  Patch from Blair Zajac
15327                 <blair@gps.caltech.edu>.
15328
15329                 Patch amtrmidx.c so that backups using the mount points
15330                 for disks instead of the device name have the /'s
15331                 replaced with _'s.  Patch from Blair Zajac
15332                 <blair@gps.caltech.edu>.
15333
15334 Version 2.3.0.2
15335
15336         Changed the signals being sent to xfsdump for Irix so that it
15337         will be killed without dumping a core.
15338
15339         Fixed a typo in the definition of XFSDUMP in config.h-irix.
15340
15341         Removed the extra option.s-* and copied options.h to
15342         options.h-vanilla.
15343
15344         Moved the amrestore manual page into the man directory so it
15345         would get installed.
15346
15347 Version 2.3.0.1
15348
15349         amindex-0.1 written by Alan McIvor <alan@kauri.auck.irl.cri.nz>
15350         installed.  amindex generates an index of all of the files that
15351         were dumped.  It is nice to see what files were dumped before
15352         you restore a whole bunch of tapes looking for a file.  I
15353         patched some of this code.  Here are some of the changes:
15354
15355                 Switched the Imakefile to Makefile and Makefile.in to
15356                 be more consistent with the system used by the rest of
15357                 amanda.
15358
15359                 Moved the configuration #defines out of the specific
15360                 files (such as amrecover.c) into options.h, so that
15361                 people installing this version of amanda would be able
15362                 to see the required changes more easily and not have to
15363                 edit multiple files.
15364
15365                 Made some changes to the codes to remove #include's
15366                 where amanda.h would include them and also check if the
15367                 system had the particular include file.
15368
15369                 Added code to set_commands.c and amgetidx.c to change
15370                 /'s in disk names to _'s.
15371
15372                 Added code to amrecover.c to properly compile on
15373                 Solaris hosts.
15374
15375                 With the -Xc compiler option on Solaris and with
15376                 amindex, the sigaction structure was not being
15377                 declared.  Added -D__EXTENSIONS__ to config.h-sunos5 so
15378                 that sigaction would be declared.
15379
15380                 I changed a bunch of fprintf to perrors.
15381
15382         Include Sean Kelly's <kelly@fsl.noaa.gov> patch for tools/munge
15383         for FreeBSD-2.1.5.
15384
15385         Used Peter Lackner's <plo@came.sbg.ac.at> patches for DU 4.0.
15386
15387         Installed Ken Laprade's <klaprade@harris.com> patches for
15388         amanda to handle both EFS and XFs file systems on the same
15389         client.  The only change from his patch is to #ifdef XFSDUMP
15390         the kill(-dumppid, SIGTERM) so the SIGTERM signal will be used
15391         on other systems, while SIGQUIT will be used on Irix systems.
15392
15393         Installed Marion Hakanson's <hakanson@cse.ogi.edu> patches for
15394         the main config file to include subsidiary config files.
15395
15396         On Solaris, sometimes the hdr->handle variable in amandad.c
15397         would be null, causing core dumps when it was used in a sprintf
15398         statement.  The code now checks if hdr->handle is null and
15399         prints a "" if it is null.  This was only done in amandad.c.
15400
15401         Fix a problem where new disks would be added but not backed up
15402         concurrently.  Changes to diskfile.c.  I forgot who put this
15403         patch up on the mailing list.
15404
15405         I made some changes to options.h to allow the user to more
15406         easily install the programs under a different user.  This meant
15407         defining two new #defines, MK_AMANDA_USER and
15408         MK_QUOTED_AMANDA_USER which are used in the appropriate
15409         Makefiles.
15410
15411         Used Marion Hakanson's <hakanson@cse.ogi.edu> patch for taper.c
15412         for multiple tapes.
15413
15414         Included Joachim Loehr's <Joachim.Loeh@stadt-mh.de>
15415         script to automatically figure out which kind of HP-UX file
15416         system is being dumped.  Look in tools for the script and a
15417         README.
15418
15419 Local Variables:
15420 mode: change-log
15421 left-margin: 8
15422 fill-column: 76
15423 End: