rsync.git
5 days agoImprove iconvbufs() to do more buffer size checks. master
Wayne Davison [Sun, 19 May 2013 23:56:34 +0000]
Improve iconvbufs() to do more buffer size checks.

- If iconv() returns EINVAL or EILSEQ and the error is being ignored, make
  sure that there is room in the output buffer to store the erroneous char.
- When accepting an erroneous char, be sure to break if there are no more
  input characters (without calling iconv() with a zero input length).

5 days agoFix msleep() if time goes backwards. Fixes bug 9789.
Wayne Davison [Sun, 19 May 2013 22:52:00 +0000]
Fix msleep() if time goes backwards.  Fixes bug 9789.

5 days agoFixed unused variable warnings in free_stat_x.
Wayne Davison [Sun, 19 May 2013 21:31:27 +0000]
Fixed unused variable warnings in free_stat_x.

5 days agoAdd an implementation of getpass for systems that lack one.
Wayne Davison [Sun, 19 May 2013 21:28:02 +0000]
Add an implementation of getpass for systems that lack one.

5 days agoUse S_IXUSR instead of the now-obsolete S_IEXEC.
Wayne Davison [Sun, 19 May 2013 21:25:58 +0000]
Use S_IXUSR instead of the now-obsolete S_IEXEC.

5 days agoUpdated to the version dated 2013-04-24.
Wayne Davison [Sun, 19 May 2013 21:23:07 +0000]
Updated to the version dated 2013-04-24.

5 days agoUpdated to the version dated 2013-05-16.
Wayne Davison [Sun, 19 May 2013 21:23:07 +0000]
Updated to the version dated 2013-05-16.

4 months agoImprove description of --max-delete.
Wayne Davison [Sun, 20 Jan 2013 19:30:08 +0000]
Improve description of --max-delete.

4 months agoFix weird error in test programs on SunOS.
Wayne Davison [Sat, 19 Jan 2013 20:04:17 +0000]
Fix weird error in test programs on SunOS.

4 months agoUpdate copyright year.
Wayne Davison [Sat, 19 Jan 2013 19:05:53 +0000]
Update copyright year.

4 months agoUpdate OLDNEWS with 3.0.9 info.
Wayne Davison [Sat, 19 Jan 2013 19:02:37 +0000]
Update OLDNEWS with 3.0.9 info.

4 months agoFree ACL/xattr info in try_dests_reg() loop.
Wayne Davison [Sat, 19 Jan 2013 18:20:49 +0000]
Free ACL/xattr info in try_dests_reg() loop.

4 months agoAdd free_stat_x() inline function.
Wayne Davison [Sat, 19 Jan 2013 18:20:49 +0000]
Add free_stat_x() inline function.

4 months agoFurther improve non-empty-destination --link-dest behavior:
Wayne Davison [Sat, 19 Jan 2013 17:52:56 +0000]
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().

4 months agoRemove -3 return from try_dests_reg() again -- let it do a local copy
Wayne Davison [Sat, 19 Jan 2013 17:08:36 +0000]
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.

4 months agoAlign fileio's map_ptr() reads. Fixes bug 8177.
Wayne Davison [Fri, 18 Jan 2013 23:07:03 +0000]
Align fileio's map_ptr() reads.  Fixes bug 8177.

4 months agoReformat a few things for wider lines.
Wayne Davison [Fri, 18 Jan 2013 23:18:58 +0000]
Reformat a few things for wider lines.

4 months agoImprove handling of existing files for alt-dest opts.
Wayne Davison [Fri, 18 Jan 2013 19:54:01 +0000]
Improve handling of existing files for alt-dest opts.
Fixes bug #5644.

7 months agoPerl version of lsh that can change user w/o sudo.
Wayne Davison [Sun, 7 Oct 2012 23:20:41 +0000]
Perl version of lsh that can change user w/o sudo.

7 months agoFix bogus "vanished file" with "./" prefixes.
Wayne Davison [Sun, 7 Oct 2012 17:46:23 +0000]
Fix bogus "vanished file" with "./" prefixes.
Fixes bug 9212.

7 months agoFix indentation that used expanded tabs.
Wayne Davison [Wed, 3 Oct 2012 22:20:43 +0000]
Fix indentation that used expanded tabs.

8 months agoAvoid an unused variable warning if no setvbuf.
Wayne Davison [Sun, 23 Sep 2012 19:03:19 +0000]
Avoid an unused variable warning if no setvbuf.

8 months agoMake read_args() return the full request.
Wayne Davison [Sat, 8 Sep 2012 23:29:45 +0000]
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#.

11 months agoMake daemon listener exit w/code 0 on SIGTERM.
Wayne Davison [Sat, 16 Jun 2012 17:30:46 +0000]
Make daemon listener exit w/code 0 on SIGTERM.

12 months agoSet the modtime to 0 on a partial file.
Wayne Davison [Sat, 5 May 2012 15:01:09 +0000]
Set the modtime to 0 on a partial file.
Fixes debian bug 624826.

15 months agoFix --only-write-batch hang with --hard-links.
Wayne Davison [Sat, 28 Jan 2012 19:51:28 +0000]
Fix --only-write-batch hang with --hard-links.
Fixes bug 8565.

15 months agoAdd a slash-stripping version of rsync in support dir.
Wayne Davison [Sat, 28 Jan 2012 18:39:40 +0000]
Add a slash-stripping version of rsync in support dir.

15 months agoflist->in_progress is only needed w/inc_recurese.
Wayne Davison [Sat, 28 Jan 2012 18:39:21 +0000]
flist->in_progress is only needed w/inc_recurese.

15 months agoMake stderr line-buffered w/--msgs2stderr.
Wayne Davison [Sat, 28 Jan 2012 18:38:31 +0000]
Make stderr line-buffered w/--msgs2stderr.

15 months agoAdd new --outbuf=N|L|B option.
Wayne Davison [Sat, 28 Jan 2012 18:36:43 +0000]
Add new --outbuf=N|L|B option.

17 months agoAllow --max-size=0 and --min-size=0.
Wayne Davison [Sat, 24 Dec 2011 20:33:17 +0000]
Allow --max-size=0 and --min-size=0.
Fixes bug 7965.

17 months agoComplain if the --block-size=N value is too large.
Wayne Davison [Sat, 24 Dec 2011 20:18:40 +0000]
Complain if the --block-size=N value is too large.
Fixes bug 8036.

17 months agoImprove the handling of verbose/debug messages
Wayne Davison [Wed, 21 Dec 2011 16:30:07 +0000]
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.

17 months agoAvoid double-free of xattr/acl data in real_sx.
Wayne Davison [Fri, 16 Dec 2011 17:03:25 +0000]
Avoid double-free of xattr/acl data in real_sx.
Fixes bug 8665.

18 months agoMention that %a and %h are daemon-only escapes.
Wayne Davison [Thu, 24 Nov 2011 15:55:11 +0000]
Mention that %a and %h are daemon-only escapes.

18 months agoAnother asprintf() return-value-check tweak.
Wayne Davison [Wed, 23 Nov 2011 21:14:35 +0000]
Another asprintf() return-value-check tweak.

18 months agoCommitting missed manpage tweak.
Wayne Davison [Wed, 23 Nov 2011 20:36:50 +0000]
Committing missed manpage tweak.

18 months agomake repeated --fuzzy option look into alt-dest dirs.
Wayne Davison [Tue, 22 Nov 2011 16:14:01 +0000]
make repeated --fuzzy option look into alt-dest dirs.

18 months agoAdd compatibility with an unmodified zlib.
Wayne Davison [Mon, 21 Nov 2011 17:22:14 +0000]
Add compatibility with an unmodified zlib.

18 months agoFix --compress data-duplication bug.
Wayne Davison [Mon, 21 Nov 2011 17:13:11 +0000]
Fix --compress data-duplication bug.

18 months agoFix version expansion.
Wayne Davison [Mon, 21 Nov 2011 17:10:49 +0000]
Fix version expansion.

19 months agoFix --delete-missing-args when --relative is active.
Wayne Davison [Sat, 22 Oct 2011 17:20:08 +0000]
Fix --delete-missing-args when --relative is active.

19 months agoTest asprintf() failure with < 0, not <= 0.
Wayne Davison [Sat, 8 Oct 2011 16:16:43 +0000]
Test asprintf() failure with < 0, not <= 0.

19 months agoLet's cast getpid() to an int instead of a long for snprintf().
Wayne Davison [Sat, 8 Oct 2011 16:15:36 +0000]
Let's cast getpid() to an int instead of a long for snprintf().

20 months agoFix two unused-variable compiler warnings.
Wayne Davison [Fri, 23 Sep 2011 06:37:07 +0000]
Fix two unused-variable compiler warnings.

20 months agoFix xattr memory leak. Fixes bug 8475.
Wayne Davison [Thu, 22 Sep 2011 16:02:21 +0000]
Fix xattr memory leak.  Fixes bug 8475.

20 months agoTestsuite/dir-sgid: use symbolic mode to set sgid bit
Ben Walton [Wed, 21 Sep 2011 02:57:39 +0000]
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.

20 months agoAdd solaris xattr support to the tests.
Wayne Davison [Tue, 20 Sep 2011 20:19:39 +0000]
Add solaris xattr support to the tests.
Change the xattr case statements to use $HOST_OS.
(Slightly tweaked version of a Ben Walton patch.)

20 months agoBetter fakeroot support helps Solaris.
Wayne Davison [Tue, 20 Sep 2011 20:10:02 +0000]
Better fakeroot support helps Solaris.

20 months agoChange stat order for better ELOOP determination.
Wayne Davison [Tue, 20 Sep 2011 20:02:12 +0000]
Change stat order for better ELOOP determination.

20 months agoBe sure to use STRUCT_STAT.
Wayne Davison [Tue, 20 Sep 2011 19:54:06 +0000]
Be sure to use STRUCT_STAT.

20 months agoMake do_readlink() support fake-super w/o O_NOFOLLOW.
Wayne Davison [Mon, 19 Sep 2011 16:18:18 +0000]
Make do_readlink() support fake-super w/o O_NOFOLLOW.

20 months agoMake --delete-excluded work better with --filter=merge.
Wayne Davison [Thu, 15 Sep 2011 14:40:50 +0000]
Make --delete-excluded work better with --filter=merge.

20 months agoWhen modifying PATH, export it (for Solaris).
Wayne Davison [Thu, 15 Sep 2011 14:27:23 +0000]
When modifying PATH, export it (for Solaris).

20 months agoAdded "SORTED TRANSFER ORDER" manpage section.
Wayne Davison [Tue, 13 Sep 2011 22:58:25 +0000]
Added "SORTED TRANSFER ORDER" manpage section.

20 months agoCleanup some manpage & --help info.
Wayne Davison [Tue, 13 Sep 2011 22:25:19 +0000]
Cleanup some manpage & --help info.

20 months agoUse "|| true" in our `xattr` test runs.
Wayne Davison [Tue, 13 Sep 2011 15:07:31 +0000]
Use "|| true" in our `xattr` test runs.

20 months agoMake sure other early exit calls can't hang in noop_io_until_death().
Wayne Davison [Tue, 13 Sep 2011 00:56:23 +0000]
Make sure other early exit calls can't hang in noop_io_until_death().

20 months agoImprove the usage for --help.
Wayne Davison [Mon, 12 Sep 2011 05:46:57 +0000]
Improve the usage for --help.

20 months agoBetter configure support for Solaris xattrs
Ben Walton [Mon, 12 Sep 2011 00:57:05 +0000]
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.

20 months agoFix a potential hang on an empty file list.
Wayne Davison [Sun, 11 Sep 2011 18:07:02 +0000]
Fix a potential hang on an empty file list.
Fixes bug 8423.

20 months agoDocument --msgs2stderr.
Wayne Davison [Sun, 11 Sep 2011 18:01:04 +0000]
Document --msgs2stderr.

20 months agoError out if --password-file specifed and it fails.
Wayne Davison [Wed, 7 Sep 2011 04:18:32 +0000]
Error out if --password-file specifed and it fails.
Fixes bug 8440.

20 months agoDirs need +rx as well as +w for non-super xfers.
Wayne Davison [Sat, 3 Sep 2011 19:40:12 +0000]
Dirs need +rx as well as +w for non-super xfers.
Fixes bug 8242.

20 months agoMove implied_dot_dir=1, just to be safe.
Wayne Davison [Sat, 27 Aug 2011 21:58:04 +0000]
Move implied_dot_dir=1, just to be safe.

20 months agoFix sending of "." attributes for implied-dot-dir.
Wayne Davison [Sat, 27 Aug 2011 18:56:57 +0000]
Fix sending of "." attributes for implied-dot-dir.

20 months agoFix bwlimit multiplication overflow. Fixes bug 8375.
Wayne Davison [Sat, 27 Aug 2011 17:28:20 +0000]
Fix bwlimit multiplication overflow.  Fixes bug 8375.

20 months agoSome option-parsing clarifiation in the intro.
Wayne Davison [Sat, 27 Aug 2011 17:07:28 +0000]
Some option-parsing clarifiation in the intro.

21 months agoFix misplaced parens on getnameinfo() call.
Wayne Davison [Sat, 6 Aug 2011 18:21:40 +0000]
Fix misplaced parens on getnameinfo() call.

21 months agoIgnore socketpair() on cygwin. Fixes bug 8356.
Wayne Davison [Sat, 6 Aug 2011 18:18:54 +0000]
Ignore socketpair() on cygwin.  Fixes bug 8356.

21 months agoTweak includes to fix non-defined NULL on some systems.
Wayne Davison [Mon, 1 Aug 2011 06:31:17 +0000]
Tweak includes to fix non-defined NULL on some systems.

22 months agoFix Minix build errors. Fixes bug 8313.
Wayne Davison [Fri, 22 Jul 2011 18:17:57 +0000]
Fix Minix build errors.  Fixes bug 8313.

22 months agoReplace another inet_ntop() call with getnameinfo().
Wayne Davison [Sat, 16 Jul 2011 22:42:32 +0000]
Replace another inet_ntop() call with getnameinfo().

22 months agoAdd more connect debug info, as Carlos suggested.
Wayne Davison [Tue, 12 Jul 2011 22:58:11 +0000]
Add more connect debug info, as Carlos suggested.

22 months agoMove freeaddrinfo() call after failure-reporting loop.
Wayne Davison [Tue, 12 Jul 2011 01:15:51 +0000]
Move freeaddrinfo() call after failure-reporting loop.

22 months agoFix a comment.
Wayne Davison [Mon, 4 Jul 2011 23:31:58 +0000]
Fix a comment.

22 months agoHandle FES_NO_SEND properly on a hard-linked file.
Wayne Davison [Mon, 4 Jul 2011 23:02:12 +0000]
Handle FES_NO_SEND properly on a hard-linked file.
Fixes bug 8246.

22 months agoFix #ifdef in unchanged_attrs(). Fixes bug 8268.
Wayne Davison [Sun, 26 Jun 2011 16:52:40 +0000]
Fix #ifdef in unchanged_attrs(). Fixes bug 8268.

23 months agoFix reading side of fake-symlink bug 7109.
Wayne Davison [Sat, 18 Jun 2011 20:42:30 +0000]
Fix reading side of fake-symlink bug 7109.

23 months agoMake daemon-exclude errors more error-like.
Wayne Davison [Sat, 18 Jun 2011 19:44:26 +0000]
Make daemon-exclude errors more error-like.
Fixes bug 7765.

23 months agoCheck if sender file changed before allowing a remove.
Wayne Davison [Sat, 18 Jun 2011 19:06:44 +0000]
Check if sender file changed before allowing a remove.
Fixes bug 7691.

23 months agoSet NO_SYMLINK_USER_XATTRS on linux. Fixes bug 7109.
Wayne Davison [Sat, 18 Jun 2011 17:12:47 +0000]
Set NO_SYMLINK_USER_XATTRS on linux. Fixes bug 7109.

23 months agoOnly skip deletions on IOERR_GENERAL. Fixes bug 7809.
Wayne Davison [Sat, 4 Jun 2011 20:04:46 +0000]
Only skip deletions on IOERR_GENERAL.  Fixes bug 7809.

23 months agoDon't force \(em in the manpages. Fixes bug 7941.
Wayne Davison [Sat, 4 Jun 2011 19:53:10 +0000]
Don't force \(em in the manpages.  Fixes bug 7941.

23 months agoAdd a colon if a non-empty pre-xfer exec message follows.
Wayne Davison [Sat, 4 Jun 2011 19:12:25 +0000]
Add a colon if a non-empty pre-xfer exec message follows.

23 months agoHandle EINTR when reading the pre-xfer exec message.
Wayne Davison [Sat, 4 Jun 2011 19:08:18 +0000]
Handle EINTR when reading the pre-xfer exec message.

23 months agoSend error messages from pre-xfer exec script to the user.
Wayne Davison [Sat, 4 Jun 2011 17:38:47 +0000]
Send error messages from pre-xfer exec script to the user.

23 months agoLinux needs symlink xattrs. Fixes bug 8201.
Wayne Davison [Sat, 4 Jun 2011 16:46:06 +0000]
Linux needs symlink xattrs.  Fixes bug 8201.

23 months agoWe need VA_COPY() defined more. Fix dangling #endif.
Wayne Davison [Mon, 30 May 2011 19:48:04 +0000]
We need VA_COPY() defined more.  Fix dangling #endif.

23 months agoMerge latest samba version to get va_end() fixes, etc.
Wayne Davison [Mon, 30 May 2011 17:24:57 +0000]
Merge latest samba version to get va_end() fixes, etc.

23 months agoFix unwritable directory issue due to misordered chmod call.
Wayne Davison [Mon, 30 May 2011 15:24:27 +0000]
Fix unwritable directory issue due to misordered chmod call.

2 years agoExpand NO_ENTRY items from fake-super ACLs in get_rsync_acl().
Wayne Davison [Wed, 25 May 2011 15:59:47 +0000]
Expand NO_ENTRY items from fake-super ACLs in get_rsync_acl().

2 years agoUse a union for idlist's name/max_id value. Fixes bug 8137.
Wayne Davison [Tue, 17 May 2011 01:24:34 +0000]
Use a union for idlist's name/max_id value.  Fixes bug 8137.

2 years agoExplicitly mention spaces in the "path" setting.
Wayne Davison [Mon, 16 May 2011 18:24:07 +0000]
Explicitly mention spaces in the "path" setting.

2 years agoCheck for linux/falloc.h header file.
Wayne Davison [Mon, 16 May 2011 15:26:40 +0000]
Check for linux/falloc.h header file.

2 years agoAbort if the cd fails.
Wayne Davison [Sat, 7 May 2011 19:58:11 +0000]
Abort if the cd fails.

2 years agoTurn empty remote args into dot dirs.
Wayne Davison [Sat, 7 May 2011 19:31:33 +0000]
Turn empty remote args into dot dirs.

2 years agoMake --files-from allow a missing trailing arg w/--server.
Wayne Davison [Sat, 7 May 2011 19:16:12 +0000]
Make --files-from allow a missing trailing arg w/--server.

2 years agoMention the number of child args.
Wayne Davison [Sat, 7 May 2011 19:11:33 +0000]
Mention the number of child args.

2 years agoDon't die if man-copy fails.
Wayne Davison [Fri, 29 Apr 2011 01:50:21 +0000]
Don't die if man-copy fails.