rsync/rsync.git
13 years agoSome quoting fixes/improvements.
Wayne Davison [Mon, 6 Sep 2010 15:41:46 +0000 (08:41 -0700)]
Some quoting fixes/improvements.

13 years agoIf we create an off_t type, define SIZEOF_OFF_T.
Wayne Davison [Mon, 6 Sep 2010 15:25:19 +0000 (08:25 -0700)]
If we create an off_t type, define SIZEOF_OFF_T.

13 years agoFix rsync_xal_set reference in an error.
Wayne Davison [Mon, 6 Sep 2010 15:09:20 +0000 (08:09 -0700)]
Fix rsync_xal_set reference in an error.

13 years agoUndo unintended mode-reference tweak.
Wayne Davison [Sun, 29 Aug 2010 01:02:22 +0000 (18:02 -0700)]
Undo unintended mode-reference tweak.

13 years agoFix description of how to force new prototype generation.
Wayne Davison [Fri, 27 Aug 2010 14:44:17 +0000 (07:44 -0700)]
Fix description of how to force new prototype generation.

13 years agoMove time setting to syscall.c and add syscall fallback.
Wayne Davison [Thu, 26 Aug 2010 17:24:37 +0000 (10:24 -0700)]
Move time setting to syscall.c and add syscall fallback.
See bug 5506 and bug 7621.

13 years agoMake case_N.h more generic.
Wayne Davison [Thu, 26 Aug 2010 17:13:04 +0000 (10:13 -0700)]
Make case_N.h more generic.

13 years agoAdd --omit-link-times and use CAN_SET_SYMLINK_TIMES less.
Wayne Davison [Thu, 26 Aug 2010 15:50:05 +0000 (08:50 -0700)]
Add --omit-link-times and use CAN_SET_SYMLINK_TIMES less.

13 years agoMention need of wildcard support in make.
Wayne Davison [Thu, 26 Aug 2010 15:27:20 +0000 (08:27 -0700)]
Mention need of wildcard support in make.
See bug 7625.

13 years agoRemove duplication for -x option.
Wayne Davison [Thu, 26 Aug 2010 14:58:22 +0000 (07:58 -0700)]
Remove duplication for -x option.

13 years agoAdd some new dont-compress suffixes.
Wayne Davison [Sat, 21 Aug 2010 21:41:53 +0000 (14:41 -0700)]
Add some new dont-compress suffixes.
As suggested in bug 6839.

13 years agoAvoid a crash with --append-verify when discarding the received data.
Wayne Davison [Sat, 21 Aug 2010 21:25:48 +0000 (14:25 -0700)]
Avoid a crash with --append-verify when discarding the received data.
Fixes bug 6293.

13 years agoAvoid a non-writable-by-the-user file when copying xattrs.
Wayne Davison [Sat, 21 Aug 2010 20:59:33 +0000 (13:59 -0700)]
Avoid a non-writable-by-the-user file when copying xattrs.
Fixes part of the problem in bug 5147.

13 years agoAvoid infinite loop if the file's length is negative.
Wayne Davison [Sat, 21 Aug 2010 18:26:21 +0000 (11:26 -0700)]
Avoid infinite loop if the file's length is negative.
Fixes bug 4664.

13 years agoDon't mention bug fixes that are queued up for 3.0.8.
Wayne Davison [Sat, 3 Jul 2010 15:57:28 +0000 (08:57 -0700)]
Don't mention bug fixes that are queued up for 3.0.8.

13 years agoRefer to the right lsetxattr() caller in a error message.
Wayne Davison [Sat, 3 Jul 2010 15:14:02 +0000 (08:14 -0700)]
Refer to the right lsetxattr() caller in a error message.

13 years agoReplace another assert with a descriptive error.
Wayne Davison [Sat, 26 Jun 2010 22:50:07 +0000 (15:50 -0700)]
Replace another assert with a descriptive error.

13 years agoI like braces when multiple lines are indented.
Wayne Davison [Sat, 26 Jun 2010 18:26:45 +0000 (11:26 -0700)]
I like braces when multiple lines are indented.

13 years agoOlder protocols should send 1-incremented dev numbers.
Wayne Davison [Sat, 26 Jun 2010 18:20:16 +0000 (11:20 -0700)]
Older protocols should send 1-incremented dev numbers.

13 years agoMention more changes.
Wayne Davison [Sat, 26 Jun 2010 17:59:30 +0000 (10:59 -0700)]
Mention more changes.

13 years agoMore manpage improvements.
Wayne Davison [Sat, 26 Jun 2010 17:52:04 +0000 (10:52 -0700)]
More manpage improvements.

13 years agoMention more output changes.
Wayne Davison [Sat, 26 Jun 2010 17:01:24 +0000 (10:01 -0700)]
Mention more output changes.

13 years agoManpage improvements for --stats, --human-readable, and --list-only.
Wayne Davison [Sat, 26 Jun 2010 17:01:13 +0000 (10:01 -0700)]
Manpage improvements for --stats, --human-readable, and --list-only.

13 years agoOutput list-only sizes using any human-readable setting.
Wayne Davison [Sat, 26 Jun 2010 17:00:29 +0000 (10:00 -0700)]
Output list-only sizes using any human-readable setting.

13 years agoFix accessors F_LENGTH() and F_MOD_NSEC().
Wayne Davison [Sat, 26 Jun 2010 15:54:57 +0000 (08:54 -0700)]
Fix accessors F_LENGTH() and F_MOD_NSEC().

13 years agoClose the socket fds in the "post-xfer exec" process.
Wayne Davison [Sat, 19 Jun 2010 17:49:43 +0000 (10:49 -0700)]
Close the socket fds in the "post-xfer exec" process.

13 years agoGet rid of some trailing whitespace.
Wayne Davison [Sat, 19 Jun 2010 17:49:09 +0000 (10:49 -0700)]
Get rid of some trailing whitespace.

13 years agoFix compression-ignoring of upper-case suffixes.
Wayne Davison [Sat, 19 Jun 2010 16:47:00 +0000 (09:47 -0700)]
Fix compression-ignoring of upper-case suffixes.
Fixes bug 7512.

13 years agoFix a couple socketpair_tcp() issues (see bug 7514).
Wayne Davison [Sat, 19 Jun 2010 16:29:42 +0000 (09:29 -0700)]
Fix a couple socketpair_tcp() issues (see bug 7514).

13 years agoFix daemon-filter crash issue (bug 7489).
Wayne Davison [Sat, 5 Jun 2010 06:09:20 +0000 (23:09 -0700)]
Fix daemon-filter crash issue (bug 7489).

13 years agoAvoid a double-increment of a file's st_dev value
Wayne Davison [Sat, 29 May 2010 17:57:02 +0000 (10:57 -0700)]
Avoid a double-increment of a file's st_dev value
while supporting older rsyncs that send dev == 0.

13 years agoMake sure our idev_find() hashtable use is right.
Wayne Davison [Sat, 29 May 2010 16:18:04 +0000 (09:18 -0700)]
Make sure our idev_find() hashtable use is right.

13 years agoMake sure we never try to store a 0 key and tweak key64 init.
Wayne Davison [Sat, 29 May 2010 16:17:27 +0000 (09:17 -0700)]
Make sure we never try to store a 0 key and tweak key64 init.

13 years agoTurn an assert into two more descriptive errors.
Wayne Davison [Sat, 29 May 2010 15:52:59 +0000 (08:52 -0700)]
Turn an assert into two more descriptive errors.

13 years agoMention --debug=hlink's level limits.
Wayne Davison [Sat, 29 May 2010 15:52:26 +0000 (08:52 -0700)]
Mention --debug=hlink's level limits.

13 years agoUpdate rrsync with the latest options.
Wayne Davison [Wed, 26 May 2010 18:24:00 +0000 (11:24 -0700)]
Update rrsync with the latest options.

13 years agoMake an empty-string dest-dir the same as "." again.
Wayne Davison [Mon, 3 May 2010 00:05:07 +0000 (17:05 -0700)]
Make an empty-string dest-dir the same as "." again.

13 years agoMay as well use do_mkdir() directly these days.
Wayne Davison [Fri, 30 Apr 2010 19:58:17 +0000 (12:58 -0700)]
May as well use do_mkdir() directly these days.

13 years agoReject passing an arg to an option that doesn't take one (bug 6915).
Wayne Davison [Sat, 24 Apr 2010 17:00:38 +0000 (10:00 -0700)]
Reject passing an arg to an option that doesn't take one (bug 6915).

Based on a patch by Matt, but further tweaked to deal with -q=foo.

Ultimately this should be upstreamed, but for now lets get this
functionality into rsync.

13 years agoMan page description of --xattrs should not assume a push.
Matt McCutchen [Wed, 17 Mar 2010 05:08:28 +0000 (01:08 -0400)]
Man page description of --xattrs should not assume a push.

13 years agoMinor restructuring/clarification to get_backup_name.
Matt McCutchen [Wed, 17 Mar 2010 05:03:32 +0000 (01:03 -0400)]
Minor restructuring/clarification to get_backup_name.
(Tweaked by Wayne to follow his preferred style.)

13 years agoIn "ignoring unsafe symlink" messages, show only the file-list path.
Matt McCutchen [Wed, 17 Mar 2010 04:53:42 +0000 (00:53 -0400)]
In "ignoring unsafe symlink" messages, show only the file-list path.

Rsync was showing the full destination path, which was confusing because
nothing is created at that path and was especially bogus in combination
with the source name of a solo file.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506830

13 years agoPoint out that the file_struct in log_delete is zero-initialized
Matt McCutchen [Wed, 10 Feb 2010 03:13:28 +0000 (22:13 -0500)]
Point out that the file_struct in log_delete is zero-initialized
because it is static.

It took me long enough to realize this that I think it is worth
documenting.

13 years agoRename configure.in to configure.ac, the current autoconf standard.
Matt McCutchen [Tue, 9 Feb 2010 01:45:39 +0000 (20:45 -0500)]
Rename configure.in to configure.ac, the current autoconf standard.

13 years agoFix erroneous "--fake-user" in the rsyncd.conf(5) man page.
Matt McCutchen [Mon, 8 Feb 2010 02:00:02 +0000 (21:00 -0500)]
Fix erroneous "--fake-user" in the rsyncd.conf(5) man page.

13 years agoDon't set the umask to 0 any more: it's ugly and pointless.
Matt McCutchen [Mon, 1 Feb 2010 18:29:39 +0000 (13:29 -0500)]
Don't set the umask to 0 any more: it's ugly and pointless.

13 years agoAmplify the man page description of --hard-links (see bug 3693), and
Matt McCutchen [Thu, 19 Nov 2009 05:18:23 +0000 (00:18 -0500)]
Amplify the man page description of --hard-links (see bug 3693), and
improve that of --inplace while I'm at it.

13 years agoDocument the "copy-some-dirlinks" trick in the man page.
Matt McCutchen [Sun, 4 Oct 2009 05:24:50 +0000 (01:24 -0400)]
Document the "copy-some-dirlinks" trick in the man page.

Originally explained at:

http://lists.samba.org/archive/rsync/2006-February/014838.html

14 years agoRemoving now-redundant path-size check from send_if_directory().
Wayne Davison [Wed, 31 Mar 2010 21:56:52 +0000 (14:56 -0700)]
Removing now-redundant path-size check from send_if_directory().

14 years agoFix a typo that Andrea Gelmini pointed out.
Wayne Davison [Sat, 27 Mar 2010 19:06:45 +0000 (12:06 -0700)]
Fix a typo that Andrea Gelmini pointed out.

14 years agoGet rid of trailing whitespace.
Wayne Davison [Sat, 27 Mar 2010 19:05:01 +0000 (12:05 -0700)]
Get rid of trailing whitespace.

14 years agoFix directory-length overflow bug (7057).
Wayne Davison [Fri, 26 Mar 2010 23:56:40 +0000 (16:56 -0700)]
Fix directory-length overflow bug (7057).

14 years agoHandle files that spring up while doing backup path checking.
Wayne Davison [Tue, 9 Mar 2010 19:56:54 +0000 (11:56 -0800)]
Handle files that spring up while doing backup path checking.

14 years agoWrite out the right compat_flags value into the batch file.
Wayne Davison [Wed, 17 Feb 2010 22:55:34 +0000 (14:55 -0800)]
Write out the right compat_flags value into the batch file.

14 years agoIf a module has no path setting, return an error.
Wayne Davison [Sat, 6 Feb 2010 21:40:12 +0000 (13:40 -0800)]
If a module has no path setting, return an error.

14 years agoMention what -XX (repeated --xattrs) does.
Wayne Davison [Sat, 6 Feb 2010 21:32:47 +0000 (13:32 -0800)]
Mention what -XX (repeated --xattrs) does.

14 years agoMore --timeout improvements, especially for the receiving side:
Wayne Davison [Sat, 2 Jan 2010 18:51:09 +0000 (10:51 -0800)]
More --timeout improvements, especially for the receiving side:
- The receiver now sends keep-alive messages to the generator
  when it is actively doing work and hasn't sent anything
  recently.  This ensures that the generator won't timeout
  if the receiver is working hard.
- The perform_io() code has improved keep-alive participation.
- Allow the sender to send some keep-alive messages, which
  ensures that if it is in a lull, it can probe the socket.

14 years agoDon't try to send MSG_ERROR_EXIT after a timeout.
Wayne Davison [Sat, 2 Jan 2010 17:14:19 +0000 (09:14 -0800)]
Don't try to send MSG_ERROR_EXIT after a timeout.

14 years agoAlways use lchmod() if it is available.
Wayne Davison [Thu, 31 Dec 2009 22:10:38 +0000 (14:10 -0800)]
Always use lchmod() if it is available.

14 years agoMention 2010 in the main copyright.
Wayne Davison [Thu, 31 Dec 2009 21:43:10 +0000 (13:43 -0800)]
Mention 2010 in the main copyright.

14 years agoAdding release info for 3.0.7 to the trunk.
Wayne Davison [Thu, 31 Dec 2009 21:41:14 +0000 (13:41 -0800)]
Adding release info for 3.0.7 to the trunk.

14 years agoAllow any gcc to make use of __builtin_alloca for alloca.
Wayne Davison [Thu, 31 Dec 2009 03:58:57 +0000 (19:58 -0800)]
Allow any gcc to make use of __builtin_alloca for alloca.

14 years agoConfigure check for -Wno-unused-parameter now tries to link too.
Wayne Davison [Thu, 31 Dec 2009 03:57:47 +0000 (19:57 -0800)]
Configure check for -Wno-unused-parameter now tries to link too.

14 years agoChange naming of local patch-related branches and unify
Wayne Davison [Wed, 30 Dec 2009 20:48:15 +0000 (12:48 -0800)]
Change naming of local patch-related branches and unify
the git-status checking into a library.

14 years agoAdd understanding of RSYNC_PROTECT_ARGS environment var.
Wayne Davison [Wed, 30 Dec 2009 20:02:52 +0000 (12:02 -0800)]
Add understanding of RSYNC_PROTECT_ARGS environment var.

14 years agoAllow "./configure --with-protect-args" to make -s the default.
Wayne Davison [Tue, 29 Dec 2009 20:08:41 +0000 (12:08 -0800)]
Allow "./configure --with-protect-args" to make -s the default.

14 years agoHandle check-in and tagging of patches dir.
Wayne Davison [Sat, 26 Dec 2009 22:29:51 +0000 (14:29 -0800)]
Handle check-in and tagging of patches dir.

14 years agoImprove handling of MSG_IO_ERROR message.
Wayne Davison [Wed, 23 Dec 2009 22:10:25 +0000 (14:10 -0800)]
Improve handling of MSG_IO_ERROR message.

14 years agoPass the 'f' compatibility flag to the server (via -e)
Wayne Davison [Mon, 21 Dec 2009 22:37:47 +0000 (14:37 -0800)]
Pass the 'f' compatibility flag to the server (via -e)
so that 3.0.7 knows we support the safer flist-xfer method.

14 years agoDon't die if inflate() returns Z_BUF_ERROR in see_deflate_token().
Wayne Davison [Mon, 21 Dec 2009 18:13:52 +0000 (10:13 -0800)]
Don't die if inflate() returns Z_BUF_ERROR in see_deflate_token().

14 years agoDon't set last_io_out in check_timeout.
Wayne Davison [Sat, 19 Dec 2009 21:42:35 +0000 (13:42 -0800)]
Don't set last_io_out in check_timeout.

14 years agoImprove --timeout method to take into account all I/O that is going on.
Wayne Davison [Sat, 19 Dec 2009 18:15:15 +0000 (10:15 -0800)]
Improve --timeout method to take into account all I/O that is going on.
The receiving side also switches timeout handling from the receiver to
the generator, which obviates the need for the sender to send any
keep-alive messages at all (for protocol 31 and beyond).  Given this
setup, all keep-alive messages are now sent as empty MSG_DATA messages,
with MSG_NOOP messages only being understood and (when necessary) acted
upon to forward a keep-alive event to an older receiver.  This is both
safer and more compatible with older versions.

14 years agoAdded an am_receiver variable.
Wayne Davison [Sat, 19 Dec 2009 18:14:49 +0000 (10:14 -0800)]
Added an am_receiver variable.

14 years agoImproved some I/O comments.
Wayne Davison [Thu, 17 Dec 2009 17:00:52 +0000 (09:00 -0800)]
Improved some I/O comments.

14 years agoFix the val reading for MSG_ERROR_EXIT. Use 0-length MSG_DATA when
Wayne Davison [Wed, 16 Dec 2009 20:08:53 +0000 (12:08 -0800)]
Fix the val reading for MSG_ERROR_EXIT.  Use 0-length MSG_DATA when
MSG_NOOP is not available (is both safer and supports older rsyncs).

14 years agoAllow per-test timeout overrides. Give hardlinks more time.
Wayne Davison [Tue, 15 Dec 2009 16:44:46 +0000 (08:44 -0800)]
Allow per-test timeout overrides.  Give hardlinks more time.

14 years agoImprove the timeout messages.
Wayne Davison [Tue, 15 Dec 2009 16:32:18 +0000 (08:32 -0800)]
Improve the timeout messages.

14 years agoFree a strdup() in do_cmd() that checker was complaining about.
Wayne Davison [Mon, 14 Dec 2009 03:28:01 +0000 (19:28 -0800)]
Free a strdup() in do_cmd() that checker was complaining about.

14 years agoAvoid -u option to id since solaris doesn't support it.
Wayne Davison [Mon, 14 Dec 2009 02:15:09 +0000 (18:15 -0800)]
Avoid -u option to id since solaris doesn't support it.

14 years agoAvoid a compiler warnings about a signed/unsigned mismatch.
Wayne Davison [Mon, 14 Dec 2009 01:52:05 +0000 (17:52 -0800)]
Avoid a compiler warnings about a signed/unsigned mismatch.

14 years agoIncrease the testrun timeout for slow compilefarm systems.
Wayne Davison [Mon, 14 Dec 2009 01:48:57 +0000 (17:48 -0800)]
Increase the testrun timeout for slow compilefarm systems.

14 years agoFix a compiler warning about a %d mismatch.
Wayne Davison [Mon, 14 Dec 2009 01:47:35 +0000 (17:47 -0800)]
Fix a compiler warning about a %d mismatch.

14 years agoRun each testsuite test with a timeout.
Wayne Davison [Sun, 13 Dec 2009 22:14:38 +0000 (14:14 -0800)]
Run each testsuite test with a timeout.

14 years agoAvoid another checker warning.
Wayne Davison [Sun, 13 Dec 2009 21:21:30 +0000 (13:21 -0800)]
Avoid another checker warning.

14 years agoPrevent the reading of another message before the end of the current one.
Wayne Davison [Sun, 13 Dec 2009 05:53:19 +0000 (21:53 -0800)]
Prevent the reading of another message before the end of the current one.

14 years agoChange a variable name in read_a_msg().
Wayne Davison [Sun, 13 Dec 2009 05:40:02 +0000 (21:40 -0800)]
Change a variable name in read_a_msg().

14 years agoThis should fix another checker warning.
Wayne Davison [Sat, 12 Dec 2009 23:58:15 +0000 (15:58 -0800)]
This should fix another checker warning.

14 years agoFix checker compile warning.
Wayne Davison [Sat, 12 Dec 2009 23:51:03 +0000 (15:51 -0800)]
Fix checker compile warning.

14 years agoTurn iobuf.in into a circular input buffer.
Wayne Davison [Sat, 12 Dec 2009 23:16:46 +0000 (15:16 -0800)]
Turn iobuf.in into a circular input buffer.

14 years agoFix a hang that can happen when the sender is sending an extra file-list
Wayne Davison [Sat, 12 Dec 2009 17:32:14 +0000 (09:32 -0800)]
Fix a hang that can happen when the sender is sending an extra file-list
and no one is reading (i.e. do advantageous reading in perform_io()).

14 years agoDon't send MSG_ERROR_EXIT messages at the end of the transfer.
Wayne Davison [Sat, 12 Dec 2009 16:54:36 +0000 (08:54 -0800)]
Don't send MSG_ERROR_EXIT messages at the end of the transfer.
Added some debug output for MSG_ERROR_EXIT messages.

14 years agoDon't (wrongly) retouch dir permissions with --fake-super.
Wayne Davison [Sun, 29 Nov 2009 05:46:42 +0000 (21:46 -0800)]
Don't (wrongly) retouch dir permissions with --fake-super.
(Patch from Matt.)

14 years agoAdd IPv6 detection on cygwin.
Wayne Davison [Thu, 26 Nov 2009 23:17:49 +0000 (15:17 -0800)]
Add IPv6 detection on cygwin.

14 years agoFix a comment.
Wayne Davison [Tue, 24 Nov 2009 06:45:29 +0000 (22:45 -0800)]
Fix a comment.

14 years agoChange the handling of circular buffers to not waste 4 bytes
Wayne Davison [Mon, 23 Nov 2009 16:16:18 +0000 (08:16 -0800)]
Change the handling of circular buffers to not waste 4 bytes
all the time (we only waste from 1-3 bytes some of the time).

14 years agoMake some RERR_* choices better, and another noop_io_until_death() tweak.
Wayne Davison [Mon, 16 Nov 2009 20:35:17 +0000 (12:35 -0800)]
Make some RERR_* choices better, and another noop_io_until_death() tweak.

14 years agoDon't complain about a socket EOF unless it affects a read.
Wayne Davison [Sun, 15 Nov 2009 20:49:09 +0000 (12:49 -0800)]
Don't complain about a socket EOF unless it affects a read.
Make sure a write error drains any messages in the input buffer.

14 years agoTweak the noop_io_until_death() timeout and comment it.
Wayne Davison [Sun, 15 Nov 2009 07:05:52 +0000 (23:05 -0800)]
Tweak the noop_io_until_death() timeout and comment it.

14 years agoImproved a couple comments and added some "else" optimizations.
Wayne Davison [Sat, 14 Nov 2009 18:01:13 +0000 (10:01 -0800)]
Improved a couple comments and added some "else" optimizations.

14 years agoNo need to check MIN_FILECNT_LOOKAHEAD w/extra_flist_sending_enabled.
Wayne Davison [Sat, 14 Nov 2009 17:58:25 +0000 (09:58 -0800)]
No need to check MIN_FILECNT_LOOKAHEAD w/extra_flist_sending_enabled.