Wayne Davison
e7c67065c0
Updated the FSF's address to an even newer one.
2006-04-25 23:51:12 +00:00
Wayne Davison
0f78b81511
- Updated the address for the FSF in the opening comment.
...
- Standardized the format of the opening comment, including adding a
brief description of what's in the file for those that lacked it.
- Added some missing copyright lines.
- Some minor whitespace tweaks (in a few of the files).
2006-04-25 20:23:34 +00:00
Wayne Davison
cca9208697
Got rid of unused externs.
2006-02-24 16:43:44 +00:00
Wayne Davison
904e5af128
The create_directory_path() function no longer takes a base_umask
...
arg.
2006-02-24 01:56:21 +00:00
Wayne Davison
10f994a52a
Moved the delay-bit functions into util.c, making them more generic.
2006-02-07 18:15:51 +00:00
Wayne Davison
a9d6e6fcac
When permissions aren't being preserved, set them via the new
...
dest_mode() function.
2006-01-31 02:30:09 +00:00
Wayne Davison
4a4d2b1ba0
Call finish_transfer() with a valid partialptr string, when
...
appropriate.
2006-01-30 07:18:10 +00:00
Wayne Davison
6cbde57d88
Call f_name() with revised args (which also replaces f_name_to()).
2006-01-14 20:26:23 +00:00
Wayne Davison
45c49b52a4
Got rid of calls to (the soon to vanish) safe_fname() function.
2006-01-13 21:17:09 +00:00
Wayne Davison
a7e60f0c59
Only call cleanup_set() if keep_partial is set.
2005-11-10 16:57:30 +00:00
Wayne Davison
6a94c58b00
Added a comment.
2005-09-15 22:25:55 +00:00
Wayne Davison
e7ee91defc
When --append is entering the redo phase, make sure that
...
sparse_files is disabled (because it conflicts with an
inplace update).
2005-08-30 02:58:42 +00:00
Wayne Davison
97894c6473
- The combination of --update and --progress now outputs progress
...
information during the checksum scan of the already-sent data.
- When --inplace creates a file, give it 0600 permissions, not 0000.
2005-07-30 16:14:22 +00:00
Wayne Davison
6cc1198288
Support new --append option.
2005-07-28 01:46:12 +00:00
Wayne Davison
b10917a426
Support the reception of a file-transfer header without xfer data
...
when we're on the server side and --only-write-batch was specified.
2005-04-14 01:42:13 +00:00
Wayne Davison
a0009fc30d
- 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.
2005-04-09 18:59:55 +00:00
Wayne Davison
1ed91a04fe
- 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.
2005-03-29 22:05:33 +00:00
Wayne Davison
154cdaaa40
- 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.
2005-03-29 19:49:40 +00:00
Wayne Davison
f957e8fdf9
If --dry-run is enabled with --read-batch, we must discard the
...
transfer data.
2005-03-24 16:38:34 +00:00
Wayne Davison
ac3f7b81f8
Added an extra phase to the end of the transfer to handle
...
delayed updates that have hard links.
2005-03-15 19:19:41 +00:00
Wayne Davison
42be53201f
Handle --delay-updates at the end of the first phase.
2005-03-15 17:30:52 +00:00
Wayne Davison
b9232d45eb
- Fixed the reading of the fuzzy xname from the socket.
...
- Call read_item_attrs() with its new arg.
2005-03-10 00:06:01 +00:00
Wayne Davison
9e4a8d29b5
Got rid of the name-pipe, so we now read the fnamecmp_type data over
...
the socket for protocol >= 29, or handle it like the old days for
older protocol versions. This means that we now validate this extra
data for safety (such as the fuzzy filename).
2005-03-09 18:54:16 +00:00
Wayne Davison
ed7e79553e
Don't try to determine the phase we're in by looking at the value
...
of csum_length -- it might have been computed to be SUM_LENGTH.
Instead, look at the "phase" variable directly.
2005-03-05 16:42:52 +00:00
Wayne Davison
22907b6bd9
- Updated to handle the new ITEM_* flags.
...
- Send MSG_SUCCESS for hard-linked files when -H was specified.
2005-03-05 00:21:56 +00:00
Wayne Davison
58a14ed950
Got rid of some code in the main recv_files() loop by calling the
...
new functions read_iflags() and maybe_log_item().
2005-03-04 16:54:08 +00:00
Wayne Davison
9497b0d4e9
Call log_item() instead of log_recv().
2005-03-04 16:08:16 +00:00
Wayne Davison
46e99b09b9
Added read_vstring() and write_vstring() to io.c instead of
...
having this code in generator.c and receiver.c.
2005-03-04 15:38:58 +00:00
Wayne Davison
f08ca43472
Moved the delete-after support into generator.c.
2005-02-26 18:03:42 +00:00
Wayne Davison
8e6cf5d189
Accept the new keep-alive (no-op) packet.
2005-02-25 21:56:00 +00:00
Wayne Davison
3e7934a5fb
Changed the memory implementation of --delay-updates so that it
...
only allocates memory to store needed bits, it sparsely allocates
the bits in 16KB chunks, and the bit-finding loop works in a more
efficient manner.
2005-02-20 20:55:24 +00:00
Wayne Davison
cd6bececc1
If --delay-updates is specified with --remove-sent-files, delay
...
the MSG_SUCCESS messages until we actually move the files into
place at the end.
2005-02-20 02:54:30 +00:00
Wayne Davison
3e870a6444
If --remove-sent-files was specified and we successfully updated a
...
file, send MSG_SUCCESS to the sender (through the generator).
2005-02-20 01:04:51 +00:00
Wayne Davison
8715db2cab
Tweaked some externs.
2005-02-20 00:16:23 +00:00
Wayne Davison
227a9c41c1
- Improved the logging of itemized changes for the daemon.
...
- Make sure we debug-log our presence in recv_files().
2005-02-19 22:16:47 +00:00
Wayne Davison
742be97ce4
Log items that are unchanged if verbose > 1.
2005-02-19 02:39:33 +00:00
Wayne Davison
e844be4e7b
- Use read_short() and write_short().
...
- If the user does not want itemized changes, don't log the name
for attribute changes.
2005-02-18 20:17:24 +00:00
Wayne Davison
4bb0af79b7
- The itemized flags are now 2 bytes instead of 1.
...
- Always send/receive the itemized flags for protocols >= 29.
- The output of the verbose log-the-transfer messages is always handled
via log_recv() (when we're the client).
2005-02-16 17:02:13 +00:00
Wayne Davison
910e89b963
- We now accept an itemized-changes flag-byte over the socket if we're
...
the local client and --itemized-changes was specified. If the item
is not being updated, just call log_recv().
- We reject an attempt to file-update any non-regular file, not just
dirs.
- Avoid the verbose "log the transfer" output if --log-format was
specified and log_before_transfer is in effect.
- Call log_recv() with its new iflags arg.
2005-02-16 08:10:45 +00:00
Wayne Davison
b78296cb0b
Decided on a better option name --itemize-changes (-i).
2005-02-15 07:41:13 +00:00
Wayne Davison
a8ed495833
If -w and -v are both on, don't output the "log the transfer"
...
verbose message.
2005-02-15 07:20:04 +00:00
Wayne Davison
73273075c8
Added code to read a fuzzy-basis name from the generator.
2005-02-14 02:41:30 +00:00
Wayne Davison
4f5b0756df
John E. Malmberg convinced me to standardize on #ifs for defined
...
values instead of non-zero.
2005-02-14 00:53:43 +00:00
Wayne Davison
68795c640b
If a --delay-update can't use the partial-dir (e.g. if a server
...
daemon excludes the dir or file), update the file without delay.
2005-02-11 09:56:28 +00:00
Wayne Davison
71903f601a
Added missing calls to safe_fname() and full_fname().
2005-02-07 20:40:18 +00:00
Wayne Davison
68a94ac30f
Changed delete_files() to use the delete_in_dir() function, which
...
saves a ton of memory for a large set of files.
2005-02-03 02:01:20 +00:00
Wayne Davison
8c2ffaf095
- If recv_files() is sent the index of a directory, complain about it
...
and die.
- Moved a few code snippets in recv_files() into better locations.
2005-02-03 00:19:40 +00:00
Wayne Davison
4ccfd96cfe
Tweaked one or more warning messages.
2005-01-31 19:13:19 +00:00
Wayne Davison
462c51d9a1
- Restored the io_error test to delete_files().
...
- Sanity check the dir_list value from send_file_list().
2005-01-30 07:35:13 +00:00
Wayne Davison
2430e98412
- Made delete_files() call send_file_list() and delete_missing()
...
instead of delete_in_dir().
- Tweaked check in front of delete_files() call.
2005-01-29 22:35:53 +00:00