Wayne Davison
87c0f9d6b4
Added --log-file and several logfile_* support variables.
2006-05-09 18:31:03 +00:00
Wayne Davison
1cfcb8af11
Revised the logic for when to call log_exit() to handle the
...
new --log-file option.
2006-05-09 18:31:00 +00:00
Wayne Davison
56aaa4c44c
Tweaked the comment about log-message categories.
2006-05-09 18:30:57 +00:00
Wayne Davison
4b6a7bd706
Got rid of an unused variable.
2006-05-09 18:00:15 +00:00
Wayne Davison
5bc933a285
Mention the latest bugfix and improved an old description.
2006-05-09 17:46:04 +00:00
Wayne Davison
01d124d9e2
If the --partial-dir value is an absolute path and we use a file in
...
it as an alternate basis file, make sure that we delete it when the
associated destination file is successfully updated.
2006-05-09 17:38:47 +00:00
Wayne Davison
58a06312a4
Improved the doc for --existing and --ignore-existing.
2006-05-05 20:41:17 +00:00
Wayne Davison
c2c8db9195
- Moved the sanitizing of the partial_dir value here from options.c.
...
- Call die_on_unsafe_path() in a few needed places.
- Handle the server-excluded checks for an absolute partial_dir and
the --*-dest options.
2006-05-05 16:00:33 +00:00
Wayne Davison
d1e6b0e225
- Added some calls to die_on_unsafe_path() to the path-sanitizing code.
...
- Moved the sanitizing of the partial_dir value into main.c.
2006-05-05 15:58:44 +00:00
Wayne Davison
8936367695
- Added a call to die_on_unsafe_path() to handle_partial_dir().
...
- Fixed some strange slash handling in partial_dir_fname().
2006-05-05 15:54:20 +00:00
Wayne Davison
8517e9c10a
A few minor changes to match the recent --help changes in
...
options.c.
2006-05-05 06:24:25 +00:00
Wayne Davison
fcecb70b1d
- Don't check HAVE_LINK directly, use SUPPORT_HARD_LINKS instead.
...
- Updated a few items in the --help text.
2006-05-05 06:16:22 +00:00
Wayne Davison
582c1589f3
Call the new die_on_unsafe_path() function in a few places.
2006-05-05 05:57:48 +00:00
Wayne Davison
cb15269eb0
Call the new die_on_unsafe_path() function in a couple spots.
2006-05-05 05:56:37 +00:00
Wayne Davison
f47807900b
Added a new function named die_on_unsafe_path(). This is used
...
by a non-chroot daemon to ensure that a user-supplied path does
not contain an unsafe symlink element.
2006-05-05 05:55:40 +00:00
Wayne Davison
40410a38bc
- Don't check HAVE_LINK directly, use SUPPORT_HARD_LINKS instead.
...
- Tweaked Paul's recent change just a tad.
- Fixed the output of --compare-dest when SUPPORT_HARD_LINKS is
not defined.
2006-05-05 05:53:36 +00:00
Wayne Davison
6b54a688cf
Cast file->mode to an int when printing it via %o.
2006-05-05 05:40:17 +00:00
Paul Green
b59dc8d5ae
Fix generator.c to avoid calling do_link() on systems that do not support
...
the link() function. The changes test OK on SuSE Linux and on my own
Stratus VOS system, but I would be grateful if other folks could
double-check this change. Paul G.
2006-05-04 19:00:37 +00:00
Wayne Davison
45ba206a94
A few more improvements.
2006-05-04 02:42:55 +00:00
Wayne Davison
2220ec0a69
A few minor twiddles.
2006-05-04 02:38:58 +00:00
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