Wayne Davison [Sat, 19 Jan 2013 17:52:56 +0000 (09:52 -0800)]
Further improve non-empty-destination --link-dest behavior:
- Avoid relinking a file that is already linked correctly.
- Avoid trashing the stat buffer of an existing file in try_dests_reg().
Wayne Davison [Sat, 19 Jan 2013 17:08:36 +0000 (09:08 -0800)]
Remove -3 return from try_dests_reg() again -- let it do a local copy
when the dest file is unlinked and the hard link fails.
Wayne Davison [Fri, 18 Jan 2013 23:07:03 +0000 (15:07 -0800)]
Align fileio's map_ptr() reads. Fixes bug 8177.
Wayne Davison [Fri, 18 Jan 2013 23:18:58 +0000 (15:18 -0800)]
Reformat a few things for wider lines.
Wayne Davison [Fri, 18 Jan 2013 19:54:01 +0000 (11:54 -0800)]
Improve handling of existing files for alt-dest opts.
Fixes bug #5644.
Wayne Davison [Sun, 7 Oct 2012 23:20:41 +0000 (16:20 -0700)]
Perl version of lsh that can change user w/o sudo.
Wayne Davison [Sun, 7 Oct 2012 17:46:23 +0000 (10:46 -0700)]
Fix bogus "vanished file" with "./" prefixes.
Fixes bug 9212.
Wayne Davison [Wed, 3 Oct 2012 22:20:43 +0000 (15:20 -0700)]
Fix indentation that used expanded tabs.
Wayne Davison [Sun, 23 Sep 2012 19:03:19 +0000 (12:03 -0700)]
Avoid an unused variable warning if no setvbuf.
Wayne Davison [Sat, 8 Sep 2012 23:29:45 +0000 (16:29 -0700)]
Make read_args() return the full request.
When a daemon is sent multiple request args, they are now joined into a
single return value (separated by spaces) so that the RSYNC_REQUEST
environment variable is accurate for any "pre-xfer exec". The values
in RSYNC_ARG# vars are no longer truncated at the "." arg, so that all
the request values are also listed (separately) in RSYNC_ARG#.
Wayne Davison [Sat, 16 Jun 2012 17:30:46 +0000 (10:30 -0700)]
Make daemon listener exit w/code 0 on SIGTERM.
Wayne Davison [Sat, 5 May 2012 15:01:09 +0000 (08:01 -0700)]
Set the modtime to 0 on a partial file.
Fixes debian bug 624826.
Wayne Davison [Sat, 28 Jan 2012 19:51:28 +0000 (11:51 -0800)]
Fix --only-write-batch hang with --hard-links.
Fixes bug 8565.
Wayne Davison [Sat, 28 Jan 2012 18:39:40 +0000 (10:39 -0800)]
Add a slash-stripping version of rsync in support dir.
Wayne Davison [Sat, 28 Jan 2012 18:39:21 +0000 (10:39 -0800)]
flist->in_progress is only needed w/inc_recurese.
Wayne Davison [Sat, 28 Jan 2012 18:38:31 +0000 (10:38 -0800)]
Make stderr line-buffered w/--msgs2stderr.
Wayne Davison [Sat, 28 Jan 2012 18:36:43 +0000 (10:36 -0800)]
Add new --outbuf=N|L|B option.
Wayne Davison [Sat, 24 Dec 2011 20:33:17 +0000 (12:33 -0800)]
Allow --max-size=0 and --min-size=0.
Fixes bug 7965.
Wayne Davison [Sat, 24 Dec 2011 20:18:40 +0000 (12:18 -0800)]
Complain if the --block-size=N value is too large.
Fixes bug 8036.
Wayne Davison [Wed, 21 Dec 2011 16:30:07 +0000 (08:30 -0800)]
Improve the handling of verbose/debug messages
The sender no longer allows a filelist to be sent in the middle of
parsing an incoming message, so that the directory sending doesn't block
all further input reading. The generator no longer allows recursive
reading of info/error messages when it is waiting for the message buffer
to flush. This avoids a stack overflow when lots of messages are coming
from the receiver and the sender is not reading things quickly enough.
The I/O code now avoids sending debug messages that could mess up the
I/O buffer it was in the middle of tweaking. This fixes an infinite
loop in reduce_iobuf_size() with high levels of debug enabled. Several
I/O-related messages were changed to output only when --msgs2stderr is
enabled.
Wayne Davison [Fri, 16 Dec 2011 17:03:25 +0000 (09:03 -0800)]
Avoid double-free of xattr/acl data in real_sx.
Fixes bug 8665.
Wayne Davison [Thu, 24 Nov 2011 15:55:11 +0000 (07:55 -0800)]
Mention that %a and %h are daemon-only escapes.
Wayne Davison [Wed, 23 Nov 2011 21:14:35 +0000 (13:14 -0800)]
Another asprintf() return-value-check tweak.
Wayne Davison [Wed, 23 Nov 2011 20:36:50 +0000 (12:36 -0800)]
Committing missed manpage tweak.
Wayne Davison [Tue, 22 Nov 2011 16:14:01 +0000 (08:14 -0800)]
make repeated --fuzzy option look into alt-dest dirs.
Wayne Davison [Mon, 21 Nov 2011 17:22:14 +0000 (09:22 -0800)]
Add compatibility with an unmodified zlib.
Wayne Davison [Mon, 21 Nov 2011 17:13:11 +0000 (09:13 -0800)]
Fix --compress data-duplication bug.
Wayne Davison [Mon, 21 Nov 2011 17:10:49 +0000 (09:10 -0800)]
Fix version expansion.
Wayne Davison [Sat, 22 Oct 2011 17:20:08 +0000 (10:20 -0700)]
Fix --delete-missing-args when --relative is active.
Wayne Davison [Sat, 8 Oct 2011 16:16:43 +0000 (09:16 -0700)]
Test asprintf() failure with < 0, not <= 0.
Wayne Davison [Sat, 8 Oct 2011 16:15:36 +0000 (09:15 -0700)]
Let's cast getpid() to an int instead of a long for snprintf().
Wayne Davison [Fri, 23 Sep 2011 06:37:07 +0000 (23:37 -0700)]
Fix two unused-variable compiler warnings.
Wayne Davison [Thu, 22 Sep 2011 16:02:21 +0000 (09:02 -0700)]
Fix xattr memory leak. Fixes bug 8475.
Ben Walton [Wed, 21 Sep 2011 02:57:39 +0000 (22:57 -0400)]
Testsuite/dir-sgid: use symbolic mode to set sgid bit
The chmod on Solaris (9 and 10) cannot set the sgid bit on a directory
using absolute mode, so use symbolic mode. Avoids a skipped test.
Wayne Davison [Tue, 20 Sep 2011 20:19:39 +0000 (13:19 -0700)]
Add solaris xattr support to the tests.
Change the xattr case statements to use $HOST_OS.
(Slightly tweaked version of a Ben Walton patch.)
Wayne Davison [Tue, 20 Sep 2011 20:10:02 +0000 (13:10 -0700)]
Better fakeroot support helps Solaris.
Wayne Davison [Tue, 20 Sep 2011 20:02:12 +0000 (13:02 -0700)]
Change stat order for better ELOOP determination.
Wayne Davison [Tue, 20 Sep 2011 19:54:06 +0000 (12:54 -0700)]
Be sure to use STRUCT_STAT.
Wayne Davison [Mon, 19 Sep 2011 16:18:18 +0000 (09:18 -0700)]
Make do_readlink() support fake-super w/o O_NOFOLLOW.
Wayne Davison [Thu, 15 Sep 2011 14:40:50 +0000 (07:40 -0700)]
Make --delete-excluded work better with --filter=merge.
Wayne Davison [Thu, 15 Sep 2011 14:27:23 +0000 (07:27 -0700)]
When modifying PATH, export it (for Solaris).
Wayne Davison [Tue, 13 Sep 2011 22:58:25 +0000 (15:58 -0700)]
Added "SORTED TRANSFER ORDER" manpage section.
Wayne Davison [Tue, 13 Sep 2011 22:25:19 +0000 (15:25 -0700)]
Cleanup some manpage & --help info.
Wayne Davison [Tue, 13 Sep 2011 15:07:31 +0000 (08:07 -0700)]
Use "|| true" in our `xattr` test runs.
Wayne Davison [Tue, 13 Sep 2011 00:56:23 +0000 (17:56 -0700)]
Make sure other early exit calls can't hang in noop_io_until_death().
Wayne Davison [Mon, 12 Sep 2011 05:46:57 +0000 (22:46 -0700)]
Improve the usage for --help.
Ben Walton [Mon, 12 Sep 2011 00:57:05 +0000 (02:57 +0200)]
Better configure support for Solaris xattrs
If we have the attropen() function, allow OS conditional enabling of
extended attribute support. This removes the need to pass
--enable-extended-attributes to force the feature activation on Solaris.
Wayne Davison [Sun, 11 Sep 2011 18:07:02 +0000 (11:07 -0700)]
Fix a potential hang on an empty file list.
Fixes bug 8423.
Wayne Davison [Sun, 11 Sep 2011 18:01:04 +0000 (11:01 -0700)]
Document --msgs2stderr.
Wayne Davison [Wed, 7 Sep 2011 04:18:32 +0000 (21:18 -0700)]
Error out if --password-file specifed and it fails.
Fixes bug 8440.
Wayne Davison [Sat, 3 Sep 2011 19:40:12 +0000 (12:40 -0700)]
Dirs need +rx as well as +w for non-super xfers.
Fixes bug 8242.
Wayne Davison [Sat, 27 Aug 2011 21:58:04 +0000 (14:58 -0700)]
Move implied_dot_dir=1, just to be safe.
Wayne Davison [Sat, 27 Aug 2011 18:56:57 +0000 (11:56 -0700)]
Fix sending of "." attributes for implied-dot-dir.
Wayne Davison [Sat, 27 Aug 2011 17:28:20 +0000 (10:28 -0700)]
Fix bwlimit multiplication overflow. Fixes bug 8375.
Wayne Davison [Sat, 27 Aug 2011 17:07:28 +0000 (10:07 -0700)]
Some option-parsing clarifiation in the intro.
Wayne Davison [Sat, 6 Aug 2011 18:21:40 +0000 (11:21 -0700)]
Fix misplaced parens on getnameinfo() call.
Wayne Davison [Sat, 6 Aug 2011 18:18:54 +0000 (11:18 -0700)]
Ignore socketpair() on cygwin. Fixes bug 8356.
Wayne Davison [Mon, 1 Aug 2011 06:31:17 +0000 (23:31 -0700)]
Tweak includes to fix non-defined NULL on some systems.
Wayne Davison [Fri, 22 Jul 2011 18:17:57 +0000 (11:17 -0700)]
Fix Minix build errors. Fixes bug 8313.
Wayne Davison [Sat, 16 Jul 2011 22:42:32 +0000 (15:42 -0700)]
Replace another inet_ntop() call with getnameinfo().
Wayne Davison [Tue, 12 Jul 2011 22:58:11 +0000 (15:58 -0700)]
Add more connect debug info, as Carlos suggested.
Wayne Davison [Tue, 12 Jul 2011 01:15:51 +0000 (18:15 -0700)]
Move freeaddrinfo() call after failure-reporting loop.
Wayne Davison [Mon, 4 Jul 2011 23:31:58 +0000 (16:31 -0700)]
Fix a comment.
Wayne Davison [Mon, 4 Jul 2011 23:02:12 +0000 (16:02 -0700)]
Handle FES_NO_SEND properly on a hard-linked file.
Fixes bug 8246.
Wayne Davison [Sun, 26 Jun 2011 16:52:40 +0000 (09:52 -0700)]
Fix #ifdef in unchanged_attrs(). Fixes bug 8268.
Wayne Davison [Sat, 18 Jun 2011 20:42:30 +0000 (13:42 -0700)]
Fix reading side of fake-symlink bug 7109.
Wayne Davison [Sat, 18 Jun 2011 19:44:26 +0000 (12:44 -0700)]
Make daemon-exclude errors more error-like.
Fixes bug 7765.
Wayne Davison [Sat, 18 Jun 2011 19:06:44 +0000 (12:06 -0700)]
Check if sender file changed before allowing a remove.
Fixes bug 7691.
Wayne Davison [Sat, 18 Jun 2011 17:12:47 +0000 (10:12 -0700)]
Set NO_SYMLINK_USER_XATTRS on linux. Fixes bug 7109.
Wayne Davison [Sat, 4 Jun 2011 20:04:46 +0000 (13:04 -0700)]
Only skip deletions on IOERR_GENERAL. Fixes bug 7809.
Wayne Davison [Sat, 4 Jun 2011 19:53:10 +0000 (12:53 -0700)]
Don't force \(em in the manpages. Fixes bug 7941.
Wayne Davison [Sat, 4 Jun 2011 19:12:25 +0000 (12:12 -0700)]
Add a colon if a non-empty pre-xfer exec message follows.
Wayne Davison [Sat, 4 Jun 2011 19:08:18 +0000 (12:08 -0700)]
Handle EINTR when reading the pre-xfer exec message.
Wayne Davison [Sat, 4 Jun 2011 17:38:47 +0000 (10:38 -0700)]
Send error messages from pre-xfer exec script to the user.
Wayne Davison [Sat, 4 Jun 2011 16:46:06 +0000 (09:46 -0700)]
Linux needs symlink xattrs. Fixes bug 8201.
Wayne Davison [Mon, 30 May 2011 19:48:04 +0000 (12:48 -0700)]
We need VA_COPY() defined more. Fix dangling #endif.
Wayne Davison [Mon, 30 May 2011 17:24:57 +0000 (10:24 -0700)]
Merge latest samba version to get va_end() fixes, etc.
Wayne Davison [Mon, 30 May 2011 15:24:27 +0000 (08:24 -0700)]
Fix unwritable directory issue due to misordered chmod call.
Wayne Davison [Wed, 25 May 2011 15:59:47 +0000 (08:59 -0700)]
Expand NO_ENTRY items from fake-super ACLs in get_rsync_acl().
Wayne Davison [Tue, 17 May 2011 01:24:34 +0000 (18:24 -0700)]
Use a union for idlist's name/max_id value. Fixes bug 8137.
Wayne Davison [Mon, 16 May 2011 18:24:07 +0000 (11:24 -0700)]
Explicitly mention spaces in the "path" setting.
Wayne Davison [Mon, 16 May 2011 15:26:40 +0000 (08:26 -0700)]
Check for linux/falloc.h header file.
Wayne Davison [Sat, 7 May 2011 19:58:11 +0000 (12:58 -0700)]
Abort if the cd fails.
Wayne Davison [Sat, 7 May 2011 19:31:33 +0000 (12:31 -0700)]
Turn empty remote args into dot dirs.
Wayne Davison [Sat, 7 May 2011 19:16:12 +0000 (12:16 -0700)]
Make --files-from allow a missing trailing arg w/--server.
Wayne Davison [Sat, 7 May 2011 19:11:33 +0000 (12:11 -0700)]
Mention the number of child args.
Wayne Davison [Fri, 29 Apr 2011 01:50:21 +0000 (18:50 -0700)]
Don't die if man-copy fails.
Wayne Davison [Thu, 28 Apr 2011 23:41:03 +0000 (16:41 -0700)]
Handle non-srcdir man copying when yodl isn't installed.
Wayne Davison [Fri, 22 Apr 2011 22:51:55 +0000 (15:51 -0700)]
Avoid adding a slash to path '/'.
Wayne Davison [Fri, 22 Apr 2011 18:31:29 +0000 (11:31 -0700)]
Fix a potential crash when trying to find a better block match.
Wayne Davison [Sat, 9 Apr 2011 15:33:55 +0000 (08:33 -0700)]
Improve lsh's handling of -l user option w/cd.
Wayne Davison [Tue, 5 Apr 2011 20:35:13 +0000 (13:35 -0700)]
Add some temp-name dot heuristics for OS X's sake.
- Drop one leading '.' from the filename (before adding our own).
- Drop one trailing '.' from a (possibly truncated) name prior to
the .XXXXXX suffix being added.
- Allow the temp-name to collapse to just the .XXXXXX suffix
if the path is long enough to require that.
Note that we don't try to remove multiple dots from a filename
that actually has multiple consecutive dots, since we might as
well learn early if the final name is going to fail or not.
Wayne Davison [Tue, 5 Apr 2011 04:44:12 +0000 (21:44 -0700)]
Applying the preallocate patch.
Wayne Davison [Mon, 4 Apr 2011 01:02:45 +0000 (18:02 -0700)]
Move var declaration for older C compilers.
Wayne Davison [Sat, 26 Mar 2011 21:50:00 +0000 (14:50 -0700)]
Adding release info for 3.0.8 to the trunk.
Wayne Davison [Sat, 26 Mar 2011 18:07:20 +0000 (11:07 -0700)]
Verify the module list output of the daemon-via-ssh check.
Wayne Davison [Sat, 26 Mar 2011 17:17:14 +0000 (10:17 -0700)]
Tweak dir xattrs after the writability fudging.
Wayne Davison [Sat, 26 Mar 2011 16:59:14 +0000 (09:59 -0700)]
Avoid re-setting (and sending) xattrs on a hard-linked file w/the same xattrs.
Improved the xattrs testing to include hard-linking.
Wayne Davison [Mon, 21 Mar 2011 02:31:58 +0000 (19:31 -0700)]
Enhance the -liconv check for OS X. Fixes bug 8018.
Wayne Davison [Sat, 19 Mar 2011 23:34:37 +0000 (16:34 -0700)]
Get the branch set right before listing names and handling --delete.