rsync.git
16 years agoReject attempts to combine --sparse with --inplace.
Wayne Davison [Tue, 30 Aug 2005 02:57:19 +0000 (02:57 +0000)]
Reject attempts to combine --sparse with --inplace.

16 years agoForgot the --no-v option.
Wayne Davison [Sun, 28 Aug 2005 00:43:51 +0000 (00:43 +0000)]
Forgot the --no-v option.

16 years agoMention the new --no-* options.
Wayne Davison [Sun, 28 Aug 2005 00:34:46 +0000 (00:34 +0000)]
Mention the new --no-* options.

16 years agoA small improvement to the daemon-connecting instructions.
Wayne Davison [Sun, 28 Aug 2005 00:25:44 +0000 (00:25 +0000)]
A small improvement to the daemon-connecting instructions.

16 years agoOne more tweak to the option data.
Wayne Davison [Sat, 27 Aug 2005 21:12:44 +0000 (21:12 +0000)]
One more tweak to the option data.

16 years agoDocumented the new --no-* options.
Wayne Davison [Sat, 27 Aug 2005 21:07:27 +0000 (21:07 +0000)]
Documented the new --no-* options.

16 years agoAdded the ability to prefix "no-" to various options, which gives the
Wayne Davison [Sat, 27 Aug 2005 21:01:45 +0000 (21:01 +0000)]
Added the ability to prefix "no-" to various options, which gives the
user an easy way to override implied option switches.

16 years agoA little more reordering of the option data.
Wayne Davison [Sat, 27 Aug 2005 20:43:35 +0000 (20:43 +0000)]
A little more reordering of the option data.

16 years agoReordered some of the option data to make their grouping more logical.
Wayne Davison [Sat, 27 Aug 2005 20:01:45 +0000 (20:01 +0000)]
Reordered some of the option data to make their grouping more logical.

16 years agoMake the --append docs a little better.
Wayne Davison [Sat, 20 Aug 2005 17:21:06 +0000 (17:21 +0000)]
Make the --append docs a little better.

16 years agoMoved a variable in glob_expand_one().
Wayne Davison [Wed, 3 Aug 2005 04:51:29 +0000 (04:51 +0000)]
Moved a variable in glob_expand_one().

16 years agoGot rid of the argp var that is not needed now that argv is no
Wayne Davison [Wed, 3 Aug 2005 04:42:56 +0000 (04:42 +0000)]
Got rid of the argp var that is not needed now that argv is no
longer a literal array.

16 years agoImproved the --relative section a little more.
Wayne Davison [Wed, 3 Aug 2005 01:13:15 +0000 (01:13 +0000)]
Improved the --relative section a little more.

16 years agoMention the latest changes.
Wayne Davison [Mon, 1 Aug 2005 22:18:11 +0000 (22:18 +0000)]
Mention the latest changes.

16 years agoImproved the --relative section, including mentioning the addition
Wayne Davison [Mon, 1 Aug 2005 22:18:00 +0000 (22:18 +0000)]
Improved the --relative section, including mentioning the addition
of dot-dir path trimming.

16 years agoAllow the user to specify a dot dir in the source path when
Wayne Davison [Mon, 1 Aug 2005 21:58:16 +0000 (21:58 +0000)]
Allow the user to specify a dot dir in the source path when
using --relative, making it trim the duplicated dirs.

16 years agoDon't recreate a device if just the permissions bits have changed
Wayne Davison [Mon, 1 Aug 2005 04:09:58 +0000 (04:09 +0000)]
Don't recreate a device if just the permissions bits have changed
in the st_mode.

16 years agoMention hard-link fix.
Wayne Davison [Sun, 31 Jul 2005 23:21:46 +0000 (23:21 +0000)]
Mention hard-link fix.

16 years agoHard-link a device in order to test that this works properly.
Wayne Davison [Sun, 31 Jul 2005 23:20:12 +0000 (23:20 +0000)]
Hard-link a device in order to test that this works properly.

16 years agoThere is no longer a need to check file->link_u.links at the start
Wayne Davison [Sun, 31 Jul 2005 23:19:42 +0000 (23:19 +0000)]
There is no longer a need to check file->link_u.links at the start
of hard_link_check() (because the caller has already checked it).

16 years agoFixed the handling of hard-linked symlinks and devices.
Wayne Davison [Sun, 31 Jul 2005 23:18:28 +0000 (23:18 +0000)]
Fixed the handling of hard-linked symlinks and devices.

16 years agoExport RUNSHFLAGS.
Wayne Davison [Sun, 31 Jul 2005 23:15:38 +0000 (23:15 +0000)]
Export RUNSHFLAGS.

16 years agoMention the --inplace new-file permissions fix.
Wayne Davison [Sat, 30 Jul 2005 16:17:21 +0000 (16:17 +0000)]
Mention the --inplace new-file permissions fix.

16 years ago- The combination of --update and --progress now outputs progress
Wayne Davison [Sat, 30 Jul 2005 16:14:22 +0000 (16:14 +0000)]
- The combination of --update and --progress now outputs progress
  information during the checksum scan of the already-sent data.
- When --inplace creates a file, give it 0600 permissions, not 0000.

16 years agoThe combination of --update and --progress now outputs progress
Wayne Davison [Sat, 30 Jul 2005 16:13:19 +0000 (16:13 +0000)]
The combination of --update and --progress now outputs progress
information during the checksum scan of the already-sent data.

16 years agoImproved the text around the last example in the USAGE section.
Wayne Davison [Fri, 29 Jul 2005 19:52:50 +0000 (19:52 +0000)]
Improved the text around the last example in the USAGE section.

16 years agoMention the latest changes.
Wayne Davison [Fri, 29 Jul 2005 18:48:58 +0000 (18:48 +0000)]
Mention the latest changes.

16 years ago- Use BIGPATHBUFLEN for the length of several buffers.
Wayne Davison [Fri, 29 Jul 2005 18:31:12 +0000 (18:31 +0000)]
- Use BIGPATHBUFLEN for the length of several buffers.
- If io_printf() tries to overflow the buffer, die with
  an error instead of sending a truncated buffer.

16 years ago- Use BIGPATHBUFLEN for the length of two line buffers.
Wayne Davison [Fri, 29 Jul 2005 18:31:10 +0000 (18:31 +0000)]
- Use BIGPATHBUFLEN for the length of two line buffers.
- Improved the handling of the start_glob variable.
- Made the line buffer in start_daemon() a little bigger.

16 years agoUse BIGPATHBUFLEN for the length of two line buffers.
Wayne Davison [Fri, 29 Jul 2005 18:31:07 +0000 (18:31 +0000)]
Use BIGPATHBUFLEN for the length of two line buffers.

16 years agoUse BIGPATHBUFLEN for the length of a line buffer.
Wayne Davison [Fri, 29 Jul 2005 18:31:05 +0000 (18:31 +0000)]
Use BIGPATHBUFLEN for the length of a line buffer.

16 years agoDefine BIGPATHBUFLEN -- a roomy line-buffer that can hold a
Wayne Davison [Fri, 29 Jul 2005 18:31:03 +0000 (18:31 +0000)]
Define BIGPATHBUFLEN -- a roomy line-buffer that can hold a
MAXPATHLEN string plus a message, and it's at least 4096+1024
bytes for those systems where MAXPATHLEN is overly short.

16 years agoUpdated to match 2.6.6 release (which occurred on a branch).
Wayne Davison [Thu, 28 Jul 2005 20:00:43 +0000 (20:00 +0000)]
Updated to match 2.6.6 release (which occurred on a branch).

16 years agoChanged the version to 2.6.7cvs.
Wayne Davison [Thu, 28 Jul 2005 19:49:47 +0000 (19:49 +0000)]
Changed the version to 2.6.7cvs.

16 years agoUpdated to reflect new 2.6.7cvs status.
Wayne Davison [Thu, 28 Jul 2005 19:49:24 +0000 (19:49 +0000)]
Updated to reflect new 2.6.7cvs status.

16 years agoRemoved a duplicated item.
Wayne Davison [Thu, 28 Jul 2005 18:17:56 +0000 (18:17 +0000)]
Removed a duplicated item.

16 years agoMention the recent changes.
Wayne Davison [Thu, 28 Jul 2005 17:42:56 +0000 (17:42 +0000)]
Mention the recent changes.

16 years agoIf the user has specified "pre-xfer exec" or "post-xfer exec", run
Wayne Davison [Thu, 28 Jul 2005 17:15:47 +0000 (17:15 +0000)]
If the user has specified "pre-xfer exec" or "post-xfer exec", run
the indicated command(s), each at the appropriate time.

16 years agoAdded 2 new config options: "pre-xfer exec" and "post-xfer exec".
Wayne Davison [Thu, 28 Jul 2005 17:15:44 +0000 (17:15 +0000)]
Added 2 new config options: "pre-xfer exec" and "post-xfer exec".

16 years agoDocument the new pre-/post-xfer exec config options.
Wayne Davison [Thu, 28 Jul 2005 17:15:42 +0000 (17:15 +0000)]
Document the new pre-/post-xfer exec config options.

16 years agoRegenerated.
Wayne Davison [Thu, 28 Jul 2005 16:58:04 +0000 (16:58 +0000)]
Regenerated.

16 years agoRemoved one more client-oriented command-line syntax sentence.
Wayne Davison [Thu, 28 Jul 2005 09:40:08 +0000 (09:40 +0000)]
Removed one more client-oriented command-line syntax sentence.

16 years agoRemoved erroneous section on using daemon features over a
Wayne Davison [Thu, 28 Jul 2005 09:36:12 +0000 (09:36 +0000)]
Removed erroneous section on using daemon features over a
remote-shell connection -- client-use is better described in the
rsync manpage, and the advanced restricted-ssh section needs a
better treatment (perhaps as a support script).

16 years agoImproved the sections dicussing the various types of transfer
Wayne Davison [Thu, 28 Jul 2005 09:18:20 +0000 (09:18 +0000)]
Improved the sections dicussing the various types of transfer
connections and how a normal transfer differs from a daemon
transfer.

16 years agoDocument new --append option.
Wayne Davison [Thu, 28 Jul 2005 01:46:16 +0000 (01:46 +0000)]
Document new --append option.

16 years agoSupport new --append option.
Wayne Davison [Thu, 28 Jul 2005 01:46:12 +0000 (01:46 +0000)]
Support new --append option.

16 years agoAdded the --append option.
Wayne Davison [Thu, 28 Jul 2005 01:46:09 +0000 (01:46 +0000)]
Added the --append option.

16 years ago- Call set_modtime() with its new mode arg.
Wayne Davison [Wed, 27 Jul 2005 23:30:58 +0000 (23:30 +0000)]
- Call set_modtime() with its new mode arg.
- Don't mask the mode bits being sent to do_chmod().
- Don't skip calling set_modtime() or do_chmod() when the item
  is a symlink.

16 years ago- Fixed the mode comparison in itemize() to mask off the bits
Wayne Davison [Wed, 27 Jul 2005 23:30:55 +0000 (23:30 +0000)]
- Fixed the mode comparison in itemize() to mask off the bits
  outside of the CHMOD_BITS mask.
- Don't call do_chmod() unless HAVE_CHMOD is defined.
- Don't mask the mode bits being sent to do_chmod().

16 years ago- Don't call do_chmod() unless HAVE_CHMOD is defined.
Wayne Davison [Wed, 27 Jul 2005 23:30:53 +0000 (23:30 +0000)]
- Don't call do_chmod() unless HAVE_CHMOD is defined.
- Made do_chmod() handle symlinks or return 1 if not possible.
- We now mask off the mode bits in do_chmod() sing CHMOD_BITS.

16 years ago- Changed set_modtime() to take the file's mode as an arg.
Wayne Davison [Wed, 27 Jul 2005 23:30:51 +0000 (23:30 +0000)]
- Changed set_modtime() to take the file's mode as an arg.
- Made set_modtime() handle symlinks or return 1 if not possible.

16 years agoCheck for the lchmod() and lutimes() functions.
Wayne Davison [Wed, 27 Jul 2005 23:18:28 +0000 (23:18 +0000)]
Check for the lchmod() and lutimes() functions.

16 years agoTweaked a comment and some null-char assignments.
Wayne Davison [Fri, 22 Jul 2005 19:09:45 +0000 (19:09 +0000)]
Tweaked a comment and some null-char assignments.

16 years agoChanged implied_dirs to only be non-0 if relative_paths is non-0.
Wayne Davison [Fri, 22 Jul 2005 19:05:25 +0000 (19:05 +0000)]
Changed implied_dirs to only be non-0 if relative_paths is non-0.

16 years agoGot rid of some unused externs.
Wayne Davison [Fri, 22 Jul 2005 17:59:21 +0000 (17:59 +0000)]
Got rid of some unused externs.

16 years agoUpdated to zlib 1.2.3.
Wayne Davison [Fri, 22 Jul 2005 15:54:43 +0000 (15:54 +0000)]
Updated to zlib 1.2.3.

16 years agoAvoid newest test when no destination was specified.
Wayne Davison [Fri, 15 Jul 2005 19:10:03 +0000 (19:10 +0000)]
Avoid newest test when no destination was specified.

16 years agoOutput a syntax error if both the source and destination are remote.
Wayne Davison [Fri, 15 Jul 2005 19:06:43 +0000 (19:06 +0000)]
Output a syntax error if both the source and destination are remote.

16 years agoPreparing for release of 2.6.6pre1 v2.6.6pre1
Wayne Davison [Thu, 7 Jul 2005 22:53:59 +0000 (22:53 +0000)]
Preparing for release of 2.6.6pre1

16 years agoMentioned the zlib changes and tweaked a couple sentences.
Wayne Davison [Thu, 7 Jul 2005 22:50:12 +0000 (22:50 +0000)]
Mentioned the zlib changes and tweaked a couple sentences.

16 years ago- Attempt to make the discussion of host-specifying args less confusing.
Wayne Davison [Thu, 7 Jul 2005 21:33:40 +0000 (21:33 +0000)]
- Attempt to make the discussion of host-specifying args less confusing.
- Fixed the names of the uid and gid daemon options in a sentence.

16 years agoChanges for new zlib.
Wayne Davison [Thu, 7 Jul 2005 21:29:57 +0000 (21:29 +0000)]
Changes for new zlib.

16 years agoFixed a typo.
Wayne Davison [Thu, 7 Jul 2005 21:19:14 +0000 (21:19 +0000)]
Fixed a typo.

16 years agoFix latest zlib security exploit (CAN-2005-2096).
Wayne Davison [Thu, 7 Jul 2005 21:14:29 +0000 (21:14 +0000)]
Fix latest zlib security exploit (CAN-2005-2096).

16 years agoUpgraded to version 1.2.2.
Wayne Davison [Thu, 7 Jul 2005 20:48:02 +0000 (20:48 +0000)]
Upgraded to version 1.2.2.

16 years agoOne more "#undef BAD" for AIX.
Wayne Davison [Thu, 7 Jul 2005 20:37:31 +0000 (20:37 +0000)]
One more "#undef BAD" for AIX.

16 years agoUse a define to handle conflicting function read_buf instead of
Wayne Davison [Thu, 7 Jul 2005 20:17:35 +0000 (20:17 +0000)]
Use a define to handle conflicting function read_buf instead of
renaming it in the code.

16 years agoChanged "Overflow" back to "overflow".
Wayne Davison [Thu, 7 Jul 2005 20:16:41 +0000 (20:16 +0000)]
Changed "Overflow" back to "overflow".

16 years agoChanged overflow() to overflow_exit().
Wayne Davison [Thu, 7 Jul 2005 19:49:14 +0000 (19:49 +0000)]
Changed overflow() to overflow_exit().

16 years agoChanged zBAD back to BAD (with a simpler kluge for AIX).
Wayne Davison [Thu, 7 Jul 2005 19:31:23 +0000 (19:31 +0000)]
Changed zBAD back to BAD (with a simpler kluge for AIX).

16 years agoFixed some whitespace to match the original source.
Wayne Davison [Thu, 7 Jul 2005 19:22:55 +0000 (19:22 +0000)]
Fixed some whitespace to match the original source.

16 years agoGot rid of bogus RCS keyword expansions (that create differences
Wayne Davison [Thu, 7 Jul 2005 19:15:44 +0000 (19:15 +0000)]
Got rid of bogus RCS keyword expansions (that create differences
between these files and the original zlib source).

16 years agoMention the EEXIST fix.
Wayne Davison [Thu, 30 Jun 2005 17:18:30 +0000 (17:18 +0000)]
Mention the EEXIST fix.

16 years agoIgnore EEXIST on second mkdir() call.
Wayne Davison [Thu, 30 Jun 2005 17:03:14 +0000 (17:03 +0000)]
Ignore EEXIST on second mkdir() call.

16 years agoMention the latest time-comparing fixes.
Wayne Davison [Tue, 28 Jun 2005 00:15:44 +0000 (00:15 +0000)]
Mention the latest time-comparing fixes.

16 years agoUse cmp_modtime() in a couple more spots where a local modtime is
Wayne Davison [Tue, 28 Jun 2005 00:12:08 +0000 (00:12 +0000)]
Use cmp_modtime() in a couple more spots where a local modtime is
compared with a remote modtime.

16 years agoFixed test to work when objdir != srcdir (thanks to Art Haas).
Wayne Davison [Fri, 24 Jun 2005 02:14:12 +0000 (02:14 +0000)]
Fixed test to work when objdir != srcdir (thanks to Art Haas).

16 years agoChanged the arg-splitting code so that it can handle a literal
Wayne Davison [Thu, 23 Jun 2005 15:58:57 +0000 (15:58 +0000)]
Changed the arg-splitting code so that it can handle a literal
backslash prior to whitespace without treating it as escaped
whitespace (e.g. if we receive "foo\\ bar", it is two args,
while "foo\ bar" and "foo\\\ bar" are each just one).

16 years agoTweaked a comment in the perl code we output.
Wayne Davison [Thu, 23 Jun 2005 15:53:26 +0000 (15:53 +0000)]
Tweaked a comment in the perl code we output.

16 years agoImproved a couple sentences.
Wayne Davison [Mon, 20 Jun 2005 07:01:29 +0000 (07:01 +0000)]
Improved a couple sentences.

16 years agoChanged the code to use the single long-option hash from cull_options.
Wayne Davison [Fri, 17 Jun 2005 23:23:00 +0000 (23:23 +0000)]
Changed the code to use the single long-option hash from cull_options.

16 years ago- Fixed a bug where the --*-dest options weren't being culled.
Wayne Davison [Fri, 17 Jun 2005 23:16:22 +0000 (23:16 +0000)]
- Fixed a bug where the --*-dest options weren't being culled.
- Simplified the output format by putting all the long-name
  options into a single hash.

16 years ago- Improved some comments (some taken from the new cull-options output).
Wayne Davison [Fri, 17 Jun 2005 16:48:02 +0000 (16:48 +0000)]
- Improved some comments (some taken from the new cull-options output).
- Made the user-config sections easier to find.
- Default to running a fully-specified rsync executable so that there
  are not PATH surprises.
- A few minor tweaks to the arg-checking code to make it clearer without
  actually changing its logic.

16 years agoAnother readability improvement in the perl code we output.
Wayne Davison [Fri, 17 Jun 2005 16:29:21 +0000 (16:29 +0000)]
Another readability improvement in the perl code we output.

16 years agoImproved some of the comments that are output into the perl code.
Wayne Davison [Fri, 17 Jun 2005 16:12:05 +0000 (16:12 +0000)]
Improved some of the comments that are output into the perl code.

16 years ago- Make sure that the command contained the '.' arg at the end of the
Wayne Davison [Fri, 17 Jun 2005 05:14:15 +0000 (05:14 +0000)]
- Make sure that the command contained the '.' arg at the end of the
  options.
- Fixed the expanding of wildcards for a restriction of '/'.

16 years ago- Be restrictive on matching the --sender option so that the user
Wayne Davison [Fri, 17 Jun 2005 04:50:22 +0000 (04:50 +0000)]
- Be restrictive on matching the --sender option so that the user
  can't fool us into thinking we're the sender by using a filename
  of --sender (or similar ploy).
- Make sure that our '..' check can't be fooled by sly backslashing.
- Tweaked some comments.

16 years agoOutput a leading comment and surrounding blank lines.
Wayne Davison [Fri, 17 Jun 2005 04:46:02 +0000 (04:46 +0000)]
Output a leading comment and surrounding blank lines.

16 years agoMention rrsync changes.
Wayne Davison [Fri, 17 Jun 2005 01:26:33 +0000 (01:26 +0000)]
Mention rrsync changes.

16 years agoIf SUBDIR is specified as a non-absolute path, make it absolute.
Wayne Davison [Fri, 17 Jun 2005 01:17:44 +0000 (01:17 +0000)]
If SUBDIR is specified as a non-absolute path, make it absolute.

16 years ago- Made it easy to configure the path of the rsync executable.
Wayne Davison [Thu, 16 Jun 2005 19:30:53 +0000 (19:30 +0000)]
- Made it easy to configure the path of the rsync executable.
- Fully parse all legal options that might come from a stock rsync and
  validate/restrict any option's args (previously we rejected options
  with args).
- Made it easy to disable specific options.
- Properly handle a multi-arg copy's multiple args.
- Make sure that the restricted dir actually exists and we can chdir
  to it.
- Just reject any dangerous args that have .. in them instead of trying
  to munge them.
- We don't treat single-or double-quotes specially, just backslash-
  escaped characters.
- Turn on strict mode.
- Use the array-arg version of exec() so that we don't spawn a shell.
- Use File::Glob to glob wildcards in args.
- Tweaked the log-file format so that it logs the modified command
  without any "OK" suffix.

16 years agoA developer-oriented script that outputs perl code for valid server
Wayne Davison [Thu, 16 Jun 2005 19:17:47 +0000 (19:17 +0000)]
A developer-oriented script that outputs perl code for valid server
options.

16 years agoMention latest fix.
Wayne Davison [Sun, 12 Jun 2005 06:10:14 +0000 (06:10 +0000)]
Mention latest fix.

16 years agoIn clean_flist(), fixed the setting of the flist->high value for an
Wayne Davison [Sun, 12 Jun 2005 06:07:23 +0000 (06:07 +0000)]
In clean_flist(), fixed the setting of the flist->high value for an
empty list so that it can't cause a crash if it gets passed to
flist_find().

16 years ago- Added a comment to the filter_outfile function.
Wayne Davison [Fri, 10 Jun 2005 23:36:57 +0000 (23:36 +0000)]
- Added a comment to the filter_outfile function.
- Twiddled where the calls to filter_outfile happen.

16 years agoSimplified the regular expressions for sed due to problems on some
Wayne Davison [Fri, 10 Jun 2005 21:56:52 +0000 (21:56 +0000)]
Simplified the regular expressions for sed due to problems on some
OSes.

16 years ago- Put the output we're expecting into an rsync.chk file, for easier
Wayne Davison [Fri, 10 Jun 2005 20:33:57 +0000 (20:33 +0000)]
- Put the output we're expecting into an chk file, for easier
  debugging on failures.
- Added the function filter_outfile() and used it in place of the
  various output-filtering commands.
- Use the sed rules for filtering the combination of --itemized
  output with double-verbose output so that we're sure there's no
  superfluous lines being output (which the old grep filtering
  would have ignored).

16 years agoSeveral expansions of $srcdir were not double-quoted.
Wayne Davison [Fri, 10 Jun 2005 20:04:42 +0000 (20:04 +0000)]
Several expansions of $srcdir were not double-quoted.

16 years agoOne expansion of $srcdir wasn't double-quoted.
Wayne Davison [Fri, 10 Jun 2005 20:04:11 +0000 (20:04 +0000)]
One expansion of $srcdir wasn't double-quoted.

16 years agoOne more instance of the umask kluge was needed.
Wayne Davison [Fri, 10 Jun 2005 18:02:14 +0000 (18:02 +0000)]
One more instance of the umask kluge was needed.