Wayne Davison
5fdbb87df8
Added/clarified the latest bug-fix info.
2006-05-04 02:29:58 +00:00
Wayne Davison
f1c9bcd0fc
Cast the enum in rwrite() when calling send_msg().
2006-05-03 16:58:36 +00:00
Wayne Davison
3723548ded
Use send_msg() when forwarding a log message, not io_multiplex_write().
...
This allows send_msg() to decide if the message should be sent right
away, or should be deferred.
2006-05-03 16:17:49 +00:00
Wayne Davison
12ccc73ae7
Changed read_msg_fd() to always use send_msg()/rwrite() instead of
...
sometimes calling io_multiplex_write()/rwrite() or msg_list_add().
This simplifies the code that does the defer_forwarding_messages
checking because it can now be done in just one place, in send_msg()
(because rwrite() also calls send_msg() now when forwarding a msg).
2006-05-03 16:17:46 +00:00
Wayne Davison
ee8d9636d1
A small optimization to the new code in msg2sndr_flush().
2006-05-03 06:32:59 +00:00
Wayne Davison
38de2866e5
Made log_init() call timestring() instead of just localtime() prior to a
...
chroot (note that timestring() makes use of localtime() plus strftime()).
2006-05-03 06:11:11 +00:00
Wayne Davison
bdac7621ee
Improved the last bugfix description.
2006-05-03 05:37:00 +00:00
Wayne Davison
8ac4774675
Mention the fix for the "unexpected tag 3" bug.
2006-05-03 05:22:01 +00:00
Wayne Davison
229e1950ed
Fixed a bug where deferred MSG_INFO/MSG_ERROR/MSG_LOG messages were
...
not being forwarded from the generator to the sender using rwrite()
(and MSG_LOG messages didn't need to be deferred at all).
2006-05-03 05:19:01 +00:00
Wayne Davison
93977bca10
Added module_dirlen now that utils.o needs it.
2006-05-03 00:49:31 +00:00
Wayne Davison
c2a2147a5b
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
...
need to ensure that it doesn't follow any unsafe symlinks.
- Got rid of startdir_depth code (in favor of util.c's curr_dir_depth).
- Use the new calling syntax for sanitize_path().
2006-05-03 00:48:32 +00:00
Wayne Davison
73173af955
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
...
need to ensure that it doesn't follow any unsafe symlinks.
- Don't sanitize the string of a symlink -- just use it verbatim.
2006-05-03 00:48:29 +00:00
Wayne Davison
a2248aea2e
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
...
need to ensure that it doesn't follow any unsafe symlinks.
- Use the new calling syntax for sanitize_path().
2006-05-03 00:48:26 +00:00
Wayne Davison
a8167c6611
- Added curr_dir_depth, a variable that keeps track of the depth past
...
the module root when a sanitizing daemon is running.
- Use the new calling syntax for sanitize_path().
- Updated count_dir_elements() to not count a . component.
- Improved sanitize_path() so that it can take a symlink target string
and combine it with the symlink's name when the target is relative.
When working with a symlink, the routine also returns NULL if any ..
elements try to escape past the module root.
- The new routine safe_stat(), is used when sanitizing paths (i.e. when
the daemon does not have chroot enabled). This manually follows a
chain of symlinks, ensuring they don't try to escape the module.
2006-05-03 00:48:23 +00:00
Wayne Davison
91f4b31fe1
Use the new calling syntax for sanitize_path().
2006-05-03 00:48:20 +00:00
Wayne Davison
cad8f6f980
Tweaked some variable names in readlink_stat() and link_stat().
2006-05-02 19:52:28 +00:00
Wayne Davison
d8bf7ea8e9
Mention the latest bug-fixes.
2006-05-02 17:38:34 +00:00
Wayne Davison
d8f28a663c
Test the new symlink sanitizing fix by using ::test-scratchdir/to
...
as the destination and including a symlink with a leading "../" .
2006-05-02 17:13:11 +00:00
Wayne Davison
2ae4126a9e
Tweaked our test config file to include transfer logging that
...
includes %i, and to have a test-scratchdir module.
2006-05-02 17:11:42 +00:00
Wayne Davison
6f1c2aab43
Moved the sanitizing of a symlink's link string here from flist.c.
2006-05-02 16:52:51 +00:00
Wayne Davison
e71c1c26df
Fixed a problem in the --link-dest processing where -I (--ignore-times)
...
or --size-only could adversely affect our ability to find identical
files to hard-link.
2006-05-02 16:46:48 +00:00
Wayne Davison
b24498ec2c
Set a new variable, startdir_depth, to indicate how deep the
...
destination dir is in a daemon module's path.
2006-05-02 16:42:20 +00:00
Wayne Davison
b2d4639543
Got rid of the sanitizing of a symlink's link string because it
...
is happening too early to work correctly (before we know what
our destination-directory's depth in the module will be).
2006-05-02 16:36:07 +00:00
Wayne Davison
d3ef985954
We can't check the --*-dest args against the server filter rules
...
here because we don't know what the args are going to be relative
to yet.
2006-04-28 17:34:53 +00:00
Wayne Davison
7c58c99184
We sanitize the --*-dest args here so they can be relative to the
...
destination directory.
2006-04-28 16:58:20 +00:00
Wayne Davison
ad77db8b71
Moved the sanitizing of the --*-dest args into main.c.
2006-04-28 16:57:39 +00:00
Wayne Davison
e7c67065c0
Updated the FSF's address to an even newer one.
2006-04-25 23:51:12 +00:00
Wayne Davison
0f78b81511
- Updated the address for the FSF in the opening comment.
...
- Standardized the format of the opening comment, including adding a
brief description of what's in the file for those that lacked it.
- Added some missing copyright lines.
- Some minor whitespace tweaks (in a few of the files).
2006-04-25 20:23:34 +00:00
Wayne Davison
d051056f92
Tweaked some whitespace to match the latest version from autoconf.
2006-04-24 23:43:45 +00:00
Wayne Davison
a4a38e8df0
Incremented the version to 2.6.9cvs.
2006-04-24 22:24:40 +00:00
Wayne Davison
60ef8ed128
Rolled over the news file for the next version.
2006-04-24 22:23:56 +00:00
Wayne Davison
8aa0dc7838
Updated to the version dated 2006-02-23.
2006-04-24 22:20:10 +00:00
Wayne Davison
4177f09b83
Preparing for release of 2.6.8
v2.6.8
2006-04-22 15:39:57 +00:00
Wayne Davison
acaadb55c1
Mention the phase-unknown changes.
2006-04-21 16:57:13 +00:00
Wayne Davison
b88c2e8ffe
- Got rid of the (mostly useless) io_read_phase and io_write_phase
...
variables. In the future it might be useful to get rsync to
mention what kind of a message it was trying to write, but the
'phase "unknown"' output was ubiquitous and confusing.
- Got rid of the completely unused write_int_named() function.
2006-04-21 16:40:19 +00:00
Wayne Davison
f4ea5f47dc
Got rid of the setting of io_write_phase.
2006-04-21 16:36:30 +00:00
Wayne Davison
62ae66d43b
Mention the security fix for patches/xattrs.diff.
2006-04-21 00:05:30 +00:00
Wayne Davison
8641d28740
Improved the --owner and --group sections.
2006-04-18 18:58:07 +00:00
Wayne Davison
de3438407c
Twiddle the trailing output in non-live mode.
2006-04-18 06:43:17 +00:00
Wayne Davison
434764269c
Fixed a typo in the new code.
2006-04-18 06:38:58 +00:00
Wayne Davison
ba212fe0b6
- Fixed --copy-dest behavior on a system where CAN_HARDLINK_SYMLINK
...
and/or CAN_HARDLINK_SPECIAL is not defined.
- Changed --link-dest behavior on such systems to work just like
--copy-dest for the non-hard-linkable files.
2006-04-18 05:48:46 +00:00
Wayne Davison
5f93b4d35e
A slight improvement to the logic in try_dests_non().
2006-04-18 05:24:02 +00:00
Wayne Davison
f8db4a8ab4
Mention the latest bugfix.
2006-04-17 19:55:16 +00:00
Wayne Davison
398612ba07
Fixed a bug where special files were not getting hard-linked via
...
the --link-dest option.
2006-04-17 19:53:41 +00:00
Wayne Davison
77b013afb5
Don't use the -C option to make (since it's not portable).
2006-04-17 18:15:02 +00:00
Wayne Davison
08c0cd8a42
Mention the latest fixes.
2006-04-17 18:00:09 +00:00
Wayne Davison
1c6e9dfabc
Use the new CAN_HARDLINK_SYMLINK and CAN_HARDLINK_SPECIAL defines
...
from configure instead of the old (and not quite correct) run-time
checking.
2006-04-17 17:56:10 +00:00
Wayne Davison
0037bf23fc
Added two new checks: 1. Does link() hard-link symlinks (not the
...
referent)? 2. Does link() hard-link a fifo?
2006-04-17 17:53:47 +00:00
Wayne Davison
285edc9169
Don't use -C with make because it's not portable.
2006-04-17 17:37:13 +00:00
Wayne Davison
c4aa84ad50
Got rid of the unused REPLACE_INET_NTOA and REPLACE_INET_ATON checks.
2006-04-13 16:54:24 +00:00