rsync/rsync.git
17 years agoIf the combination of --dry-run, --link-dest, and -H finds a matching
Wayne Davison [Mon, 9 Oct 2006 02:59:23 +0000 (02:59 +0000)]
If the combination of --dry-run, --link-dest, and -H finds a matching
file in on of the extra basis dirs, make a note of which basis dir
we would have used in the hard-link with the destination file.

17 years agoAdded link_dest_used unsigned short to struct hlink and made the
Wayne Davison [Mon, 9 Oct 2006 02:57:04 +0000 (02:57 +0000)]
Added link_dest_used unsigned short to struct hlink and made the
other values explicitly 32-bit so that the total size can't be
larger than the other struct we're in a union with.

17 years agoAnother tweak to the --chmod summary.
Wayne Davison [Mon, 9 Oct 2006 00:55:04 +0000 (00:55 +0000)]
Another tweak to the --chmod summary.

17 years agoMention the latest bug fix.
Wayne Davison [Sun, 8 Oct 2006 22:17:39 +0000 (22:17 +0000)]
Mention the latest bug fix.

17 years agoMake the daemon's "incoming chmod" tweaks happen last, as documented.
Wayne Davison [Sun, 8 Oct 2006 22:02:13 +0000 (22:02 +0000)]
Make the daemon's "incoming chmod" tweaks happen last, as documented.

17 years agoClarify the short description of --chmod.
Wayne Davison [Sun, 8 Oct 2006 22:00:31 +0000 (22:00 +0000)]
Clarify the short description of --chmod.

17 years agoCall push_dir() with its new boolean arg.
Wayne Davison [Sun, 8 Oct 2006 20:57:01 +0000 (20:57 +0000)]
Call push_dir() with its new boolean arg.

17 years ago- Call push_dir() with its new boolean arg, including the spot in
Wayne Davison [Sun, 8 Oct 2006 20:56:56 +0000 (20:56 +0000)]
- Call push_dir() with its new boolean arg, including the spot in
  get_local_name() where we need push_dir() to skip the chdir() because
  the destination dir does no yet exist and --dry-run was specified.
- Added fix_basis_dirs(), which will combine the dest-dir with each non-
  absolute basis_dir arg to make sure that they end up being relative to
  the right dir when --dry-run was specified and the dest dir does not
  yet exist.

17 years agoMade the push_dir() function take an option to skip the actual chdir()
Wayne Davison [Sun, 8 Oct 2006 20:56:52 +0000 (20:56 +0000)]
Made the push_dir() function take an option to skip the actual chdir()
call.  Used when the dest-dir doesn't exist and --dry-run was specified.

17 years agoMoved some of the variable setup from "make check" into the
Wayne Davison [Sat, 7 Oct 2006 14:54:56 +0000 (14:54 +0000)]
Moved some of the variable setup from "make check" into the
runtest.sh script.

17 years agoMoved some variable setup here from the Makefile and made it
Wayne Davison [Sat, 7 Oct 2006 14:54:14 +0000 (14:54 +0000)]
Moved some variable setup here from the Makefile and made it
possible to specify extra rsync options for the test.

17 years agoChanged the -o to -a in the "if".
Wayne Davison [Sat, 7 Oct 2006 14:39:01 +0000 (14:39 +0000)]
Changed the -o to -a in the "if".

17 years agoA bug-fix for die_on_unsafe_path() when the path doesn't exist.
Wayne Davison [Sat, 7 Oct 2006 14:19:00 +0000 (14:19 +0000)]
A bug-fix for die_on_unsafe_path() when the path doesn't exist.

17 years agoAdded exception-checking to a couple select() calls, as suggested
Wayne Davison [Sat, 30 Sep 2006 22:11:20 +0000 (22:11 +0000)]
Added exception-checking to a couple select() calls, as suggested
by Hugh Daschbach.

17 years agoDocument that --ignore-times thwarts all --link-dest linking.
Wayne Davison [Sat, 30 Sep 2006 15:21:25 +0000 (15:21 +0000)]
Document that --ignore-times thwarts all --link-dest linking.

17 years agoI decided that combining --link-dest with -I doesn't make much sense
Wayne Davison [Sat, 30 Sep 2006 15:20:17 +0000 (15:20 +0000)]
I decided that combining --link-dest with -I doesn't make much sense
(without some kind of a post-transfer identicality check, at least)
so I'm removing the code that tried to make the two play nice.

17 years agoMention that the --backup-dir option is a receiver-side path.
Wayne Davison [Tue, 26 Sep 2006 16:44:27 +0000 (16:44 +0000)]
Mention that the --backup-dir option is a receiver-side path.

17 years agoMention the latest bugfix.
Wayne Davison [Sun, 24 Sep 2006 03:36:04 +0000 (03:36 +0000)]
Mention the latest bugfix.

17 years agoOutput the who_am_i() info in out-of-memory() and overflow_exit().
Wayne Davison [Sun, 24 Sep 2006 03:12:24 +0000 (03:12 +0000)]
Output the who_am_i() info in out-of-memory() and overflow_exit().

17 years agoProvide the who_am_i() function.
Wayne Davison [Sun, 24 Sep 2006 03:11:41 +0000 (03:11 +0000)]
Provide the who_am_i() function.

17 years agoSome more testing based on Matt's recent patch.
Wayne Davison [Sat, 23 Sep 2006 23:49:20 +0000 (23:49 +0000)]
Some more testing based on Matt's recent patch.

17 years agoMatt tracked down a bug in the daemon option "incoming chmod" where
Wayne Davison [Sat, 23 Sep 2006 23:15:11 +0000 (23:15 +0000)]
Matt tracked down a bug in the daemon option "incoming chmod" where
a newly created directory would get the chmod permissions that were
specified for a file (via the F previx).

17 years agoImprovments by Matt for the --progress option, including updating
Wayne Davison [Sat, 23 Sep 2006 00:07:28 +0000 (00:07 +0000)]
Improvments by Matt for the --progress option, including updating
the examples to look like the actual output in a modern rsync.
(I did a little rewording too...)

17 years agoMention the current limitation of the RSYNC_EXIT_STATUS value.
Wayne Davison [Wed, 20 Sep 2006 14:04:19 +0000 (14:04 +0000)]
Mention the current limitation of the RSYNC_EXIT_STATUS value.

17 years agoMention the new --remove-s*-files error.
Wayne Davison [Wed, 20 Sep 2006 01:54:40 +0000 (01:54 +0000)]
Mention the new --remove-s*-files error.

17 years agoComplain if a --remove-s*-files option is set and we can't remove
Wayne Davison [Wed, 20 Sep 2006 01:53:32 +0000 (01:53 +0000)]
Complain if a --remove-s*-files option is set and we can't remove
the source file.

17 years agoThe [ & ] are now removed from a literal IPv6 hostname passed to the
Wayne Davison [Mon, 18 Sep 2006 17:39:13 +0000 (17:39 +0000)]
The [ & ] are now removed from a literal IPv6 hostname passed to the
remote shell.

17 years agoWhen parsing a literal IPv6 address in square brackets, pass the
Wayne Davison [Mon, 18 Sep 2006 01:19:26 +0000 (01:19 +0000)]
When parsing a literal IPv6 address in square brackets, pass the
whole string (including the brackets) to the remote shell.  (The
old code stripped the leading '[' but left the trailing ']'.)

17 years agoAdded a missing '-' to the string "-rsh".
Wayne Davison [Mon, 18 Sep 2006 01:15:19 +0000 (01:15 +0000)]
Added a missing '-' to the string "-rsh".

17 years agoMention the permission bug-fix for new files created by --inplace.
Wayne Davison [Mon, 18 Sep 2006 00:47:56 +0000 (00:47 +0000)]
Mention the permission bug-fix for new files created by --inplace.

17 years agoMention the adding of the --remove-source-files option.
Wayne Davison [Mon, 18 Sep 2006 00:38:20 +0000 (00:38 +0000)]
Mention the adding of the --remove-source-files option.

17 years agoMention the --server and --sender option as being internal,
Wayne Davison [Mon, 18 Sep 2006 00:19:04 +0000 (00:19 +0000)]
Mention the --server and --sender option as being internal,
not-for use by a normal user options.  Also mention the
support/rrsync script in this context.

17 years agoAdded parsing for all the latest options.
Wayne Davison [Mon, 18 Sep 2006 00:16:31 +0000 (00:16 +0000)]
Added parsing for all the latest options.

17 years agoThe --min-size arg doesn't need to be path-checked either.
Wayne Davison [Mon, 18 Sep 2006 00:13:50 +0000 (00:13 +0000)]
The --min-size arg doesn't need to be path-checked either.

17 years agoThe --inplace option now notices when the basis data is not coming
Wayne Davison [Sun, 17 Sep 2006 23:28:19 +0000 (23:28 +0000)]
The --inplace option now notices when the basis data is not coming
from the destination file (or an identical copy) and always writes
out the data (instead of seeking when at an identical offset).

17 years agoThe --delete-excluded code now also drops any merge file that was
Wayne Davison [Sat, 9 Sep 2006 18:59:10 +0000 (18:59 +0000)]
The --delete-excluded code now also drops any merge file that was
marked as MATCHFLG_NO_PREFIXES because they can only contain
include/exclude rules.

17 years agoDocument the new RSYNC_PID environment variable.
Wayne Davison [Sat, 9 Sep 2006 18:56:13 +0000 (18:56 +0000)]
Document the new RSYNC_PID environment variable.

17 years agoTry various long, long-long, etc. types for a 64-bit integer
Wayne Davison [Sat, 9 Sep 2006 18:53:23 +0000 (18:53 +0000)]
Try various long, long-long, etc. types for a 64-bit integer
before trying off64_t.

17 years agoMention the latest changes.
Wayne Davison [Sat, 9 Sep 2006 18:31:45 +0000 (18:31 +0000)]
Mention the latest changes.

17 years agoAdded the RSYNC_PID environment variable for the pre-/post-xfer
Wayne Davison [Sat, 9 Sep 2006 17:59:02 +0000 (17:59 +0000)]
Added the RSYNC_PID environment variable for the pre-/post-xfer
commands so that the pre-xfer command has a unique ID it can
use to cache information for the post-xfer command.

17 years agoA slight simplification to the last change.
Wayne Davison [Sat, 2 Sep 2006 20:05:08 +0000 (20:05 +0000)]
A slight simplification to the last change.

17 years agoAn even better way to un-backslash-escape the filenames from find.
Wayne Davison [Sat, 2 Sep 2006 19:57:56 +0000 (19:57 +0000)]
An even better way to un-backslash-escape the filenames from find.

17 years agoImproved the --delete-excluded test based on Matt's input and
Wayne Davison [Fri, 1 Sep 2006 00:43:52 +0000 (00:43 +0000)]
Improved the --delete-excluded test based on Matt's input and
another corner case I noticed.

17 years agoMatt pointed out that the code was not properly dropping excludes
Wayne Davison [Fri, 1 Sep 2006 00:42:39 +0000 (00:42 +0000)]
Matt pointed out that the code was not properly dropping excludes
that were read from a per-dir merge file when --delete-excluded
is enabled.  This additional code fixes that.

17 years agoFixed handling of filenames with an embedded $, @, or %.
Wayne Davison [Thu, 31 Aug 2006 20:30:16 +0000 (20:30 +0000)]
Fixed handling of filenames with an embedded $, @, or %.

17 years agoAdded Matt's --delete-excluded test for merge-file correctness.
Wayne Davison [Thu, 31 Aug 2006 17:19:26 +0000 (17:19 +0000)]
Added Matt's --delete-excluded test for merge-file correctness.

17 years agoMake sure that --delete-excluded does not elide a per-dir merge
Wayne Davison [Thu, 31 Aug 2006 17:18:24 +0000 (17:18 +0000)]
Make sure that --delete-excluded does not elide a per-dir merge
filter file, while still dumping the .cvsignore file from -C.

17 years agoWhen we're cleaning up a path of "/" in relative mode, we must make
Wayne Davison [Sat, 26 Aug 2006 16:02:17 +0000 (16:02 +0000)]
When we're cleaning up a path of "/" in relative mode, we must make
the name "/." (as it was of old) so that there is a filename for us
to send.  Fixes a problem with --delete --relative when copying from
the root (/) of the filesystem.

17 years agoFixed an exclude bug with --relative excluding "/".
Wayne Davison [Sat, 12 Aug 2006 16:22:03 +0000 (16:22 +0000)]
Fixed an exclude bug with --relative excluding "/".

17 years agoCheck return value of asprintf() in full_fname(), as pointed
Wayne Davison [Sat, 29 Jul 2006 21:04:35 +0000 (21:04 +0000)]
Check return value of asprintf() in full_fname(), as pointed
out by Ilja van Sprundel.

17 years agoAssign datarootdir=@datarootdir@ so that a modern autoconf
Wayne Davison [Fri, 21 Jul 2006 13:58:52 +0000 (13:58 +0000)]
Assign datarootdir=@datarootdir@ so that a modern autoconf
doesn't complain about our Makefile.in.

17 years agoUse new MAKEDEV() macro instead of makedev() directly.
Wayne Davison [Mon, 10 Jul 2006 04:25:53 +0000 (04:25 +0000)]
Use new MAKEDEV() macro instead of makedev() directly.

17 years agoDefine MAKEDEV() based on the MAKEDEV_TAKES_3_ARGS define.
Wayne Davison [Mon, 10 Jul 2006 04:25:10 +0000 (04:25 +0000)]
Define MAKEDEV() based on the MAKEDEV_TAKES_3_ARGS define.

17 years agoIf makedev() takes 3 args, define MAKEDEV_TAKES_3_ARGS.
Wayne Davison [Mon, 10 Jul 2006 04:24:07 +0000 (04:24 +0000)]
If makedev() takes 3 args, define MAKEDEV_TAKES_3_ARGS.

17 years agoMention the "munge symlinks" daemon setting.
Wayne Davison [Mon, 3 Jul 2006 22:35:41 +0000 (22:35 +0000)]
Mention the "munge symlinks" daemon setting.

17 years agoObey the new "munge symlinks" dameon setting.
Wayne Davison [Mon, 3 Jul 2006 22:35:00 +0000 (22:35 +0000)]
Obey the new "munge symlinks" dameon setting.

17 years agoDocument "munge symlinks".
Wayne Davison [Mon, 3 Jul 2006 22:33:56 +0000 (22:33 +0000)]
Document "munge symlinks".

17 years agoAdded the "munge symlinks" setting.
Wayne Davison [Mon, 3 Jul 2006 22:33:49 +0000 (22:33 +0000)]
Added the "munge symlinks" setting.

17 years agoFixed the indentation on a few lines.
Wayne Davison [Mon, 3 Jul 2006 22:30:13 +0000 (22:30 +0000)]
Fixed the indentation on a few lines.

17 years agoDecided that I like remove-source-files better than remove-sender-files.
Wayne Davison [Fri, 30 Jun 2006 15:52:52 +0000 (15:52 +0000)]
Decided that I like remove-source-files better than remove-sender-files.

17 years agoChanged --remove-sent-files into --remove-sender-files.
Wayne Davison [Fri, 30 Jun 2006 15:42:41 +0000 (15:42 +0000)]
Changed --remove-sent-files into --remove-sender-files.

17 years agoAdded --remove-sender-files and deprecated --remove-sent-files.
Wayne Davison [Fri, 30 Jun 2006 15:42:36 +0000 (15:42 +0000)]
Added --remove-sender-files and deprecated --remove-sent-files.

17 years agoThe remove_sent_files var was renamed to remove_sender_files.
Wayne Davison [Fri, 30 Jun 2006 15:42:32 +0000 (15:42 +0000)]
The remove_sent_files var was renamed to remove_sender_files.

17 years agoHandle the --remove-sender-files option by sending MSG_SUCCESS for
Wayne Davison [Fri, 30 Jun 2006 15:42:29 +0000 (15:42 +0000)]
Handle the --remove-sender-files option by sending MSG_SUCCESS for
any file that is being hard-linked.

17 years agoHandle the --remove-sender-files option by sending MSG_SUCCESS for
Wayne Davison [Fri, 30 Jun 2006 15:42:26 +0000 (15:42 +0000)]
Handle the --remove-sender-files option by sending MSG_SUCCESS for
any up-to-date file (non-dir).

17 years agoChanged the name of the nightly symlink.
Wayne Davison [Fri, 30 Jun 2006 14:26:01 +0000 (14:26 +0000)]
Changed the name of the nightly symlink.

17 years agoMake use of module_dirlen in full_fname().
Wayne Davison [Fri, 30 Jun 2006 14:24:25 +0000 (14:24 +0000)]
Make use of module_dirlen in full_fname().

17 years agoAllow --with-nobody-group=GROUP (patch from Olivier Thauvin).
Wayne Davison [Mon, 19 Jun 2006 19:30:51 +0000 (19:30 +0000)]
Allow --with-nobody-group=GROUP (patch from Olivier Thauvin).

17 years agoMention the latest bug-fix.
Wayne Davison [Fri, 16 Jun 2006 09:05:21 +0000 (09:05 +0000)]
Mention the latest bug-fix.

17 years agoMake sure that the %f escape always has the full path info when
Wayne Davison [Fri, 16 Jun 2006 09:01:31 +0000 (09:01 +0000)]
Make sure that the %f escape always has the full path info when
receiving files.

17 years agoUpdated the "use chroot" section with the latest symlink info.
Wayne Davison [Fri, 16 Jun 2006 08:56:26 +0000 (08:56 +0000)]
Updated the "use chroot" section with the latest symlink info.

17 years agoMention the latest log-file improvements.
Wayne Davison [Wed, 7 Jun 2006 23:06:18 +0000 (23:06 +0000)]
Mention the latest log-file improvements.

17 years agoMoved the "log file" and "syslog facility" sections into the per-module
Wayne Davison [Wed, 7 Jun 2006 23:05:27 +0000 (23:05 +0000)]
Moved the "log file" and "syslog facility" sections into the per-module
options and improved them a little.

17 years agoCall log_init() with its new "restart" (0 or 1) arg.
Wayne Davison [Wed, 7 Jun 2006 23:05:24 +0000 (23:05 +0000)]
Call log_init() with its new "restart" (0 or 1) arg.

17 years ago- Pass "module_id" to the two log-related settings that are no longer
Wayne Davison [Wed, 7 Jun 2006 23:05:17 +0000 (23:05 +0000)]
- Pass "module_id" to the two log-related settings that are no longer
  global.
- Added a "restart" arg to log_init() that lets us request that logging
  be reinitialized if the log-file/syslog-facility params changed.

17 years agoMade "log file" and "syslog facility" per-module settings.
Wayne Davison [Wed, 7 Jun 2006 23:05:14 +0000 (23:05 +0000)]
Made "log file" and "syslog facility" per-module settings.

17 years agoImproved some comments in get_local_name() and improved the
Wayne Davison [Mon, 5 Jun 2006 22:50:52 +0000 (22:50 +0000)]
Improved some comments in get_local_name() and improved the
error checking a little more.

17 years agoMention the latest bug-fix.
Wayne Davison [Mon, 5 Jun 2006 17:00:47 +0000 (17:00 +0000)]
Mention the latest bug-fix.

17 years agoIf we fail to create a new directory, skip trying to update
Wayne Davison [Mon, 5 Jun 2006 16:56:50 +0000 (16:56 +0000)]
If we fail to create a new directory, skip trying to update
everything that is inside that dir.

17 years agoAdded FLAG_MISSING.
Wayne Davison [Mon, 5 Jun 2006 16:52:34 +0000 (16:52 +0000)]
Added FLAG_MISSING.

17 years agoGot rid of an unused extern.
Wayne Davison [Mon, 5 Jun 2006 16:17:33 +0000 (16:17 +0000)]
Got rid of an unused extern.

17 years agoMention the temp-file fix.
Wayne Davison [Thu, 1 Jun 2006 08:40:55 +0000 (08:40 +0000)]
Mention the temp-file fix.

17 years agoGot rid of the FNAME logcode enum.
Wayne Davison [Thu, 1 Jun 2006 08:04:50 +0000 (08:04 +0000)]
Got rid of the FNAME logcode enum.

17 years agoChanged rprintf() messages that started with a newline into two
Wayne Davison [Thu, 1 Jun 2006 08:04:47 +0000 (08:04 +0000)]
Changed rprintf() messages that started with a newline into two
rprintf() calls (the first of which just outputs an empty line).

17 years ago- Got rid of the FNAME logcode enum.
Wayne Davison [Thu, 1 Jun 2006 08:04:43 +0000 (08:04 +0000)]
- Got rid of the FNAME logcode enum.
- rwrite() no longer supports newlines at the start of the string.
- maybe_log_item() avoids outputting a non-significant update to
  the log file if the log-file-format doesn't include %i.

17 years ago- Got rid of the FNAME logcode enum.
Wayne Davison [Thu, 1 Jun 2006 08:04:40 +0000 (08:04 +0000)]
- Got rid of the FNAME logcode enum.
- We no longer output " is uptodate" messages to the log file.

17 years agoFixed a typo that set stdout_format_has_i instead of logfile_format_has_i.
Wayne Davison [Thu, 1 Jun 2006 06:49:15 +0000 (06:49 +0000)]
Fixed a typo that set stdout_format_has_i instead of logfile_format_has_i.

17 years agoMention the latest --log-* option changes.
Wayne Davison [Tue, 30 May 2006 18:35:36 +0000 (18:35 +0000)]
Mention the latest --log-* option changes.

17 years agoAuthorize the current host in the rsyncd.conf file in addition
Wayne Davison [Tue, 30 May 2006 18:26:17 +0000 (18:26 +0000)]
Authorize the current host in the rsyncd.conf file in addition
to localhost and 127.0.0.1 (which will hopefully fix the failing
of the daemon tests on FreeBSD).

17 years ago- Added the --log-file-format option to the daemon section.
Wayne Davison [Tue, 30 May 2006 17:47:20 +0000 (17:47 +0000)]
- Added the --log-file-format option to the daemon section.
- Updated and improved the --out-format section.
- Moved and improved the description of the non-daemon --log-file and
  --log-file-format options.

17 years agoIf the user specifies --log-file-format without --log-file,
Wayne Davison [Tue, 30 May 2006 17:41:54 +0000 (17:41 +0000)]
If the user specifies --log-file-format without --log-file,
ignore the useless value.

17 years agoSkip transfer logging if the logfile_format string is empty.
Wayne Davison [Tue, 30 May 2006 17:41:04 +0000 (17:41 +0000)]
Skip transfer logging if the logfile_format string is empty.

17 years agoAllow the --log-file-format=FMT option (if given when starting a daemon)
Wayne Davison [Tue, 30 May 2006 17:15:24 +0000 (17:15 +0000)]
Allow the --log-file-format=FMT option (if given when starting a daemon)
to override the "log format" setting.

17 years ago- Allow the --log-file-format option to override the "log format"
Wayne Davison [Tue, 30 May 2006 17:14:17 +0000 (17:14 +0000)]
- Allow the --log-file-format option to override the "log format"
  setting when starting a daemon.
- Make a daemon refuse all --log-file* options.
- Don't use refuse logic on daemon-mode options given to a daemon
  module -- reject them via their own message.

17 years agoDocument the new --log-file-format option and renamed --log-format to
Wayne Davison [Mon, 29 May 2006 22:57:05 +0000 (22:57 +0000)]
Document the new --log-file-format option and renamed --log-format to
--out-format.

17 years ago- Use the renamed stdout_format_has_i variable.
Wayne Davison [Mon, 29 May 2006 22:57:01 +0000 (22:57 +0000)]
- Use the renamed stdout_format_has_i variable.
- Call log_item() with its new arg (and call it more often).

17 years agoTurn off the --log-file option on the server side for a local transfer.
Wayne Davison [Mon, 29 May 2006 22:56:58 +0000 (22:56 +0000)]
Turn off the --log-file option on the server side for a local transfer.

17 years agoUse the renamed stdout_format_has_i variable.
Wayne Davison [Mon, 29 May 2006 22:56:55 +0000 (22:56 +0000)]
Use the renamed stdout_format_has_i variable.

17 years ago- Use the renamed stdout_format_has_i variable.
Wayne Davison [Mon, 29 May 2006 22:56:51 +0000 (22:56 +0000)]
- Use the renamed stdout_format_has_i variable.
- Call log_item() with its new arg.

17 years ago- Use the renamed stdout_format_has_i, stdout_format_has_o_or_i, and
Wayne Davison [Mon, 29 May 2006 22:56:48 +0000 (22:56 +0000)]
- Use the renamed stdout_format_has_i, stdout_format_has_o_or_i, and
  stdout_format variables.
- In rwrite(), make FNAME output only go to the client.
- Added an arg to log_item() that indicates what kind of output is
  desired: FNAME (stdout only),  FLOG (log file only), or FINFO (both).