rsync/rsync.git
16 years agoTweaked the ACL type-names returned by str_acl_type()
Wayne Davison [Sat, 23 Feb 2008 15:31:29 +0000 (07:31 -0800)]
Tweaked the ACL type-names returned by str_acl_type()
so that error messages are a little clearer.

16 years agoCast ai->ai_addrlen to int for an rprintf() call using %d.
Wayne Davison [Fri, 22 Feb 2008 23:15:32 +0000 (15:15 -0800)]
Cast ai->ai_addrlen to int for an rprintf() call using %d.

16 years agoThe code expects id_t and mode_t to be unsigned, so the code now defines
Wayne Davison [Fri, 22 Feb 2008 04:51:54 +0000 (20:51 -0800)]
The code expects id_t and mode_t to be unsigned, so the code now defines
each one to be unsigned int (instead of int) when the type is missing.

16 years agoImproved several things in the NEWS files, including some typos
Wayne Davison [Wed, 20 Feb 2008 17:52:33 +0000 (09:52 -0800)]
Improved several things in the NEWS files, including some typos
that Matt fixed.

16 years agoOutput info on what's being signed to make it clearer
Wayne Davison [Wed, 20 Feb 2008 03:17:08 +0000 (19:17 -0800)]
Output info on what's being signed to make it clearer
what is happening.  Improved the final admonition.

16 years agoPreparing for release of 3.0.0pre10
Wayne Davison [Wed, 20 Feb 2008 02:28:00 +0000 (18:28 -0800)]
Preparing for release of 3.0.0pre10

16 years agoMake a few more char pointers const.
Wayne Davison [Wed, 20 Feb 2008 00:35:22 +0000 (16:35 -0800)]
Make a few more char pointers const.

16 years agoTweaked a comparison that "checker" was complaining about.
Wayne Davison [Tue, 19 Feb 2008 19:52:00 +0000 (11:52 -0800)]
Tweaked a comparison that "checker" was complaining about.

16 years agoFixed the hard-link check again, adding a comment as to
Wayne Davison [Tue, 19 Feb 2008 01:16:08 +0000 (17:16 -0800)]
Fixed the hard-link check again, adding a comment as to
why it is coded the way it is.

16 years agoFixed a compilation problem when iconv support is disabled.
Wayne Davison [Tue, 19 Feb 2008 00:48:20 +0000 (16:48 -0800)]
Fixed a compilation problem when iconv support is disabled.

16 years agoOnly set FLAG_TIME_FAILED if receiver_symlink_times is set.
Wayne Davison [Tue, 19 Feb 2008 00:48:04 +0000 (16:48 -0800)]
Only set FLAG_TIME_FAILED if receiver_symlink_times is set.

16 years agoExtended the protocol-30 info-passing code at startup, and use it to
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.

16 years agoAdded --no-one-file-system and --no-x options.
Wayne Davison [Mon, 18 Feb 2008 20:42:04 +0000 (12:42 -0800)]
Added --no-one-file-system and --no-x options.

16 years agoSome permssion fixes:
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.

16 years agoFixed a typo reported in a Debian bug report.
Wayne Davison [Mon, 18 Feb 2008 17:59:44 +0000 (09:59 -0800)]
Fixed a typo reported in a Debian bug report.

16 years agoMention the leading '*'-char rule for itemized output.
Wayne Davison [Mon, 18 Feb 2008 16:25:15 +0000 (08:25 -0800)]
Mention the leading '*'-char rule for itemized output.

16 years agoDecided to pad the "*deleting" message to make the names line up.
Wayne Davison [Mon, 18 Feb 2008 07:46:26 +0000 (23:46 -0800)]
Decided to pad the "*deleting" message to make the names line up.

16 years agoThe daemon no longer logs a recv entry for a file that is not
Wayne Davison [Mon, 18 Feb 2008 07:44:52 +0000 (23:44 -0800)]
The daemon no longer logs a recv entry for a file that is not
actually being updated due to the --only-write-batch option.

16 years agoDon't output a duplicate warning when the daemon-config excludes a
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().

16 years agoUse the name "ChangeLog" for the ftp copy of the repository history.
Wayne Davison [Sat, 16 Feb 2008 22:45:22 +0000 (14:45 -0800)]
Use the name "ChangeLog" for the ftp copy of the repository history.

16 years agoA few minor changes, including better push_dir()/pop_dir() verbosity.
Wayne Davison [Sat, 16 Feb 2008 06:19:43 +0000 (22:19 -0800)]
A few minor changes, including better push_dir()/pop_dir() verbosity.

16 years agoAdded a way to specify where the chroot should occur in the module's
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).

16 years agoSome daemon security improvements, including the new parameters
Wayne Davison [Thu, 14 Feb 2008 21:24:16 +0000 (13:24 -0800)]
Some daemon security improvements, including the new parameters
"charset" and "numeric ids".

16 years ago(Matt) Dropped a superfluous word from a sentence.
Wayne Davison [Wed, 13 Feb 2008 01:30:02 +0000 (17:30 -0800)]
(Matt) Dropped a superfluous word from a sentence.

16 years ago(Matt) Needed to remove a few more files for distclean target.
Wayne Davison [Wed, 13 Feb 2008 01:29:09 +0000 (17:29 -0800)]
(Matt) Needed to remove a few more files for distclean target.

16 years agoA few more NEWS tweaks.
Wayne Davison [Mon, 11 Feb 2008 05:21:24 +0000 (21:21 -0800)]
A few more NEWS tweaks.

16 years agoMention a couple more items.
Wayne Davison [Mon, 11 Feb 2008 05:02:05 +0000 (21:02 -0800)]
Mention a couple more items.

16 years agoMade reconfigure target check if configure.sh was up-to-date.
Wayne Davison [Mon, 11 Feb 2008 04:39:31 +0000 (20:39 -0800)]
Made reconfigure target check if configure.sh was up-to-date.

16 years agoPreparing for release of 3.0.0pre9
Wayne Davison [Mon, 11 Feb 2008 04:16:25 +0000 (20:16 -0800)]
Preparing for release of 3.0.0pre9

16 years agoSome improvements for --hard-links and --filter options.
Wayne Davison [Mon, 11 Feb 2008 04:10:13 +0000 (20:10 -0800)]
Some improvements for --hard-links and --filter options.

16 years agoOne more fix in set_modtime() when we get ENOSYS on a symlink.
Wayne Davison [Sun, 10 Feb 2008 23:39:21 +0000 (15:39 -0800)]
One more fix in set_modtime() when we get ENOSYS on a symlink.

16 years agoAdd a trailing slash to a modname arg that has no path information.
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.)

16 years agoImproved the "symlink has no referent" logic to work with all the
Wayne Davison [Sun, 10 Feb 2008 05:41:50 +0000 (21:41 -0800)]
Improved the "symlink has no referent" logic to work with all the
--copy*links options.

16 years agoMake do_recv() reset copy_unsafe_links too (just like it does for
Wayne Davison [Sun, 10 Feb 2008 05:33:13 +0000 (21:33 -0800)]
Make do_recv() reset copy_unsafe_links too (just like it does for
copy_links and copy_dirlinks).

16 years agoIgnore exit-code 23 when we expect a daemon-excluded file to be excluded.
Wayne Davison [Sun, 10 Feb 2008 05:30:49 +0000 (21:30 -0800)]
Ignore exit-code 23 when we expect a daemon-excluded file to be excluded.

16 years ago(Matt) Made a daemon-refused file an FERROR_XFER with a better message.
Wayne Davison [Thu, 7 Feb 2008 19:24:38 +0000 (11:24 -0800)]
(Matt) Made a daemon-refused file an FERROR_XFER with a better message.

16 years agoRe-indent some code in set_file_attrs() to make the flow clearer.
Wayne Davison [Thu, 7 Feb 2008 15:24:58 +0000 (07:24 -0800)]
Re-indent some code in set_file_attrs() to make the flow clearer.

16 years agoUsing rebase for the patches has become a failing-hunk
Wayne Davison [Thu, 7 Feb 2008 00:39:53 +0000 (16:39 -0800)]
Using rebase for the patches has become a failing-hunk
pain in the neck, so I'm switching to using merge.

16 years agoA daemon needs to call setup_iconv() after parsing the options
Wayne Davison [Thu, 7 Feb 2008 00:13:37 +0000 (16:13 -0800)]
A daemon needs to call setup_iconv() after parsing the options
it receives.

16 years agoFixed return code from hard_link_one() when not verbose.
Wayne Davison [Thu, 7 Feb 2008 00:06:33 +0000 (16:06 -0800)]
Fixed return code from hard_link_one() when not verbose.

16 years agoMake get_xattr_names() even safer at fetching the list of attr names.
Wayne Davison [Wed, 6 Feb 2008 15:52:00 +0000 (07:52 -0800)]
Make get_xattr_names() even safer at fetching the list of attr names.

16 years agoOnly check F_OWNER() if uid_ndx is non-zero.
Wayne Davison [Tue, 5 Feb 2008 05:17:27 +0000 (21:17 -0800)]
Only check F_OWNER() if uid_ndx is non-zero.

16 years agoFixed local_child() so that the client side really does handle
Wayne Davison [Mon, 4 Feb 2008 20:52:41 +0000 (12:52 -0800)]
Fixed local_child() so that the client side really does handle
the log-file writing.

16 years agoDon't try to use recv_xattr_request() with --dry-run. Fixes an
Wayne Davison [Mon, 4 Feb 2008 20:30:19 +0000 (12:30 -0800)]
Don't try to use recv_xattr_request() with --dry-run.  Fixes an
internal abbrev error on the sending side.

16 years agoStore the key64 flag from hashtable_create() in the hashtable structure
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.

16 years agoFixed finding of parent's description when @ARGV doesn't mention it.
Wayne Davison [Mon, 4 Feb 2008 08:12:01 +0000 (00:12 -0800)]
Fixed finding of parent's description when @ARGV doesn't mention it.

16 years agoImproved the usage message.
Wayne Davison [Mon, 4 Feb 2008 07:40:20 +0000 (23:40 -0800)]
Improved the usage message.

16 years agoFixed a couple DEL_OWNED_BY_US glitches.
Wayne Davison [Mon, 4 Feb 2008 00:30:08 +0000 (16:30 -0800)]
Fixed a couple DEL_OWNED_BY_US glitches.

16 years agoDump delete_item()'s "replace" var to reduce recursive stack use.
Wayne Davison [Sun, 3 Feb 2008 23:11:40 +0000 (15:11 -0800)]
Dump delete_item()'s "replace" var to reduce recursive stack use.

16 years agoFixed the diffing of generated files when creating a patch that has
Wayne Davison [Sun, 3 Feb 2008 01:00:25 +0000 (17:00 -0800)]
Fixed the diffing of generated files when creating a patch that has
a parent that is not the master branch.

16 years agoSome extra password-clarification verbage from Matt.
Wayne Davison [Wed, 30 Jan 2008 01:19:22 +0000 (17:19 -0800)]
Some extra password-clarification verbage from Matt.

16 years agoFixed several glitches with failed updates and batch files:
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".

16 years agoMoved the batch option checking until after the protocol-version
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.

16 years agoImproved a comment.
Wayne Davison [Sat, 26 Jan 2008 17:13:19 +0000 (09:13 -0800)]
Improved a comment.

16 years agoWhen removing a file/dir that is owned by us but does not have
Wayne Davison [Sat, 26 Jan 2008 16:47:02 +0000 (08:47 -0800)]
When removing a file/dir that is owned by us but does not have
owner-write permission, set it before the removal.

16 years agoFix some typos and such.
Wayne Davison [Sat, 26 Jan 2008 00:57:54 +0000 (16:57 -0800)]
Fix some typos and such.

16 years agoMention iconv --list.
Wayne Davison [Sat, 26 Jan 2008 00:57:26 +0000 (16:57 -0800)]
Mention iconv --list.

16 years agoMake do_chmod() report an error with -E.
Wayne Davison [Sat, 26 Jan 2008 00:51:10 +0000 (16:51 -0800)]
Make do_chmod() report an error with -E.

16 years agoImproved option handling for protocol 30 batch files.
Wayne Davison [Sat, 19 Jan 2008 19:21:07 +0000 (11:21 -0800)]
Improved option handling for protocol 30 batch files.

16 years agoOutput (BATCH ONLY) rather than (DRY RUN) for --only-write-batch.
Wayne Davison [Sat, 19 Jan 2008 19:20:42 +0000 (11:20 -0800)]
Output (BATCH ONLY) rather than (DRY RUN) for --only-write-batch.

16 years agoFixed the combination of --dry-run and --only-write-batch.
Wayne Davison [Sat, 19 Jan 2008 19:20:17 +0000 (11:20 -0800)]
Fixed the combination of --dry-run and --only-write-batch.

16 years agoDon't apply filter rules to implied directories.
Wayne Davison [Sat, 19 Jan 2008 18:09:22 +0000 (10:09 -0800)]
Don't apply filter rules to implied directories.

16 years agoAnother xattr "internal abbrev" fix for an xattr object that is
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.

16 years agoPreparing for release of 3.0.0pre8
Wayne Davison [Sat, 12 Jan 2008 18:53:10 +0000 (10:53 -0800)]
Preparing for release of 3.0.0pre8

16 years ago- Make sure the Makefile is up-to-date before running "make gen".
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.

16 years agoFixed a bug with truncated xattr data requests when the receiver
Wayne Davison [Sat, 12 Jan 2008 17:14:56 +0000 (09:14 -0800)]
Fixed a bug with truncated xattr data requests when the receiver
needs to discard some of the items from the sender's list.

16 years agoIf "make gensend" fails, abort the script.
Wayne Davison [Fri, 11 Jan 2008 21:20:14 +0000 (13:20 -0800)]
If "make gensend" fails, abort the script.

16 years agoImproved check_for_finished_files() to be really, really sure
Wayne Davison [Fri, 11 Jan 2008 21:13:15 +0000 (13:13 -0800)]
Improved check_for_finished_files() to be really, really sure
that we've processed all the items on the hard-linked and redo
queues before we return.

16 years agoFixed a length problem parsing an arg of "./".
Wayne Davison [Wed, 9 Jan 2008 19:51:44 +0000 (11:51 -0800)]
Fixed a length problem parsing an arg of "./".

16 years agoDon't allow a slash to be specified in a module name.
Wayne Davison [Wed, 9 Jan 2008 16:59:02 +0000 (08:59 -0800)]
Don't allow a slash to be specified in a module name.
Document the module-name limitations in rsyncd.conf.yo.

16 years agoMade read_arg_from_pipe() handle EINTR.
Wayne Davison [Thu, 3 Jan 2008 01:20:44 +0000 (17:20 -0800)]
Made read_arg_from_pipe() handle EINTR.

16 years agoRebuild the Makefile when it is not up-to-date.
Wayne Davison [Tue, 1 Jan 2008 18:43:55 +0000 (10:43 -0800)]
Rebuild the Makefile when it is not up-to-date.

16 years agoRenamed mkrounding.c to rounding.c.
Wayne Davison [Tue, 1 Jan 2008 18:34:27 +0000 (10:34 -0800)]
Renamed mkrounding.c to rounding.c.

16 years agoChanged the creation of rounding.h to use a set of compile-time checks
Wayne Davison [Tue, 1 Jan 2008 18:27:19 +0000 (10:27 -0800)]
Changed the creation of rounding.h to use a set of compile-time checks
similar to how configure determines the size of variables.

16 years agoIf we're cross-compiling, tell the user to run mkrounding on the
Wayne Davison [Tue, 1 Jan 2008 16:59:26 +0000 (08:59 -0800)]
If we're cross-compiling, tell the user to run mkrounding on the
target machine to build the rounding.h file.

16 years agoSome minor tweaks:
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.

16 years agoFixed a case where the receiver indicates a successful update when the
Wayne Davison [Mon, 31 Dec 2007 18:18:22 +0000 (10:18 -0800)]
Fixed a case where the receiver indicates a successful update when the
transfer succeeded, but the final rename failed.

16 years agoMade some user-/group-name pointers "const".
Wayne Davison [Sun, 30 Dec 2007 06:52:42 +0000 (22:52 -0800)]
Made some user-/group-name pointers "const".

16 years agoSome minor tweaking to name_to_uid() and name_to_gid().
Wayne Davison [Sun, 30 Dec 2007 06:52:04 +0000 (22:52 -0800)]
Some minor tweaking to name_to_uid() and name_to_gid().

16 years agoAdded check for libiconv_open when iconv_open isn't found.
Wayne Davison [Sat, 29 Dec 2007 17:53:37 +0000 (09:53 -0800)]
Added check for libiconv_open when iconv_open isn't found.

16 years agoAdded reconfigure target to re-run configure.
Wayne Davison [Sat, 29 Dec 2007 17:44:58 +0000 (09:44 -0800)]
Added reconfigure target to re-run configure.

16 years agoFixed Source URL and changed from ftp to http.
Wayne Davison [Wed, 19 Dec 2007 17:36:05 +0000 (09:36 -0800)]
Fixed Source URL and changed from ftp to http.

16 years agoImproved prepare-source to make it more flexible. The script now
Wayne Davison [Tue, 18 Dec 2007 07:09:35 +0000 (23:09 -0800)]
Improved prepare-source to make it more flexible.  The script now
lets the user choose which actions to perform and their order.

16 years agoFixed a FALL THROUGH comment.
Wayne Davison [Mon, 17 Dec 2007 01:51:36 +0000 (17:51 -0800)]
Fixed a FALL THROUGH comment.

16 years agoOnly ignore ENOSYS error from lutimes().
Wayne Davison [Mon, 17 Dec 2007 01:18:01 +0000 (17:18 -0800)]
Only ignore ENOSYS error from lutimes().

16 years agoAdded the 'h' option to the tar command that creates the patches
Wayne Davison [Sun, 16 Dec 2007 23:41:59 +0000 (15:41 -0800)]
Added the 'h' option to the tar command that creates the patches
tar file just in case the patches directory is a symlink.

16 years agoPreparing for release of 3.0.0pre7
Wayne Davison [Sun, 16 Dec 2007 23:09:43 +0000 (15:09 -0800)]
Preparing for release of 3.0.0pre7

16 years agoFixed extracting files from old tar file.
Wayne Davison [Sun, 16 Dec 2007 23:09:21 +0000 (15:09 -0800)]
Fixed extracting files from old tar file.

16 years agoMention 2 more changes in the NEWS.
Wayne Davison [Sun, 16 Dec 2007 23:03:50 +0000 (15:03 -0800)]
Mention 2 more changes in the NEWS.

16 years agoAdded a "fetchall" option.
Wayne Davison [Sun, 16 Dec 2007 23:02:42 +0000 (15:02 -0800)]
Added a "fetchall" option.

16 years agoFixed the check_filter() calls that might be checking an absolute path
Wayne Davison [Sun, 16 Dec 2007 22:16:37 +0000 (14:16 -0800)]
Fixed the check_filter() calls that might be checking an absolute path
in "use chroot = no" mode against a daemon's exclude restriction.

16 years agoMoved the dir_count increment into an even better spot and make sure that
Wayne Davison [Sun, 16 Dec 2007 22:14:35 +0000 (14:14 -0800)]
Moved the dir_count increment into an even better spot and make sure that
send_file_name() returned a non-NULL pointer before doing any DOT_NAME
processing in inc_recurse mode.

16 years agoFixed a potential memory leak in make_file().
Wayne Davison [Sat, 15 Dec 2007 19:57:34 +0000 (11:57 -0800)]
Fixed a potential memory leak in make_file().

16 years agoRefer to delta-transfer algorithm rather than rsync algorithm.
Wayne Davison [Sat, 15 Dec 2007 16:35:45 +0000 (08:35 -0800)]
Refer to delta-transfer algorithm rather than rsync algorithm.

16 years agoCheck on the alternate destination dirs and report any problems.
Wayne Davison [Sat, 15 Dec 2007 16:13:06 +0000 (08:13 -0800)]
Check on the alternate destination dirs and report any problems.

16 years agoMake push_dir() output where we are when verbosity is high.
Wayne Davison [Sat, 15 Dec 2007 15:39:33 +0000 (07:39 -0800)]
Make push_dir() output where we are when verbosity is high.

16 years agoMove incrementing of dir_count so that it can't get incremented
Wayne Davison [Thu, 13 Dec 2007 15:00:38 +0000 (07:00 -0800)]
Move incrementing of dir_count so that it can't get incremented
for a directory that isn't going to be included in the transfer.

16 years agoUpdated indexing for accurate progress and improved raw ndx values.
Wayne Davison [Sat, 8 Dec 2007 19:39:03 +0000 (11:39 -0800)]
Updated indexing for accurate progress and improved raw ndx values.
The sending side now has a sorted file-list in iconv mode so that it
can output progress in sorted order.  Simplified the over-the-wire
index values to ensure both sides will always agree on the values.
Optimized the allocation of the dir_flist->sorted array on the
receiving side with --iconv and incremental recursion.

16 years agoA few more additions of $(srcdir) to Makefile.in.
Wayne Davison [Sat, 1 Dec 2007 03:08:54 +0000 (19:08 -0800)]
A few more additions of $(srcdir) to Makefile.in.

16 years agoFixed a build problem for those building in a different dir from
Wayne Davison [Sat, 1 Dec 2007 03:02:50 +0000 (19:02 -0800)]
Fixed a build problem for those building in a different dir from
the srcdir.  Also got rid of "cd" code in configure stub.