rsync/rsync.git
18 years agoChanged main() definition to avoid an extra prototype being put
Wayne Davison [Wed, 10 Sep 2003 08:27:34 +0000 (08:27 +0000)]
Changed main() definition to avoid an extra prototype being put
into the proto.h file.

18 years agoMake sure that the "path" value has any trailing slashes removed.
Wayne Davison [Wed, 10 Sep 2003 08:08:14 +0000 (08:08 +0000)]
Make sure that the "path" value has any trailing slashes removed.

18 years agoGot rid of trailing whitespace.
Wayne Davison [Wed, 10 Sep 2003 07:31:58 +0000 (07:31 +0000)]
Got rid of trailing whitespace.

18 years agoAdded the new --protocol option.
Wayne Davison [Tue, 9 Sep 2003 15:58:56 +0000 (15:58 +0000)]
Added the new --protocol option.

18 years agoChanged most instances of "remote_version" to "protocol_version", and
Wayne Davison [Tue, 9 Sep 2003 15:58:53 +0000 (15:58 +0000)]
Changed most instances of "remote_version" to "protocol_version", and
others to "remote_protocol".  Downgrade the protocol_version if the
remote_protocol" is lower.  Output the protocol values if the verbose
level is large enough.  Exit if the user tried to force a protocol
value that is not within the range that we can handle.  Fixed the
output of the "very old version of rsync" message to output the right
Client/Server string.

18 years agoChanged most instances of "remote_version" to "protocol_version", and
Wayne Davison [Tue, 9 Sep 2003 15:58:50 +0000 (15:58 +0000)]
Changed most instances of "remote_version" to "protocol_version", and
others to "remote_protocol".  Downgrade the protocol_version if the
remote_protocol is lower.

18 years agoChanged "remote_version" to "protocol_version".
Wayne Davison [Tue, 9 Sep 2003 15:58:48 +0000 (15:58 +0000)]
Changed "remote_version" to "protocol_version".

18 years ago*** empty log message ***
J.W. Schultz [Thu, 4 Sep 2003 05:54:20 +0000 (05:54 +0000)]
*** empty log message ***

18 years agoAllow non-dir special files to be replaced with regular
J.W. Schultz [Thu, 4 Sep 2003 05:49:50 +0000 (05:49 +0000)]
Allow non-dir special files to be replaced with regular
files and fix error that caused directories in link-dest or
compare-dest to prevent the creation of files of same path.

18 years agoCast various s->blength references inside of MIN() macros to OFF_T
Wayne Davison [Fri, 22 Aug 2003 21:26:08 +0000 (21:26 +0000)]
Cast various s->blength references inside of MIN() macros to OFF_T
so that compilers don't warn about signed/unsigned comparisons.

18 years agoWhitespace tweaks.
Wayne Davison [Fri, 22 Aug 2003 05:51:42 +0000 (05:51 +0000)]
Whitespace tweaks.

18 years agoFixed the multiplying of blength*blength so that it can't overflow
Wayne Davison [Fri, 22 Aug 2003 05:42:13 +0000 (05:42 +0000)]
Fixed the multiplying of blength*blength so that it can't overflow
before it gets cast to a uint64.

18 years agoMade the UNUSED(parameter) macro calls read a little nicer.
Wayne Davison [Fri, 22 Aug 2003 05:04:13 +0000 (05:04 +0000)]
Made the UNUSED(parameter) macro calls read a little nicer.

18 years agoMark unused vars.
Wayne Davison [Fri, 22 Aug 2003 00:31:46 +0000 (00:31 +0000)]
Mark unused vars.

18 years agoMake extra backup dirs mode 0700, not 0755.
Wayne Davison [Fri, 22 Aug 2003 00:30:46 +0000 (00:30 +0000)]
Make extra backup dirs mode 0700, not 0755.

18 years agoGot rid of a duplicate include for malloc.h and improved the "do we
Wayne Davison [Thu, 21 Aug 2003 23:54:20 +0000 (23:54 +0000)]
Got rid of a duplicate include for malloc.h and improved the "do we
need malloc.h" logic a bit more.  (Trying to prevent #warning and
#error problems on *BSD systems.)

18 years agoGot rid of signed/unsigned-comparison warning if st_rdev is signed.
Wayne Davison [Thu, 21 Aug 2003 23:46:10 +0000 (23:46 +0000)]
Got rid of signed/unsigned-comparison warning if st_rdev is signed.

18 years agoGot rid of signed/unsigned-comparison warning if st_dev is signed.
Wayne Davison [Thu, 21 Aug 2003 23:45:49 +0000 (23:45 +0000)]
Got rid of signed/unsigned-comparison warning if st_dev is signed.

18 years agoLet's try only including malloc.h if stdlib.h isn't around (and it
Wayne Davison [Thu, 21 Aug 2003 23:32:35 +0000 (23:32 +0000)]
Let's try only including malloc.h if stdlib.h isn't around (and it
exists).

18 years agoSilenced a couple compiler warnings.
Wayne Davison [Thu, 21 Aug 2003 23:28:24 +0000 (23:28 +0000)]
Silenced a couple compiler warnings.

18 years agoMention some more bug fixes.
Wayne Davison [Wed, 20 Aug 2003 23:36:45 +0000 (23:36 +0000)]
Mention some more bug fixes.

18 years agoCall setgroups(1, &gid) after setting the gid (rather than calling
Wayne Davison [Wed, 20 Aug 2003 23:25:52 +0000 (23:25 +0000)]
Call setgroups(1, &gid) after setting the gid (rather than calling
setgroups(0, NULL) before).

18 years agoUse the AVAIL_OUT_SIZE() macro in a few more places to ensure
Wayne Davison [Wed, 20 Aug 2003 10:37:53 +0000 (10:37 +0000)]
Use the AVAIL_OUT_SIZE() macro in a few more places to ensure
that the avail_out buffer is big enough to uncompress all the
compressed data.

18 years agoFixed a couple option-name typos (that had '_' instead of '-').
Wayne Davison [Mon, 18 Aug 2003 23:52:43 +0000 (23:52 +0000)]
Fixed a couple option-name typos (that had '_' instead of '-').

18 years ago- Made special exclusion-handling of '.' work in -R mode (so that we
Wayne Davison [Sun, 17 Aug 2003 21:29:11 +0000 (21:29 +0000)]
- Made special exclusion-handling of '.' work in -R mode (so that we
  can't accidentally lose the '.' dir and not transfer anything at all).
- Add a trailing '.' onto all '/'-trailing names, even '/' (fixes
  skipped deletions in -R mode from '/').
- Fixed loss of FLAG_DELETE on user-specified dir when unduplicating '.'
  (could happen on "./." or similar).

19 years agoWhitespace and indentation cleanup. There is a lot of deep
J.W. Schultz [Fri, 15 Aug 2003 00:57:27 +0000 (00:57 +0000)]
Whitespace and indentation cleanup.  There is a lot of deep
indentation mostly due to read_batch but at least it is now
consistant.

19 years agoMake --progress imply --verbose without incrementing verbosity.
J.W. Schultz [Wed, 6 Aug 2003 06:45:14 +0000 (06:45 +0000)]
Make --progress imply --verbose without incrementing verbosity.

19 years agoGot rid of unused OPT_* enums.
Wayne Davison [Tue, 5 Aug 2003 17:56:54 +0000 (17:56 +0000)]
Got rid of unused OPT_* enums.

19 years agoImproved the mkstemp error message.
Wayne Davison [Mon, 4 Aug 2003 21:03:07 +0000 (21:03 +0000)]
Improved the mkstemp error message.

19 years agoMake sure that the error message for mkstemp() includes the full
Wayne Davison [Mon, 4 Aug 2003 21:00:57 +0000 (21:00 +0000)]
Make sure that the error message for mkstemp() includes the full
path of where we're trying to create the temp file.

19 years agoInstead of ignoring SIG_CHLD, reap zombies in the signal handler.
Wayne Davison [Mon, 4 Aug 2003 18:27:27 +0000 (18:27 +0000)]
Instead of ignoring SIG_CHLD, reap zombies in the signal handler.

19 years agoChange the way we pass the --suffix option to the remote process so
Wayne Davison [Fri, 1 Aug 2003 20:19:51 +0000 (20:19 +0000)]
Change the way we pass the --suffix option to the remote process so
that a string that starts with ~ doesn't get modified.

19 years agoComplain if the --suffix value contains slashes (which is all too easy
Wayne Davison [Fri, 1 Aug 2003 19:40:31 +0000 (19:40 +0000)]
Complain if the --suffix value contains slashes (which is all too easy
to accidentally have happen if you try to specify "~" with --backup-dir).

19 years agoWe should bump the deletion_count for backed-up deleted files too.
Wayne Davison [Fri, 1 Aug 2003 08:20:53 +0000 (08:20 +0000)]
We should bump the deletion_count for backed-up deleted files too.

19 years agoMention the --backup fix.
Wayne Davison [Fri, 1 Aug 2003 08:01:15 +0000 (08:01 +0000)]
Mention the --backup fix.

19 years agoProperly handle the backup_suffix/backup_dir settings when deleting
Wayne Davison [Fri, 1 Aug 2003 07:58:47 +0000 (07:58 +0000)]
Properly handle the backup_suffix/backup_dir settings when deleting
files.  Also optimized the code that calls delete_one().  Don't
neglect to mention a file being deleted with --backup set.

19 years agoGot rid of suffix_specified and instead set backup_suffix to the
Wayne Davison [Fri, 1 Aug 2003 07:58:44 +0000 (07:58 +0000)]
Got rid of suffix_specified and instead set backup_suffix to the
correct default value for the current backup_dir mode.  Added two
new values: backup_suffix_len and backup_dir_len.  Improved some
error-message code to not output duplicate errors.

19 years agoUse the new backup_suffix_len and backup_dir_len variables. Got rid
Wayne Davison [Fri, 1 Aug 2003 07:58:41 +0000 (07:58 +0000)]
Use the new backup_suffix_len and backup_dir_len variables.  Got rid
of the suffix_specified kludge.

19 years agoClarify some --backup/--backup-dir/--suffix issues.
Wayne Davison [Fri, 1 Aug 2003 00:50:23 +0000 (00:50 +0000)]
Clarify some --backup/--backup-dir/--suffix issues.

19 years agoWhitespace and indentation fixes.
J.W. Schultz [Thu, 31 Jul 2003 09:32:15 +0000 (09:32 +0000)]
Whitespace and indentation fixes.

19 years agoNo longer needed (replaced by wildmatch).
Wayne Davison [Wed, 30 Jul 2003 06:13:47 +0000 (06:13 +0000)]
No longer needed (replaced by wildmatch).

19 years agoUpdated the exclude/include section to mention the "**" vs "*" change.
Wayne Davison [Wed, 30 Jul 2003 06:12:41 +0000 (06:12 +0000)]
Updated the exclude/include section to mention the "**" vs "*" change.

19 years agoChanged the "**" description to reflect its no-longer-buggy behavior.
Wayne Davison [Wed, 30 Jul 2003 06:12:33 +0000 (06:12 +0000)]
Changed the "**" description to reflect its no-longer-buggy behavior.

19 years agoInclude "lib/wildmatch.h", not "lib/fnmatch.h" or <fnmatch.h>.
Wayne Davison [Wed, 30 Jul 2003 06:12:31 +0000 (06:12 +0000)]
Include "lib/wildmatch.h", not "lib/fnmatch.h" or <fnmatch.h>.

19 years agoGot rid of test for fnmatch.
Wayne Davison [Wed, 30 Jul 2003 06:12:29 +0000 (06:12 +0000)]
Got rid of test for fnmatch.

19 years agoCall wildmatch(), not fnmatch().
Wayne Davison [Wed, 30 Jul 2003 06:12:27 +0000 (06:12 +0000)]
Call wildmatch(), not fnmatch().

19 years agoChanged lib/fnmatch.o to lib/wildmatch.o.
Wayne Davison [Wed, 30 Jul 2003 06:12:25 +0000 (06:12 +0000)]
Changed lib/fnmatch.o to lib/wildmatch.o.

19 years agoMade the list of exclude/include changes more prominent and clear.
Wayne Davison [Sat, 26 Jul 2003 18:13:38 +0000 (18:13 +0000)]
Made the list of exclude/include changes more prominent and clear.

19 years agoSome superficial tweaks I made while reading through the io.c code.
Wayne Davison [Sat, 26 Jul 2003 17:55:07 +0000 (17:55 +0000)]
Some superficial tweaks I made while reading through the io.c code.

19 years agoAdded one more test.
Wayne Davison [Mon, 14 Jul 2003 15:46:34 +0000 (15:46 +0000)]
Added one more test.

19 years agoUpdated for latest character-class change.
Wayne Davison [Mon, 14 Jul 2003 15:13:31 +0000 (15:13 +0000)]
Updated for latest character-class change.

19 years agoMake sure that no character class can match a '/'.
Wayne Davison [Mon, 14 Jul 2003 15:12:59 +0000 (15:12 +0000)]
Make sure that no character class can match a '/'.

19 years agoOptimized show_progress() to reduce the calls to gettimeofday() when
Wayne Davison [Tue, 8 Jul 2003 16:54:53 +0000 (16:54 +0000)]
Optimized show_progress() to reduce the calls to gettimeofday() when
am_server is set.  No need to check do_progress here anymore, since
we aren't called if do_progress isn't set.

19 years agoOnly call show_progress() and end_progress() if do_progress is set.
Wayne Davison [Tue, 8 Jul 2003 16:49:10 +0000 (16:49 +0000)]
Only call show_progress() and end_progress() if do_progress is set.

19 years agoChanged "./0123456789" to just ".0123456789".
Wayne Davison [Mon, 7 Jul 2003 19:37:58 +0000 (19:37 +0000)]
Changed "./0123456789" to just ".0123456789".

19 years agoI decided to go with the slightly simpler logic Thorild Selen suggested
Wayne Davison [Mon, 7 Jul 2003 18:37:38 +0000 (18:37 +0000)]
I decided to go with the slightly simpler logic Thorild Selen suggested
in a subsequent email.

19 years agoImproved deficiencies in the hostname-vs-address check (reintroduced in the
Wayne Davison [Mon, 7 Jul 2003 18:25:01 +0000 (18:25 +0000)]
Improved deficiencies in the hostname-vs-address check (reintroduced in the
last revision) based on the suggestions of Thorild Selen.

19 years agoCommented-out a test that wasn't consistent across all platforms.
Wayne Davison [Mon, 7 Jul 2003 07:28:02 +0000 (07:28 +0000)]
Commented-out a test that wasn't consistent across all platforms.

19 years agoSilence some compiler warnings on HP-UX.
Wayne Davison [Mon, 7 Jul 2003 07:22:08 +0000 (07:22 +0000)]
Silence some compiler warnings on HP-UX.

19 years agoA few more tests.
Wayne Davison [Mon, 7 Jul 2003 07:10:40 +0000 (07:10 +0000)]
A few more tests.

19 years agoImproved the summary output to use correct English for all counts.
Wayne Davison [Mon, 7 Jul 2003 07:08:24 +0000 (07:08 +0000)]
Improved the summary output to use correct English for all counts.

19 years agoDon't treat "[:" as the start of a named set if there's no ":]".
Wayne Davison [Mon, 7 Jul 2003 07:07:16 +0000 (07:07 +0000)]
Don't treat "[:" as the start of a named set if there's no ":]".

19 years agoAdded a few more items to the tests.
Wayne Davison [Sun, 6 Jul 2003 18:54:08 +0000 (18:54 +0000)]
Added a few more items to the tests.

19 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.

19 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.

19 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.

19 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.

19 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.

19 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.

19 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 '!'.

19 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.

19 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.

19 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).

19 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.

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

19 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.

19 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.

19 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.

19 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.

19 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.

19 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 "*".

19 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.

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

19 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).

19 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).

19 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.

19 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.

19 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).

19 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.

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

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

19 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.

19 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.

19 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".

19 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.

19 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.

19 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.

19 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.

19 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.

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