rsync.git
10 years agoPreparing for release of 3.1.1pre1 v3.1.1pre1
Wayne Davison [Sun, 26 Jan 2014 17:32:43 +0000 (09:32 -0800)]
Preparing for release of 3.1.1pre1

10 years agoBump the year to 2014.
Wayne Davison [Sun, 26 Jan 2014 17:29:15 +0000 (09:29 -0800)]
Bump the year to 2014.

10 years agoMore NEWS improvements.
Wayne Davison [Sun, 26 Jan 2014 17:21:47 +0000 (09:21 -0800)]
More NEWS improvements.

10 years agoFix "unchanged" protocol designation.
Wayne Davison [Mon, 20 Jan 2014 03:44:30 +0000 (19:44 -0800)]
Fix "unchanged" protocol designation.

10 years agoMention the latest NEWS items.
Wayne Davison [Sun, 19 Jan 2014 23:24:07 +0000 (15:24 -0800)]
Mention the latest NEWS items.

10 years agoUndo the hard-link xattr optimization in 78286a03.
Wayne Davison [Sun, 19 Jan 2014 22:59:43 +0000 (14:59 -0800)]
Undo the hard-link xattr optimization in 78286a03.

I'm backing out the xattr optimization that was put in to try
to make xattr data sending more optimal on hard-linked files.
The code was causing hard-to-reproduce bugs, and it's better to
get things done fully & correctly over fully optimally.

10 years agoFix the leaving of a temp file w/o partial-file saving.
Wayne Davison [Sun, 19 Jan 2014 22:35:05 +0000 (14:35 -0800)]
Fix the leaving of a temp file w/o partial-file saving.
Fixed bug 10350.

10 years agoAvoid ACL and/or xattr lookups on IS_MISSING_FILE() entries.
Wayne Davison [Sun, 19 Jan 2014 20:24:01 +0000 (12:24 -0800)]
Avoid ACL and/or xattr lookups on IS_MISSING_FILE() entries.
Fixes bug 10381.

10 years agoAdd IS_MISSING_FILE(statbuf) macro.
Wayne Davison [Sun, 19 Jan 2014 20:23:39 +0000 (12:23 -0800)]
Add IS_MISSING_FILE(statbuf) macro.

10 years agoAdding IVAL64() and SIVAL64().
Wayne Davison [Sun, 19 Jan 2014 20:02:38 +0000 (12:02 -0800)]
Adding IVAL64() and SIVAL64().

10 years agoHandle more x86 hosts w/o resorting to CAREFUL_ALIGNMENT.
Wayne Davison [Sun, 19 Jan 2014 19:48:14 +0000 (11:48 -0800)]
Handle more x86 hosts w/o resorting to CAREFUL_ALIGNMENT.

10 years agoWe really depend on autoconf 2.60 these days.
Wayne Davison [Thu, 2 Jan 2014 18:56:03 +0000 (10:56 -0800)]
We really depend on autoconf 2.60 these days.

10 years agoAdding rsync-no-vanished script for bug 10356.
Wayne Davison [Wed, 1 Jan 2014 18:35:08 +0000 (10:35 -0800)]
Adding rsync-no-vanished script for bug 10356.

10 years agoWarn about lack of yodl2man at end of configure run.
Wayne Davison [Wed, 1 Jan 2014 17:56:40 +0000 (09:56 -0800)]
Warn about lack of yodl2man at end of configure run.

10 years agoRestoring use of socketpair on cygwin.
Wayne Davison [Wed, 25 Dec 2013 22:20:52 +0000 (14:20 -0800)]
Restoring use of socketpair on cygwin.

Use of socketpair is much faster on cygwin, and some folks report fewer
hangs using the modern socketpair implementation vs pipes.

10 years agoUse 0 (not NULL) for a non-pointer arg.
Wayne Davison [Wed, 25 Dec 2013 22:19:30 +0000 (14:19 -0800)]
Use 0 (not NULL) for a non-pointer arg.

10 years agoTry to fix bug 7865 for some acl() EINVAL results.
Wayne Davison [Wed, 25 Dec 2013 18:18:41 +0000 (10:18 -0800)]
Try to fix bug 7865 for some acl() EINVAL results.

10 years agoFix a few issues with make_path().
Wayne Davison [Mon, 23 Dec 2013 18:27:24 +0000 (10:27 -0800)]
Fix a few issues with make_path().

The make_path() utility function was not returning the right status
when --dry-run was used, so I added some stat() checking that only
happens for -n.  I also noticed that the function was not handling
the case where the whole path needed to be created, so I fixed that.
Fixes bug 10209.

10 years agoChange owner+group before setting xattrs to avoid xattr loss.
Wayne Davison [Mon, 23 Dec 2013 17:49:17 +0000 (09:49 -0800)]
Change owner+group before setting xattrs to avoid xattr loss.
Fixes bug 10163.

10 years agoFix a typo that Stefan Beller pointed out.
Wayne Davison [Sun, 15 Dec 2013 00:25:18 +0000 (16:25 -0800)]
Fix a typo that Stefan Beller pointed out.

10 years agoA delete_item() error should use FERROR_XFER.
Wayne Davison [Sun, 1 Dec 2013 23:58:17 +0000 (15:58 -0800)]
A delete_item() error should use FERROR_XFER.
Fixes bug 10024.

10 years agoTweak log_delete() to send MSG_DELETED more.
Wayne Davison [Thu, 28 Nov 2013 19:03:48 +0000 (11:03 -0800)]
Tweak log_delete() to send MSG_DELETED more.

If the client is the sender and it is wanting to log deletes, the
current generator code neglects to send MSG_DELETED to the client side
unless some delete verbosity is enabled.  With this new version on the
generator side, the logfile will now mention deletes, even if the
sending (client) side is an older rsync.  Fixes bug 10182.

10 years agoCreate and use write_bigbuf() function for extra-large buffer sizes.
Wayne Davison [Mon, 25 Nov 2013 21:12:35 +0000 (13:12 -0800)]
Create and use write_bigbuf() function for extra-large buffer sizes.

10 years agoUse chunked xattr reading in OS X sys_lgetxattr().
Wayne Davison [Mon, 25 Nov 2013 21:12:09 +0000 (13:12 -0800)]
Use chunked xattr reading in OS X sys_lgetxattr().

10 years agoFix itemize bug with --link-dest, -X, and -n.
Wayne Davison [Mon, 25 Nov 2013 17:12:06 +0000 (09:12 -0800)]
Fix itemize bug with --link-dest, -X, and -n.

When running with --*-dest & -X, some alt-dest-found files would not
use the right name when looking up old attrs in itemize(), causing a
weird error for a --dry-run copy.  Fixes bug 10238.

10 years agoAvoid useless keepalive msgs that would kill an older rsync.
Wayne Davison [Mon, 11 Nov 2013 00:15:30 +0000 (16:15 -0800)]
Avoid useless keepalive msgs that would kill an older 

This fix avoids the sending of keep-alive messages from the receiver
to the sender when we are still sending the file list (at which time
an older rsync would die if it received such a keep-alive message).
The messages aren't actually needed, since we haven't forked yet, and
the single flow of data keeps the procs alive.

10 years agoFix timeout checking in safe_read().
Wayne Davison [Sat, 9 Nov 2013 18:49:59 +0000 (10:49 -0800)]
Fix timeout checking in safe_read().

10 years agoChange safe_read() to select() before reading.
Wayne Davison [Sat, 9 Nov 2013 18:32:44 +0000 (10:32 -0800)]
Change safe_read() to select() before reading.

10 years agoGit rid of uneeded extern.
Wayne Davison [Sun, 27 Oct 2013 18:26:29 +0000 (11:26 -0700)]
Git rid of uneeded extern.

10 years agoReturn an error if a buffer overflows in do_mknod().
Wayne Davison [Sun, 27 Oct 2013 17:12:53 +0000 (10:12 -0700)]
Return an error if a buffer overflows in do_mknod().

10 years agoRestore sending of "-ef" marker to the server.
Wayne Davison [Sun, 27 Oct 2013 15:58:06 +0000 (08:58 -0700)]
Restore sending of "-ef" marker to the server.

10 years agoDon't use comma_num() in FLOG output.
Wayne Davison [Sat, 26 Oct 2013 23:28:15 +0000 (16:28 -0700)]
Don't use comma_num() in FLOG output.

10 years agoDon't forget about --debug and --info for rrsync.
Wayne Davison [Fri, 4 Oct 2013 21:10:44 +0000 (14:10 -0700)]
Don't forget about --debug and --info for rrsync.

10 years agoA few more new options that rsync 3.1.0 can pass.
Wayne Davison [Fri, 4 Oct 2013 20:57:58 +0000 (13:57 -0700)]
A few more new options that rsync 3.1.0 can pass.

10 years agoPrepare repository for more development.
Wayne Davison [Thu, 3 Oct 2013 17:45:49 +0000 (10:45 -0700)]
Prepare repository for more development.

10 years agoPreparing for release of 3.1.0 v3.1.0
Wayne Davison [Sat, 28 Sep 2013 20:55:54 +0000 (13:55 -0700)]
Preparing for release of 3.1.0

10 years agoRemove unused var.
Wayne Davison [Sat, 28 Sep 2013 20:53:23 +0000 (13:53 -0700)]
Remove unused var.

10 years agoFlush write buffer on an aborted in-place transfer.
Wayne Davison [Sat, 28 Sep 2013 17:11:35 +0000 (10:11 -0700)]
Flush write buffer on an aborted in-place transfer.

10 years agoMention latest news.
Wayne Davison [Mon, 16 Sep 2013 16:23:35 +0000 (09:23 -0700)]
Mention latest news.

10 years agoFix the visit-all-patches path.
Wayne Davison [Mon, 16 Sep 2013 16:15:14 +0000 (09:15 -0700)]
Fix the visit-all-patches path.

10 years agoFix error in write_sparse() on incomplete write.
Wayne Davison [Mon, 16 Sep 2013 16:00:53 +0000 (09:00 -0700)]
Fix error in write_sparse() on incomplete write.

Fix a problem where sparse_seek could get left non-zero when we
did not finish writing all the data that would take us to that
sparse gap.  Issue pointed out by David Taylor.

10 years agoRemove bypassed checksums in --inplace to improve speed.
Wayne Davison [Sat, 3 Aug 2013 16:44:13 +0000 (09:44 -0700)]
Remove bypassed checksums in --inplace to improve speed.

When checking a checksum that refers to a part of an --inplace file that
has been overwritten w/o getting SUMFLG_SAME_OFFSET set, we remove the
checksum from the list.  This will speed up files that have a lot of
identical checksum blocks (e.g. sequences of zeros) that we can't use
due to them not getting marked as being the same.  Patch provided by
Michael Chapman.

10 years agoPreparing for release of 3.1.0pre1 v3.1.0pre1
Wayne Davison [Sun, 28 Jul 2013 17:36:43 +0000 (10:36 -0700)]
Preparing for release of 3.1.0pre1

10 years agoWe need a trailing dot when using --server --daemon.
Wayne Davison [Fri, 12 Jul 2013 22:28:54 +0000 (15:28 -0700)]
We need a trailing dot when using --server --daemon.

10 years agoLook for REMOTE_HOST before SSH_* environment options.
Wayne Davison [Fri, 12 Jul 2013 22:24:58 +0000 (15:24 -0700)]
Look for REMOTE_HOST before SSH_* environment options.

10 years agoSet DESTDIR for make install.
Wayne Davison [Sun, 23 Jun 2013 22:47:09 +0000 (15:47 -0700)]
Set DESTDIR for make install.

10 years agoMention latest changes.
Wayne Davison [Sun, 16 Jun 2013 23:59:24 +0000 (16:59 -0700)]
Mention latest changes.

10 years agoBe a little clearer about full-line comments.
Wayne Davison [Sun, 16 Jun 2013 23:43:14 +0000 (16:43 -0700)]
Be a little clearer about full-line comments.

10 years agoGet GPL name right.
Wayne Davison [Sun, 16 Jun 2013 23:36:27 +0000 (16:36 -0700)]
Get GPL name right.

10 years agoMention right option when using --delete-delay.
Wayne Davison [Sun, 16 Jun 2013 23:33:32 +0000 (16:33 -0700)]
Mention right option when using --delete-delay.

10 years agoSupport rsync daemon over SSL via stunnel.
Wayne Davison [Sat, 15 Jun 2013 21:40:52 +0000 (14:40 -0700)]
Support rsync daemon over SSL via stunnel.

Added the client rsync-ssl script and various client/daemon support
files needed for talking to an rsync daemon over SSL on port 874 (no
tls support).  This uses an elegant stunnel setup that was detailed
by dozzie (see the resources page) now that stunnel4 has improved
command-spawning support.  Also incorporates some tweaks by devzero
(e.g. the nice no-tmpfile-config client-side code) and a few by me
(including logging of the actual remote IP that came in to the
stunnel process).  This probably still needs a little work.

10 years agoFix "make check".
Wayne Davison [Wed, 12 Jun 2013 01:06:53 +0000 (18:06 -0700)]
Fix "make check".

10 years agoMove some code from util.c to util2.c and add sum_as_hex().
Wayne Davison [Tue, 11 Jun 2013 20:35:19 +0000 (13:35 -0700)]
Move some code from util.c to util2.c and add sum_as_hex().

10 years agoSet number_separator the first time it gets used.
Wayne Davison [Tue, 11 Jun 2013 20:28:45 +0000 (13:28 -0700)]
Set number_separator the first time it gets used.

10 years agoMore NEWS changes.
Wayne Davison [Mon, 10 Jun 2013 05:28:24 +0000 (22:28 -0700)]
More NEWS changes.

10 years agoUpgrading zlib to 1.2.8.
Wayne Davison [Mon, 10 Jun 2013 05:24:10 +0000 (22:24 -0700)]
Upgrading zlib to 1.2.8.

10 years agoRename lsh.pl -> lsh.
Wayne Davison [Mon, 10 Jun 2013 02:40:00 +0000 (19:40 -0700)]
Rename lsh.pl -> lsh.

10 years agoRename lsh -> lsh.sh.
Wayne Davison [Mon, 10 Jun 2013 02:39:44 +0000 (19:39 -0700)]
Rename lsh -> lsh.sh.

10 years agoUpdating NEWS with the latest changes.
Wayne Davison [Sun, 9 Jun 2013 22:11:06 +0000 (15:11 -0700)]
Updating NEWS with the latest changes.

10 years agoAllow --password-file=- for a stdin-supplied password.
Wayne Davison [Sun, 9 Jun 2013 19:04:25 +0000 (12:04 -0700)]
Allow --password-file=- for a stdin-supplied password.

10 years agoFix module-name splitting with --protect-args.
Wayne Davison [Sun, 2 Jun 2013 22:53:40 +0000 (15:53 -0700)]
Fix module-name splitting with --protect-args.
Fixes bug 8838.

10 years agoTweak --checksum-seed docs.
Wayne Davison [Sun, 2 Jun 2013 20:14:27 +0000 (13:14 -0700)]
Tweak --checksum-seed docs.

10 years agoAvoid preallocation on inplace file that is already long enough.
Wayne Davison [Sun, 2 Jun 2013 19:37:48 +0000 (12:37 -0700)]
Avoid preallocation on inplace file that is already long enough.

10 years agoLook for got_kill_signal in a couple more spots.
Wayne Davison [Tue, 28 May 2013 05:53:48 +0000 (22:53 -0700)]
Look for got_kill_signal in a couple more spots.

10 years agoImprove logic of code vs exit_code (etc.) in cleanup.
Wayne Davison [Sun, 26 May 2013 23:18:49 +0000 (16:18 -0700)]
Improve logic of code vs exit_code (etc.) in cleanup.

10 years agoForward a MSG_ERROR_EXIT value to generator too.
Wayne Davison [Sun, 26 May 2013 23:10:57 +0000 (16:10 -0700)]
Forward a MSG_ERROR_EXIT value to generator too.
Fixes bug 9882.

10 years agoAvoid I/O via signal-handler thread.
Wayne Davison [Sun, 26 May 2013 21:52:50 +0000 (14:52 -0700)]
Avoid I/O via signal-handler thread.

The cleanup code will try to flush the output buffer in some
circumstances, which is not valid if we're handling an async signal
(since it might have interrupted some partial I/O in the main thread).
These signals now set a flag and try to let the main I/O handler take
care of the exit strategy.  Fixes a protocol error that could happen
when trying to exit after a kill signal.

11 years agoImprove iconvbufs() to do more buffer size checks.
Wayne Davison [Sun, 19 May 2013 23:56:34 +0000 (23:56 +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).

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

11 years agoFixed unused variable warnings in free_stat_x.
Wayne Davison [Sun, 19 May 2013 21:31:27 +0000 (21:31 +0000)]
Fixed unused variable warnings in free_stat_x.

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

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

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

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

11 years agoImprove description of --max-delete.
Wayne Davison [Sun, 20 Jan 2013 19:30:08 +0000 (11:30 -0800)]
Improve description of --max-delete.

11 years agoFix weird error in test programs on SunOS.
Wayne Davison [Sat, 19 Jan 2013 20:04:17 +0000 (12:04 -0800)]
Fix weird error in test programs on SunOS.

11 years agoUpdate copyright year.
Wayne Davison [Sat, 19 Jan 2013 19:05:53 +0000 (11:05 -0800)]
Update copyright year.

11 years agoUpdate OLDNEWS with 3.0.9 info.
Wayne Davison [Sat, 19 Jan 2013 19:02:37 +0000 (11:02 -0800)]
Update OLDNEWS with 3.0.9 info.

11 years agoFree ACL/xattr info in try_dests_reg() loop.
Wayne Davison [Sat, 19 Jan 2013 18:20:49 +0000 (10:20 -0800)]
Free ACL/xattr info in try_dests_reg() loop.

11 years agoAdd free_stat_x() inline function.
Wayne Davison [Sat, 19 Jan 2013 18:20:49 +0000 (10:20 -0800)]
Add free_stat_x() inline function.

11 years agoFurther improve non-empty-destination --link-dest behavior:
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().

11 years agoRemove -3 return from try_dests_reg() again -- let it do a local copy
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.

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

11 years agoReformat a few things for wider lines.
Wayne Davison [Fri, 18 Jan 2013 23:18:58 +0000 (15:18 -0800)]
Reformat a few things for wider lines.

11 years agoImprove handling of existing files for alt-dest opts.
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.

11 years agoPerl version of lsh that can change user w/o sudo.
Wayne Davison [Sun, 7 Oct 2012 23:20:41 +0000 (16:20 -0700)]
Perl version of lsh that can change user w/o sudo.

11 years agoFix bogus "vanished file" with "./" prefixes.
Wayne Davison [Sun, 7 Oct 2012 17:46:23 +0000 (10:46 -0700)]
Fix bogus "vanished file" with "./" prefixes.
Fixes bug 9212.

11 years agoFix indentation that used expanded tabs.
Wayne Davison [Wed, 3 Oct 2012 22:20:43 +0000 (15:20 -0700)]
Fix indentation that used expanded tabs.

11 years agoAvoid an unused variable warning if no setvbuf.
Wayne Davison [Sun, 23 Sep 2012 19:03:19 +0000 (12:03 -0700)]
Avoid an unused variable warning if no setvbuf.

11 years agoMake read_args() return the full request.
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#.

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

12 years agoSet the modtime to 0 on a partial file.
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.

12 years agoFix --only-write-batch hang with --hard-links.
Wayne Davison [Sat, 28 Jan 2012 19:51:28 +0000 (11:51 -0800)]
Fix --only-write-batch hang with --hard-links.
Fixes bug 8565.

12 years agoAdd a slash-stripping version of rsync in support dir.
Wayne Davison [Sat, 28 Jan 2012 18:39:40 +0000 (10:39 -0800)]
Add a slash-stripping version of rsync in support dir.

12 years agoflist->in_progress is only needed w/inc_recurese.
Wayne Davison [Sat, 28 Jan 2012 18:39:21 +0000 (10:39 -0800)]
flist->in_progress is only needed w/inc_recurese.

12 years agoMake stderr line-buffered w/--msgs2stderr.
Wayne Davison [Sat, 28 Jan 2012 18:38:31 +0000 (10:38 -0800)]
Make stderr line-buffered w/--msgs2stderr.

12 years agoAdd new --outbuf=N|L|B option.
Wayne Davison [Sat, 28 Jan 2012 18:36:43 +0000 (10:36 -0800)]
Add new --outbuf=N|L|B option.

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

12 years agoComplain if the --block-size=N value is too large.
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.

12 years agoImprove the handling of verbose/debug messages
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.