rsync.git
20 years agoImprove the format of the --iterations output.
Wayne Davison [Sun, 6 Jul 2003 18:29:24 +0000 (18:29 +0000)]
Improve the format of the --iterations output.

20 years ago- Return ABORT_ALL for a syntax error in the pattern (not FALSE).
Wayne Davison [Sun, 6 Jul 2003 18:26:34 +0000 (18:26 +0000)]
- Return ABORT_ALL for a syntax error in the pattern (not FALSE).
- Abort if the [:class:] name is not known.

20 years agoAdded match for new "no errors" line from wildtest.
Wayne Davison [Sun, 6 Jul 2003 17:41:37 +0000 (17:41 +0000)]
Added match for new "no errors" line from wildtest.

20 years agoSwitch to using an input file so that backslashes are specified
Wayne Davison [Sun, 6 Jul 2003 17:41:01 +0000 (17:41 +0000)]
Switch to using an input file so that backslashes are specified
normally, and so that test additions and changes are easier.

20 years agoAdded some portability code for the ctype functions.
Wayne Davison [Sun, 6 Jul 2003 16:29:32 +0000 (16:29 +0000)]
Added some portability code for the ctype functions.

20 years agoUpdated for latest wildmatch.c changes.
Wayne Davison [Sun, 6 Jul 2003 04:34:19 +0000 (04:34 +0000)]
Updated for latest wildmatch.c changes.

20 years ago- Added [:class:] handling to the character-class code.
Wayne Davison [Sun, 6 Jul 2003 04:33:54 +0000 (04:33 +0000)]
- Added [:class:] handling to the character-class code.
- Use explicit unsigned characters for proper set checks.
- Made the character-class code honor backslash escapes.
- Accept '^' as a class-negation character in addition to '!'.

20 years agoWe now figure out if diff accepts -u and we'll use it instead of -c,
Wayne Davison [Sat, 5 Jul 2003 22:57:08 +0000 (22:57 +0000)]
We now figure out if diff accepts -u and we'll use it instead of -c,
if possible.

20 years agoSimplified the character-class code a bit.
Wayne Davison [Sat, 5 Jul 2003 22:40:27 +0000 (22:40 +0000)]
Simplified the character-class code a bit.

20 years agoFixed the output of popt errors and changed our one option to be
Wayne Davison [Sat, 5 Jul 2003 19:21:41 +0000 (19:21 +0000)]
Fixed the output of popt errors and changed our one option to be
--iterations (-i).

20 years agoA wildtest change to handle someone using the included popt lib.
Wayne Davison [Sat, 5 Jul 2003 19:14:10 +0000 (19:14 +0000)]
A wildtest change to handle someone using the included popt lib.

20 years agoAdded dependencies for wildtest.o.
Wayne Davison [Sat, 5 Jul 2003 19:06:49 +0000 (19:06 +0000)]
Added dependencies for wildtest.o.

20 years agoChanged some names since "depth" wasn't really the right term.
Wayne Davison [Sat, 5 Jul 2003 19:03:42 +0000 (19:03 +0000)]
Changed some names since "depth" wasn't really the right term.

20 years agoAnother change to the wildtest rule to make it more portable.
Wayne Davison [Sat, 5 Jul 2003 18:55:09 +0000 (18:55 +0000)]
Another change to the wildtest rule to make it more portable.

20 years agoAdded a --depth option to report recursion depth values.
Wayne Davison [Sat, 5 Jul 2003 18:49:38 +0000 (18:49 +0000)]
Added a --depth option to report recursion depth values.

20 years agoImproved the ABORT logic to allow aborting consecutive "*" wildcards
Wayne Davison [Sat, 5 Jul 2003 18:48:34 +0000 (18:48 +0000)]
Improved the ABORT logic to allow aborting consecutive "*" wildcards
back to a "**" wildcard.  Added optional debug code for recursion stats.

20 years agoChanged the build rule for wildtest.
Wayne Davison [Sat, 5 Jul 2003 18:46:02 +0000 (18:46 +0000)]
Changed the build rule for wildtest.

20 years agoAdded in the ABORT optimization logic from a newer wildmat release,
Wayne Davison [Sat, 5 Jul 2003 17:30:53 +0000 (17:30 +0000)]
Added in the ABORT optimization logic from a newer wildmat release,
adapted for our code that distinguishes "**" from "*".

20 years agoRestored an isdigit() check in the match_address() function, but check
Wayne Davison [Sat, 5 Jul 2003 07:39:57 +0000 (07:39 +0000)]
Restored an isdigit() check in the match_address() function, but check
the last character in the hostname, not the first.

20 years agoA couple comment tweaks.
Wayne Davison [Sat, 5 Jul 2003 07:22:13 +0000 (07:22 +0000)]
A couple comment tweaks.

20 years agoChanged "diff -u" back to "diff -c" (for portability).
Wayne Davison [Sat, 5 Jul 2003 07:09:31 +0000 (07:09 +0000)]
Changed "diff -u" back to "diff -c" (for portability).

20 years agoChange most SAME-AS-FNMATCH "false" values to "true" (since we _should_
Wayne Davison [Sat, 5 Jul 2003 07:03:56 +0000 (07:03 +0000)]
Change most SAME-AS-FNMATCH "false" values to "true" (since we _should_
work the same as fnmatch in most cases, if fnmatch was actually working
right).

20 years agoGet rid of a couple compiler warnings.
Wayne Davison [Sat, 5 Jul 2003 06:56:16 +0000 (06:56 +0000)]
Get rid of a couple compiler warnings.

20 years agoDon't define COMPARE_WITH_FNMATCH by default.
Wayne Davison [Sat, 5 Jul 2003 06:53:41 +0000 (06:53 +0000)]
Don't define COMPARE_WITH_FNMATCH by default.

20 years agoInclude lib/wildmatch.h directly for now (until we make rsync.h include
Wayne Davison [Sat, 5 Jul 2003 00:13:38 +0000 (00:13 +0000)]
Include lib/wildmatch.h directly for now (until we make h include
it for us).

20 years agoTest the new wildmatch() routine using the wildtest executable.
Wayne Davison [Sat, 5 Jul 2003 00:08:11 +0000 (00:08 +0000)]
Test the new wildmatch() routine using the wildtest executable.

20 years agoBuild "wildtest" for "make check".
Wayne Davison [Sat, 5 Jul 2003 00:07:35 +0000 (00:07 +0000)]
Build "wildtest" for "make check".

20 years agoIgnore "wildtest".
Wayne Davison [Sat, 5 Jul 2003 00:05:33 +0000 (00:05 +0000)]
Ignore "wildtest".

20 years agoA testbed to stress the new wildmatch() routine.
Wayne Davison [Sat, 5 Jul 2003 00:05:02 +0000 (00:05 +0000)]
A testbed to stress the new wildmatch() routine.

20 years agoA new wildcard-matching routine to replace the fnmatch code.
Wayne Davison [Sat, 5 Jul 2003 00:03:36 +0000 (00:03 +0000)]
A new wildcard-matching routine to replace the fnmatch code.

20 years agoChanged "diff -c" to "diff -u".
Wayne Davison [Fri, 4 Jul 2003 23:56:59 +0000 (23:56 +0000)]
Changed "diff -c" to "diff -u".

20 years agoAttempting to fix the snprintf() conflict on a gcc-using HPUX 11.11.
Wayne Davison [Fri, 4 Jul 2003 15:36:39 +0000 (15:36 +0000)]
Attempting to fix the snprintf() conflict on a gcc-using HPUX 11.11.

20 years agoUse "return" at the end of main() to silence some compilers.
Wayne Davison [Fri, 4 Jul 2003 15:11:46 +0000 (15:11 +0000)]
Use "return" at the end of main() to silence some compilers.

20 years agoMade rprintf() of size_t value portable.
Wayne Davison [Fri, 4 Jul 2003 15:11:44 +0000 (15:11 +0000)]
Made rprintf() of size_t value portable.

20 years agoImproved upon my last patch to make it clearer and cleaner.
Wayne Davison [Fri, 4 Jul 2003 07:47:09 +0000 (07:47 +0000)]
Improved upon my last patch to make it clearer and cleaner.

20 years agoChanged the syntax of a comment.
Wayne Davison [Thu, 3 Jul 2003 18:33:53 +0000 (18:33 +0000)]
Changed the syntax of a comment.

20 years agoMention the compression (-z) fix.
Wayne Davison [Thu, 3 Jul 2003 17:41:08 +0000 (17:41 +0000)]
Mention the compression (-z) fix.

20 years agoFixed a problem where we might not have enough room to compress
Wayne Davison [Thu, 3 Jul 2003 17:38:12 +0000 (17:38 +0000)]
Fixed a problem where we might not have enough room to compress
unsent tokens into the obuf in a single call.

20 years agoMention the exclude changes.
Wayne Davison [Tue, 1 Jul 2003 22:01:48 +0000 (22:01 +0000)]
Mention the exclude changes.

20 years agoModified the glob_expand_one() function to check the args against the
Wayne Davison [Tue, 1 Jul 2003 21:45:31 +0000 (21:45 +0000)]
Modified the glob_expand_one() function to check the args against the
server's config-specified exclude list.  This prevents the user from
going around directory exclusions.  Fixed push_dir() to not append
"/." onto the end of the current path if it is called with "." as the
"dir" arg.  Made curr_dir[] exported so the exclude code can use it
(for the daemon-config absolute-path excludes).

20 years agoNew stubs to get the test setup to compile with the exclude changes.
Wayne Davison [Tue, 1 Jul 2003 21:45:29 +0000 (21:45 +0000)]
New stubs to get the test setup to compile with the exclude changes.

20 years agoAdded some defines for the various exclude-function arg literals.
Wayne Davison [Tue, 1 Jul 2003 21:45:27 +0000 (21:45 +0000)]
Added some defines for the various exclude-function arg literals.
Added MATCHFLG_ABS_PATH flag for absolute-path patterns.

20 years agoChanged add_exclude*() calls to use the revised arg syntax.
Wayne Davison [Tue, 1 Jul 2003 21:45:23 +0000 (21:45 +0000)]
Changed add_exclude*() calls to use the revised arg syntax.

20 years agoModifications to handle the new server_exclude_list, and to use the
Wayne Davison [Tue, 1 Jul 2003 21:45:18 +0000 (21:45 +0000)]
Modifications to handle the new server_exclude_list, and to use the
revised calling syntax and new defines for the various exclude
functions.

20 years agoMade make_exclude() store anchored config-file excludes with the full
Wayne Davison [Tue, 1 Jul 2003 21:45:16 +0000 (21:45 +0000)]
Made make_exclude() store anchored config-file excludes with the full
path (clear to the root).  Changed several functions to make the args
more general (to support separated lists), more consistent, and easier
to understand.

20 years agoWe now put the excludes from the config file into a "server_exclude_list"
Wayne Davison [Tue, 1 Jul 2003 21:45:13 +0000 (21:45 +0000)]
We now put the excludes from the config file into a "server_exclude_list"
using the revised add_exclude_line() arg syntax.

20 years agoCall make_file() using the revised arg syntax and new defines.
Wayne Davison [Tue, 1 Jul 2003 21:45:07 +0000 (21:45 +0000)]
Call make_file() using the revised arg syntax and new defines.

20 years agoAdd a comment about using getpassphrase() or readpassphrase() rather
Martin Pool [Tue, 17 Jun 2003 04:46:32 +0000 (04:46 +0000)]
Add a comment about using getpassphrase() or readpassphrase() rather
than getpass().  No code change.

20 years agoCredit where due.
J.W. Schultz [Tue, 10 Jun 2003 00:21:34 +0000 (00:21 +0000)]
Credit where due.

20 years agoClarified EXCLUDE PATTERNS to enforce the relativity of
J.W. Schultz [Tue, 10 Jun 2003 00:11:24 +0000 (00:11 +0000)]
Clarified EXCLUDE PATTERNS to enforce the relativity of
paths.  Replaced undefined "base dir" with a defined "top
dir".

20 years agoChanged write file to cope with partial writes by looping
J.W. Schultz [Thu, 22 May 2003 23:24:44 +0000 (23:24 +0000)]
Changed write file to cope with partial writes by looping
until complete or errno is set.
(John Van Essen)

20 years agoUpdated the long description for the --perms option.
Wayne Davison [Fri, 16 May 2003 04:23:34 +0000 (04:23 +0000)]
Updated the long description for the --perms option.

20 years agoAdded AIX and OSX build workaround notes.
J.W. Schultz [Wed, 14 May 2003 12:54:15 +0000 (12:54 +0000)]
Added AIX and OSX build workaround notes.

20 years agoAnother MD4 fix for protocol 27 (from Christoph Bartelmus).
Wayne Davison [Mon, 12 May 2003 20:38:07 +0000 (20:38 +0000)]
Another MD4 fix for protocol 27 (from Christoph Bartelmus).

20 years agoCleaned up whitespace/indentation.
Wayne Davison [Sat, 10 May 2003 08:33:08 +0000 (08:33 +0000)]
Cleaned up whitespace/indentation.

20 years agoOptimized away 3 calls to strcmp().
Wayne Davison [Sat, 10 May 2003 00:56:08 +0000 (00:56 +0000)]
Optimized away 3 calls to strcmp().

20 years agoModified the (in|ex)clude [from] option descriptions to
J.W. Schultz [Fri, 9 May 2003 12:04:24 +0000 (12:04 +0000)]
Modified the (in|ex)clude [from] option descriptions to
better highlight the non-equivalence with client-side
--exclude.

20 years agoRemove generated file config.log.
Jos Backus [Sun, 4 May 2003 19:59:47 +0000 (19:59 +0000)]
Remove generated file config.log.

20 years agoAdded --link-dest to the --help output.
J.W. Schultz [Fri, 2 May 2003 23:36:10 +0000 (23:36 +0000)]
Added --link-dest to the --help output.

20 years agoExclude/include bug fixes.
Wayne Davison [Thu, 1 May 2003 19:39:20 +0000 (19:39 +0000)]
Exclude/include bug fixes.

20 years agoChanged the expected results to match the new bug-fixed behavior.
Wayne Davison [Thu, 1 May 2003 19:34:01 +0000 (19:34 +0000)]
Changed the expected results to match the new bug-fixed behavior.

20 years agoTweaked the exclude_struct for our improved matching code.
Wayne Davison [Thu, 1 May 2003 19:33:59 +0000 (19:33 +0000)]
Tweaked the exclude_struct for our improved matching code.

20 years agoMention that a pattern with "**" is matched against the entire path, even
Wayne Davison [Thu, 1 May 2003 19:33:57 +0000 (19:33 +0000)]
Mention that a pattern with "**" is matched against the entire path, even
if the pattern doesn't contain a slash.

20 years agoFixed some matching bugs; made the logic of the matching code a little
Wayne Davison [Thu, 1 May 2003 19:33:54 +0000 (19:33 +0000)]
Fixed some matching bugs; made the logic of the matching code a little
clearer by using defined flags; added several comments; optimized the
matching of an anchored literal string.

21 years agoMention the improved trailing-slash-in-destination handling.
Wayne Davison [Thu, 24 Apr 2003 16:26:53 +0000 (16:26 +0000)]
Mention the improved trailing-slash-in-destination handling.

21 years agoMade my last change a little better.
Wayne Davison [Thu, 24 Apr 2003 16:26:09 +0000 (16:26 +0000)]
Made my last change a little better.

21 years agoIf the user specifies a trailing slash on the destination, make sure
Wayne Davison [Thu, 24 Apr 2003 16:14:33 +0000 (16:14 +0000)]
If the user specifies a trailing slash on the destination, make sure
that we treat it as a directory reference.

21 years agoCopy relative path caviat from --compare-dest to
J.W. Schultz [Wed, 23 Apr 2003 23:17:41 +0000 (23:17 +0000)]
Copy relative path caviat from --compare-dest to
--link-dest.

21 years agoChanged one part of the exclude-test setup to test the --existing
Wayne Davison [Wed, 23 Apr 2003 02:15:59 +0000 (02:15 +0000)]
Changed one part of the exclude-test setup to test the --existing
option.  Also tweaked a few comment lines.

21 years agoFixed a typo and added a couple clarifying phrases to the exclude
Wayne Davison [Tue, 22 Apr 2003 18:09:22 +0000 (18:09 +0000)]
Fixed a typo and added a couple clarifying phrases to the exclude
descriptions.

21 years agoTest various exclude/include patterns.
Wayne Davison [Tue, 22 Apr 2003 17:53:53 +0000 (17:53 +0000)]
Test various exclude/include patterns.

21 years agoChanged test_xfail to test_fail.
Wayne Davison [Tue, 22 Apr 2003 16:45:24 +0000 (16:45 +0000)]
Changed test_xfail to test_fail.

21 years agoFixed a problem with the test code and enabled it (since rsync's
Wayne Davison [Tue, 22 Apr 2003 00:25:05 +0000 (00:25 +0000)]
Fixed a problem with the test code and enabled it (since rsync's
duplicate-elimination code is now fixed).

21 years agoMake explicit that (in|ex)clude patterns are for relative
J.W. Schultz [Mon, 21 Apr 2003 08:44:25 +0000 (08:44 +0000)]
Make explicit that (in|ex)clude patterns are for relative
paths and that the leading / is the equivalent of ^ in
regex.

21 years agoMade a slight tweak to the previous --stats change.
Wayne Davison [Fri, 18 Apr 2003 20:03:41 +0000 (20:03 +0000)]
Made a slight tweak to the previous --stats change.

21 years agoMention the change to the --stats output.
Wayne Davison [Thu, 17 Apr 2003 23:46:01 +0000 (23:46 +0000)]
Mention the change to the --stats output.

21 years agoOnly display the malloc stats if we're at least double-verbose (and
Wayne Davison [Thu, 17 Apr 2003 23:44:25 +0000 (23:44 +0000)]
Only display the malloc stats if we're at least double-verbose (and
--stats was specified, of course).  Also made the output of the short
(2-line) transfer summary get prefixed with an empty line in all
cases (not just with --stats).

21 years agoSome whitespace/indentation cleanup.
Wayne Davison [Thu, 17 Apr 2003 01:44:33 +0000 (01:44 +0000)]
Some whitespace/indentation cleanup.

21 years agodocument bug fix for --link-dest and lack of -pgo.
J.W. Schultz [Fri, 11 Apr 2003 03:15:53 +0000 (03:15 +0000)]
document bug fix for --link-dest and lack of -pgo.

21 years ago(Really mbp)
restrict [Thu, 10 Apr 2003 04:35:12 +0000 (04:35 +0000)]
(Really mbp)

Test commit from restricted CVS account.  No changes.

21 years agoFixed a weird line corruption in the last check-in and tweaked the
Wayne Davison [Thu, 10 Apr 2003 03:06:28 +0000 (03:06 +0000)]
Fixed a weird line corruption in the last check-in and tweaked the
format to be the same as in older releases.

21 years ago - Per-file dynamic block size is now sqrt(file length).
J.W. Schultz [Thu, 10 Apr 2003 02:04:58 +0000 (02:04 +0000)]
-   Per-file dynamic block size is now sqrt(file length).

    - The per-file checksum size is determined according
to an algorythm provided by Donovan Baarda which
reduces the probability of rsync algorithm
corrupting data and falling back using the whole md4
checksums.

21 years ago - for protocol version >= 27, mdfour_tail() is called when the block size
J.W. Schultz [Thu, 10 Apr 2003 01:50:12 +0000 (01:50 +0000)]
 - for protocol version >= 27, mdfour_tail() is called when the block size
   (including checksum_seed) is a multiple of 64.  Previously it was not
   called, giving the wrong MD4 checksum.

 - for protocol version >= 27, a 64 bit bit counter is used in mdfour.c as
   required by the RFC.  Previously only a 32 bit bit counter was used,
   causing incorrect MD4 file checksums for file sizes >= 512MB - 4.
-- Craig Barratt

21 years agoNow support dynamic per-file checksum2 size.
J.W. Schultz [Thu, 10 Apr 2003 01:13:30 +0000 (01:13 +0000)]
Now support dynamic per-file checksum2 size.

This pushes protocol version to 27

21 years agoversions prior to 1.7.0 (protcol version 17) cannot talk to
J.W. Schultz [Thu, 10 Apr 2003 00:13:48 +0000 (00:13 +0000)]
versions prior to 1.7.0 (protcol version 17) cannot talk to
protocol versions > 20 so bumping up the minimum protocol
version and excising the pre-17 cruft.

21 years agoFix bug reported by engard.ferenc at innomed.hu whereby using the %f format
Paul Green [Wed, 9 Apr 2003 21:10:18 +0000 (21:10 +0000)]
Fix bug reported by engard.ferenc at innomed.hu whereby using the %f format
in sprintf with a value like 0.025 produced 0.250.  We were dropping the
leading zeros before the fractional digits.

21 years agoRemove tempname length problem and files-from from TODO.
J.W. Schultz [Tue, 1 Apr 2003 03:44:50 +0000 (03:44 +0000)]
Remove tempname length problem and files-from from TODO.

21 years agoRemoving vestigial support for protocol versions prior to 15.
J.W. Schultz [Mon, 31 Mar 2003 17:28:34 +0000 (17:28 +0000)]
Removing vestigial support for protocol versions prior to 15.

21 years agoLogic error in preserve_perms + link_dest
J.W. Schultz [Mon, 31 Mar 2003 08:09:41 +0000 (08:09 +0000)]
Logic error in preserve_perms + link_dest

21 years agoFixed a typo.
Wayne Davison [Sun, 30 Mar 2003 23:19:22 +0000 (23:19 +0000)]
Fixed a typo.

21 years agoStarted a new section for the next release.
Wayne Davison [Sun, 30 Mar 2003 23:15:01 +0000 (23:15 +0000)]
Started a new section for the next release.

21 years agoTweaked the O_BINARY code to the latest idiom.
Wayne Davison [Sun, 30 Mar 2003 23:00:51 +0000 (23:00 +0000)]
Tweaked the O_BINARY code to the latest idiom.

21 years agoDefine O_BINARY as "0" if it isn't defined.
Wayne Davison [Sun, 30 Mar 2003 23:00:49 +0000 (23:00 +0000)]
Define O_BINARY as "0" if it isn't defined.

21 years agoDocumented --files-from, --no-relative, --no-implied-dirs, and --from0.
Wayne Davison [Sun, 30 Mar 2003 23:00:47 +0000 (23:00 +0000)]
Documented --files-from, --no-relative, --no-implied-dirs, and --from0.

21 years agoSupport the new --files-from, --no-relative, --no-implied-dirs, and --from0
Wayne Davison [Sun, 30 Mar 2003 23:00:42 +0000 (23:00 +0000)]
Support the new --files-from, --no-relative, --no-implied-dirs, and --from0
options.  Moved the find_colon() routine here from main.c.

21 years agoOpen the file in BINARY fd mode, handle the normal line-ending characters
Wayne Davison [Sun, 30 Mar 2003 23:00:40 +0000 (23:00 +0000)]
Open the file in BINARY fd mode, handle the normal line-ending characters
better than before, and add support for the new --from0 option (which changes
the line separator to a null).

21 years agoSupport the new --files-from and --no-implied-dirs options.
Wayne Davison [Sun, 30 Mar 2003 23:00:37 +0000 (23:00 +0000)]
Support the new --files-from and --no-implied-dirs options.

21 years agoSupport the new --files-from and --from0 options.
Wayne Davison [Sun, 30 Mar 2003 23:00:35 +0000 (23:00 +0000)]
Support the new --files-from and --from0 options.

21 years agoSupport the new --files-from option.
Wayne Davison [Sun, 30 Mar 2003 23:00:33 +0000 (23:00 +0000)]
Support the new --files-from option.

21 years agoMake link-dest aware of --perms, --owner and --group.
J.W. Schultz [Wed, 26 Mar 2003 20:26:06 +0000 (20:26 +0000)]
Make link-dest aware of --perms, --owner and --group.
---- Chris Darroch