Wayne Davison
fddf529df9
Mention the new RSYNC_ARGn environment variables for pre-xfer exec.
2006-01-12 19:24:25 +00:00
Wayne Davison
141c62659e
We now send all the option args to the pre-exec command.
2006-01-12 19:15:31 +00:00
Wayne Davison
61e16468f0
We need to call clearerr() when getc() returns EOF with errno == EINTR.
2006-01-06 22:20:07 +00:00
Wayne Davison
b74b3d538e
+ Changed two buffers to use BIGPATHBUFLEN instead of MAXPATHLEN+512.
...
+ Changed a strncpy() call into a (more appropriate) memcpy() call.
+ Made the ellipsis[] string static because some older compilers may
not like the dynamic initialization of a character string.
+ Expanded some 1-line "case ... break;" statements onto separate
lines.
2006-01-05 02:29:16 +00:00
Wayne Davison
d3db3eef1b
Document the new "dir/***" feature.
2006-01-02 17:46:32 +00:00
Wayne Davison
90d5b12e72
Added a test for the new "dir/***" feature.
2006-01-02 17:46:27 +00:00
Wayne Davison
955a3a3ded
We now test all the patterns using both a normal wildtest run and
...
a wildtest run with various -x and -e options.
2006-01-02 17:46:24 +00:00
Wayne Davison
aec75b037b
Added -x and -e options, which are used to exercise wildmatch_array().
2006-01-02 17:46:21 +00:00
Wayne Davison
e5daa2731a
We use the new wildmatch_array() and litmatch_array() functions to
...
make our include/exclude code easier to read and maintain, and to
eliminate a buffer copy when handling an absolute-path pattern
(which eliminated the full_name[] buffer). Also added handling
for the new MATCHFLG_WILD3_SUFFIX define that allows a string that
ends with "dir/***" to match the "dir" as well as its contents.
2006-01-02 17:46:18 +00:00
Wayne Davison
390621a7ab
Added a new function, wildmatch_array(), that lets the caller pass
...
the text-string as an array of strings (with a terminating NULL
pointer at the end). Also added litmatch_array(), which does a
literal match (no wildcards or special chars) against an array of
strings.
2006-01-02 17:46:15 +00:00
Wayne Davison
478bb47c40
The latest prototypes.
2006-01-02 17:46:12 +00:00
Wayne Davison
685517abd1
Added MATCHFLG_WILD3_SUFFIX define, shuffling a few others to put
...
it in a nice spot.
2006-01-02 17:46:09 +00:00
Wayne Davison
515afe7cf1
Mention dont-compress fix.
2005-12-30 07:24:17 +00:00
Wayne Davison
ec497df1a0
Optimized set_compression() to remove the per-file strdup(), strlower(),
...
and free() calls (it now uses iwildmatch()).
2005-12-30 07:19:16 +00:00
Wayne Davison
8e74463643
- Added a new public function, iwildmatch(), which will treat all
...
upper-case letters in the "text" as lower-case.
- Renamed variable "ch" -> "p_ch" and "prev" -> "prev_ch".
- Added variable "t_ch" to hold the current *text value.
- Return ABORT_ALL if we reach the end of the text string with
more pattern to match.
2005-12-30 07:12:48 +00:00
Wayne Davison
933d1dfd0f
Added a prototype for iwildmatch().
2005-12-30 07:09:34 +00:00
Wayne Davison
0fe987e226
Fixed a bug in set_compression() where the default dont-compress
...
patterns (e.g. *.gz) would not match a pathname containing a slash.
2005-12-30 06:03:40 +00:00
Wayne Davison
770de8994e
- Renamed match_start -> anchored_match.
...
- Twiddled one comment and added another.
- Twiddled the placement of two else statements.
2005-12-24 08:00:12 +00:00
Wayne Davison
37cf7b4191
Improved the usage info in the opening comment.
2005-12-19 16:57:55 +00:00
Wayne Davison
1a3ef40da9
A few extra directory-style matching tests.
2005-12-19 02:30:59 +00:00
Wayne Davison
0314302e9c
Added an anchored exclude to a filter file.
2005-12-19 02:23:57 +00:00
Wayne Davison
9639c71842
+ Put --existing back in the main option summary.
...
+ Improved the discussion of wildcard characters.
2005-12-19 02:18:16 +00:00
Wayne Davison
d2da915cd0
Made --existing the main option, with --ignore-non-existing
...
as its alias.
2005-12-19 01:59:00 +00:00
Wayne Davison
e725abcf4e
Added a comment, improved a comment, tweaked the recursive function's
...
name, tweaked the arg names to wildmatch(), and tweaked the style of
the "else" statements when they follow a brace.
2005-12-18 19:40:50 +00:00
Wayne Davison
de01941274
Tweaked the name of the first arg to wildmatch().
2005-12-18 19:38:47 +00:00
Wayne Davison
d802ea54da
Fixed one config-file reference that was misspelled.
2005-12-18 15:48:00 +00:00
Wayne Davison
c81a20fb7a
Tweaked the debug output for cvs_filter_list and server_filter_list.
2005-12-17 21:03:25 +00:00
Wayne Davison
6bf32edb8c
Return RERR_SIGNAL1 from sigusr1_handler().
2005-12-16 23:48:34 +00:00
Wayne Davison
4a50a2176e
Added RERR_SIGNAL1's message and tweaked ERR_SIGNAL.
2005-12-16 23:48:31 +00:00
Wayne Davison
9e90555fd1
Added RERR_SIGNAL1 to separate SIGUSR1 from the rest of the
...
signals that return RERR_SIGNAL.
2005-12-16 23:48:28 +00:00
Wayne Davison
2067ec7342
Mentioned the auto-protect rule for --backup.
2005-12-16 17:20:22 +00:00
Wayne Davison
c2c5682c0b
If the user specifies --backup with --delete (but without --backup-dir
...
and --delete-excluded), append a protect-filter rule onto the list of
filter rules. We run this on both the client and server side so that
an older client talking to a newer server still gets the protection
rule. (This rule will not cause compatibility problems with older
versions of rsync due to the graceful way that a protect rule turns
into an exclude rule if it needs to be sent to an older server.)
2005-12-16 17:18:29 +00:00
Wayne Davison
4c72f27dd9
Document the new auto-added protect filter-rule when using --backup
...
with --delete (but without --backup-dir and --delete-excluded).
2005-12-16 17:18:26 +00:00
Wayne Davison
36d8d1a626
- Added a comment about configure figuring out the default user
...
and group to use in daemon mode.
- Belatedly updated the version of popt that comes with rsync.
- Updated the Mac OS X info.
2005-12-16 16:57:26 +00:00
Wayne Davison
3447d61048
Fixed a bug in the hard-linking of a group of fifos/devices in a
...
transfer where the leader got hard-linked to a --link-dest item.
2005-12-16 04:02:54 +00:00
Wayne Davison
a3887c2644
Improved the RERR_SIGNAL message to include all possible signals.
2005-12-16 00:18:41 +00:00
Wayne Davison
8a1f3153b9
Mention the improvements in the comare-dest/link-dest/copy-dest handling.
2005-12-15 23:00:23 +00:00
Wayne Davison
165dd4a636
Improved the tests we run to test more output variations and to work
...
with the new way link-dest handles symlinks.
2005-12-15 23:00:05 +00:00
Wayne Davison
541b23d144
When compare-dest/link-dest/copy-dest are in effect, we now check
...
if the file we're about to hard-link to the leader is present in
one of the dest dirs -- if it is, we adjust the text we output
accordingly.
2005-12-15 23:00:02 +00:00
Wayne Davison
7987ece7cc
The ITEM_NO_DEST_AND_NO_UPDATE define is no longer needed.
2005-12-15 22:59:59 +00:00
Wayne Davison
48224e4c43
Improved the compare-dest/link-dest/copy-dest code to make it more
...
readable, to make it output properly in double-verbose mode, and
to allow the hard-linking of symlinks and devices (if supported by
the OS).
2005-12-15 22:59:56 +00:00
Wayne Davison
6d4ecad122
- Eliminate an all-dot itemization for a locally-copied file.
...
- Got rid of some redundant output in maybe_log_item().
2005-12-15 22:59:53 +00:00
Wayne Davison
1578919c37
Improved an old bullet point.
2005-12-15 21:23:44 +00:00
Wayne Davison
10a1d6b4a0
Use AC_SEARCH_LIBS() instead of AC_CHECK_LIB() to figure out if
...
we need to include libresolv or not.
2005-12-14 22:54:54 +00:00
Wayne Davison
2b7e12924d
Mention that the MD4 password protection is weaker than
...
previously thought.
2005-12-14 22:14:26 +00:00
Wayne Davison
82f0c63e8a
Parse single- and double-quotes in the --rsh/-e option (and RSYNC_RSH).
2005-12-14 22:00:01 +00:00
Wayne Davison
5d9530fe47
Mention new quote-parsing for the --rsh/-e and RSYNC_RSH handling.
2005-12-14 21:59:11 +00:00
Wayne Davison
37f35d89d1
Made msg_list_push() static and renamed it to msg_list_flush().
2005-12-08 21:19:22 +00:00
Wayne Davison
08c88178aa
Tweaked the msg_list code so that the head and tail pointers
...
are contained by a structure.
2005-12-08 21:01:38 +00:00
Wayne Davison
0fb2fc4a1d
Fixed a typo in a comment.
2005-12-08 16:12:25 +00:00