Wayne Davison [Thu, 14 Apr 2005 16:08:10 +0000 (16:08 +0000)]
- Changed log_open() into two functions, logfile_open() and
logfile_reopen().
- Changed log_close() into logfile_close().
- Improved the logic in logit().
Wayne Davison [Thu, 14 Apr 2005 01:45:47 +0000 (01:45 +0000)]
- Got rid of the iflag kluge for 2.6.4pre3.
- When we're handling --only-write-batch on the client side, we now
send all index/header info to the receiver (not just to the batch
file, like we do with the xfer data) so that the connection cannot
timeout.
Wayne Davison [Tue, 12 Apr 2005 23:03:49 +0000 (23:03 +0000)]
If we can't open the daemon's log file, fall-back to using
syslog (rather than trying to output an error on stderr,
which would usually be lost, and then exiting).
Wayne Davison [Sun, 10 Apr 2005 17:09:10 +0000 (17:09 +0000)]
Made the code a little cleaner by having gen_challenge() return
the challenge string base64-encoded (instead of forcing the caller
to handle this). Also improved a couple comments.
Wayne Davison [Sat, 9 Apr 2005 18:59:57 +0000 (18:59 +0000)]
- Use the new do_xfers variable in place of some dry_run checks
(with appropriate negation).
- If write_batch is < 0, we write out the file-transfer data to
just the batch file, not the socket.
Wayne Davison [Sat, 9 Apr 2005 18:59:55 +0000 (18:59 +0000)]
- Use the new do_xfers variable in place of some dry_run checks
(with appropriate negation).
- If we get a transfer when write_batch is < 0, discard it.
Wayne Davison [Sat, 9 Apr 2005 18:59:49 +0000 (18:59 +0000)]
- Only do read-/write-batch processing if we're not the server (needed
now that write_batch is no longer forced to 0 for the server).
- If write_batch is < 0, force "dry_run = 1" (but only after we've
finished any appropriate write-batch file creation).
Wayne Davison [Sat, 9 Apr 2005 18:11:23 +0000 (18:11 +0000)]
- Use the MD4_SUM_LENGTH define in place of some hard-wired values.
- Pass the hostname in to auth_server().
- Generate a unique error for each failure type in auth_server() so
that the log-file contains why the authorization failed.
- Don't use sscanf() to parse the client's auth-challenge response.
Wayne Davison [Tue, 5 Apr 2005 19:51:13 +0000 (19:51 +0000)]
When doing a delete pass with do_progress output, get rid of the
temporary output (it used to always be covered up by output in
older versions, but it might be followed by a newline in newer
versions).
Wayne Davison [Mon, 4 Apr 2005 17:27:56 +0000 (17:27 +0000)]
Make sure that the line buffer in readfd_unbuffered() is large
enough to handle long-filename messages on a system that has a
really short MAXPATHLEN value. Also, make it large enough to
be able to comment on a MAXPATHLEN filename.
Wayne Davison [Fri, 1 Apr 2005 18:12:22 +0000 (18:12 +0000)]
Make a local-copy caused by a not-quite-up-to-date --compare-dest
or --link-dest file be output as a 'c' (local change) when itemizing
or as transfered file when not itemizing.
Wayne Davison [Tue, 29 Mar 2005 22:05:33 +0000 (22:05 +0000)]
- Fixed a potential crash if the receiver couldn't open the basis file
and the sender (possibly via a batch) tells us to use basis data.
- Enhanced the batched-update skipping message to indicate what phase
is being skipped.
Wayne Davison [Tue, 29 Mar 2005 19:49:40 +0000 (19:49 +0000)]
- Warn about missing batched updates the generator wants but the
batch doesn't have.
- Tweaked the "skipping ..." message that is output for already-
applied batched updates.
Wayne Davison [Tue, 29 Mar 2005 11:11:35 +0000 (11:11 +0000)]
Split report() into handle_stats() and output_report() so that (1)
the report happens after all --delete-after activity has ceased when
pulling, and (2) a batch-file created when pushing gets the stats
values written out prior to any end-of-run keep-alive packets.
Wayne Davison [Tue, 29 Mar 2005 10:57:31 +0000 (10:57 +0000)]
Changed maybe_emit_filelist_progress() and emit_filelist_progress()
to take an integer count instead of a struct file_list so that we
can pass in a file-list-count offset for delete's separate calls
to send_directory().
Wayne Davison [Tue, 29 Mar 2005 10:41:26 +0000 (10:41 +0000)]
Turn off do_progress during the file-update phase so that
--delete-during and --fuzzy don't get any superfluous
" N files..." lines output in the middle of the processing.
Wayne Davison [Sun, 27 Mar 2005 05:02:49 +0000 (05:02 +0000)]
- Fixed a bug in the saving of the --dirs option's state.
- Added the saving of the --compress option's state.
- Deal with the xfer_dirs var in a better way for pre-29 batches.
Wayne Davison [Thu, 24 Mar 2005 16:41:16 +0000 (16:41 +0000)]
- Don't complain if --dry-run is specified with --read-batch
or --write-batch.
- If --write-batch is combined with --dry-run, just disable
--write-batch (that avoids trying to create a batch file
and tells the user what would be transferred).