Wayne Davison [Thu, 28 Feb 2008 00:19:05 +0000 (16:19 -0800)]
Temporarily set uid_ndx in the delete code if the transfer is not
preserving ownership, but we want to know what the UIDs are on the
files we're deleting. Changed the DEL_OWNED_BY_US flag to be
DEL_NO_UID_WRITE, which is only set when a file is owned by us and
we can't write to it. Fixed a glitch in the error handling of the
--delete-delay code where it might try to enable delete-after in
incremental-transfer mode. Made a simple (well tested) optimization
in the --delete-delay code and a few other readability changes.
Wayne Davison [Thu, 28 Feb 2008 00:15:14 +0000 (16:15 -0800)]
Use preserve_[ug]id values for send/recv checking, which will
allow the delete code to temporarily set [ug]id_ndx during
delete processing, as needed. Got rid of a couple duplicate
tests.
Wayne Davison [Mon, 18 Feb 2008 22:10:13 +0000 (14:10 -0800)]
Extended the protocol-30 info-passing code at startup, and use it to
tell the client if the server can set the times on a symlink (both
the server->client byte and the client->server use of -e). Make use
of this info to allow the proper output of the 't' flag when rsync
can set the time on a symlink (and we're talking protocol >= 30).
Added output of "[no] symtimes" info in the --version message.
Fixed the itemize.test so that it works when rsync believes that it
can set the time of a symlink, but it can't really do it.
Wayne Davison [Mon, 18 Feb 2008 18:02:35 +0000 (10:02 -0800)]
Some permssion fixes:
- Changed itemized output to only report 'p' with -p or -E.
- Fixed a duplicate output of a link-dest file with -vv but no -i.
- Improved unchanged_attrs() to handle -E.
Wayne Davison [Mon, 18 Feb 2008 06:11:44 +0000 (22:11 -0800)]
Don't output a duplicate warning when the daemon-config excludes a
directory or when a directory is ignored via --ignore-non-existing.
Use a new var, is_dir, to simplify the dir code in recv_generator().
Wayne Davison [Sat, 16 Feb 2008 02:55:02 +0000 (18:55 -0800)]
Added a way to specify where the chroot should occur in the module's
path, which allows a daemon admin to have chroot protection and still
have files that are outside the transfer area (such as libraries).
Wayne Davison [Sun, 10 Feb 2008 06:07:03 +0000 (22:07 -0800)]
Add a trailing slash to a modname arg that has no path information.
This ensures that the user gets a "skipping" message if they didn't
specify -r or -d. (A trailing-slash was already being added to a
lone modname for --list-only transfers.)
Wayne Davison [Mon, 4 Feb 2008 15:29:22 +0000 (07:29 -0800)]
Store the key64 flag from hashtable_create() in the hashtable structure
so that hashtable_find() knows which hashtable is which on a 64-bit
architecture.
Wayne Davison [Sun, 27 Jan 2008 22:39:49 +0000 (14:39 -0800)]
Fixed several glitches with failed updates and batch files:
- Correctly identify when a missing batch update is for a resend.
- Made a missing batch update an xfer error.
- Made a failed redo an xfer error.
- Identify a failed transfer file consistently when it is a solo file.
- Have --read-batch say "may try again" instead of "will try again".
Wayne Davison [Sat, 26 Jan 2008 19:56:27 +0000 (11:56 -0800)]
Moved the batch option checking until after the protocol-version
in the batch file is known. Also simplified the do_compress
checking, which had some erroneous def_compress_level code.
Wayne Davison [Sun, 13 Jan 2008 05:41:21 +0000 (21:41 -0800)]
Another xattr "internal abbrev" fix for an xattr object that is
shared by multiple files: handle the case where one file has an
abbreviated item set correctly, but a following item does not.
Also extended testsuite/xattrs.test to verify that this works.
Wayne Davison [Sat, 12 Jan 2008 18:20:25 +0000 (10:20 -0800)]
- Make sure the Makefile is up-to-date before running "make gen".
- The release-rsync script now creates the generated patches in a
separate dir from the normal patches.
Wayne Davison [Tue, 1 Jan 2008 04:27:40 +0000 (20:27 -0800)]
Some minor tweaks:
- Improved some comments in hlink.c.
- Changed "the" to "a" in rsyncd.conf.yo.
- Improved the PATCH.name filtering loop in patch-update.