Wayne Davison
487094a0d7
Allow the --itemize-changes (-i) option to be repeated to indicate
...
that unchanged files should also be itemized.
2006-01-20 18:49:07 +00:00
Wayne Davison
f608ebb106
Got rid of unused function u_strcmp().
2006-01-20 00:14:04 +00:00
Wayne Davison
87001ac6c2
Improved a sentence.
2006-01-19 21:21:28 +00:00
Wayne Davison
ede1f0ebc9
The code in send_file_list() needed a little more improvement to
...
handle --relative really well:
- We must set "is_dot_dir" when we strip off a trailing "/" or "/.".
- If a trailing "/" or "/." caused us to treat a symlink as a dir,
we now pass our stat() info down to make_file() so that it will
always treat the cleaned-up name as a dir too.
- We must not strip a leading "/".
- Improved the check for ".." elements in the implied dirs.
2006-01-19 21:16:44 +00:00
Wayne Davison
b435d7174c
Added a new arg to the make_file() call.
2006-01-19 21:16:40 +00:00
Wayne Davison
2a59d2cc31
Another bugfix.
2006-01-19 19:05:49 +00:00
Wayne Davison
b8595e609a
In delete_in_dir(), skip a directory that isn't really a directory on
...
the local disk (can easily happen if --dry-run was specified).
2006-01-19 18:53:48 +00:00
Wayne Davison
d37bc73a48
Mention the changes made in recent checkins.
2006-01-19 07:34:41 +00:00
Wayne Davison
1902a7652f
When --relative is active, simply trim off trailing slashes and
...
dot dirs. Also, reject a ".." dir if it would be sent as part
of the relative path.
2006-01-19 01:43:10 +00:00
Wayne Davison
6ab423a5b6
- Fixed the --help and --version output to avoid using embedded
...
newlines (which are no longer allowed in rprint()).
- Updated the Copyright info for 2006.
2006-01-17 04:26:12 +00:00
Wayne Davison
c2be690cc6
Got rid of a few empty lines.
2006-01-17 02:16:57 +00:00
Wayne Davison
f5a49d0e44
Got rid of a now-unused static variable.
2006-01-17 01:26:35 +00:00
Wayne Davison
03e23e0730
A few more items to check for, including libcharset.h, langinfo.h,
...
locale_charset(), and nl_langinfo().
2006-01-15 14:52:12 +00:00
Wayne Davison
eb598fac4f
- Improved get_local_name() using ideas from Matt McCutchen's
...
version: lots more comments, and a "local name" copy now
does a chdir to the parent dir of the destination file.
- Moved the setlocale() call prior to the parse_arguments() call.
2006-01-15 07:11:23 +00:00
Wayne Davison
be0602ec3c
- We now filter all rwrite() output when it goes out to the terminal
...
to make sure that it contains readable characters.
- Got rid of the buf[len] = '\0' in rwrite().
- Call f_name() with revised args (which also replaces f_name_to()).
2006-01-14 20:26:28 +00:00
Wayne Davison
6cbde57d88
Call f_name() with revised args (which also replaces f_name_to()).
2006-01-14 20:26:23 +00:00
Wayne Davison
5e4ff5f9c5
Merged f_name() with f_name_to().
2006-01-14 20:26:20 +00:00
Wayne Davison
18e1289f27
Defined new FNAME logcode enum (only used on the client side when
...
logging a filename).
2006-01-14 20:26:17 +00:00
Wayne Davison
99aaa6ca25
Fixed a couple out-of-memory function-name strings in make_file().
2006-01-14 17:19:12 +00:00
Wayne Davison
24172e4b2f
If the --human-readable option is in effect, output the size of
...
each file in human-readable units instead of a raw byte count.
2006-01-14 17:10:52 +00:00
Wayne Davison
beaf495400
Added a "continue" missing from a recent change.
2006-01-14 00:29:50 +00:00
Wayne Davison
79f48760f3
Added --enable-iconv and cleaned up the other enable/disable options.
2006-01-13 23:05:16 +00:00
Wayne Davison
785abd4802
Got rid of the safe_fname() function and the calls to it.
2006-01-13 22:06:34 +00:00
Wayne Davison
0ee6ca9800
Got rid of calls to the (soon to vanish) safe_fname() function.
2006-01-13 22:06:31 +00:00
Wayne Davison
7543020807
Fixed a bug in the explode_mode code that was causing a crash
...
on BSD systems.
2006-01-13 21:40:26 +00:00
Wayne Davison
47b50b9bd0
We now use lib/compat.o when building wildtest.
2006-01-13 21:38:43 +00:00
Wayne Davison
45c49b52a4
Got rid of calls to (the soon to vanish) safe_fname() function.
2006-01-13 21:17:09 +00:00
Wayne Davison
0ee32c62d3
Improved a couple sentences.
2006-01-13 21:10:11 +00:00
Wayne Davison
70e98a4348
Changed RSYNC_ARGn to RSYNC_ARG#.
2006-01-12 19:35:54 +00:00
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