Wayne Davison
dfd7d541b0
Made compare_dest non-static.
2005-01-15 20:54:25 +00:00
Wayne Davison
ded4daf049
Some inplace-checking code should have been inside the #ifdef that
...
handles the case where --inplace cannot be supported.
2005-01-15 20:22:54 +00:00
Wayne Davison
361428213b
Simplified the logic in allow_access() and tweaked some whitespace.
2005-01-15 20:06:48 +00:00
Wayne Davison
12a79db2f6
Simplified one "if" that checks if one of the --FOO-dest options
...
was specified.
2005-01-15 04:40:06 +00:00
Wayne Davison
e8b155a3be
Improved the docs on --delete and --delete-after.
2005-01-14 19:49:35 +00:00
Wayne Davison
716b46c550
- We now remove the DEST~old~ dir instead of renaming it to DEST~new~.
...
- Improved the usage message and added an introductory comment.
2005-01-14 19:23:20 +00:00
Wayne Davison
9d954dca8c
Make sure that the presence of a partial-dir file is noted, even
...
if --whole-file is in effect. Also needed to force statret to 0
when using a partial-dir file.
2005-01-14 18:20:46 +00:00
Wayne Davison
7162c65df7
We also need the "name pipe" from the generator to the receiver
...
when --partial-dir was specified.
2005-01-14 18:18:31 +00:00
Wayne Davison
bd9fca4708
For the "unexpected tag" or "multiplexing overflow" messages, we
...
now output who_am_i() so we know who had the problem.
2005-01-14 18:17:32 +00:00
Wayne Davison
14d496cc8b
Aid forward-compatibility in the include/exclude syntax by putting
...
a "- " in front of any name that starts with a '+' or a '-' and would
otherwise be unprefixed (the old code only did this if the '+' or '-'
was followed by a space).
2005-01-13 22:01:56 +00:00
Wayne Davison
106a8ad918
- Allow multiple source paths to be specified (and checked).
...
- Allow spaces and a few other extra chars in file names.
- For safety, disallow any option that takes an arg. This should
be improved in the future because it blocks options such as
--block-size=N, but without this rule the user could specify
something like --files-from=FILE or --backup-dir=DIR and have
it affect files outside the desired SUBDIR restriction.
- Switched to SSH_CONNECTION from the deprecated SSH_CLIENT.
- Strip "::ffff:" from the start of an IP from SSH_CONNECTION.
2005-01-12 19:20:07 +00:00
Wayne Davison
44a82a175d
This is Joe Smith's rrsync (restricted rsync) perl script.
2005-01-12 18:48:26 +00:00
Wayne Davison
99248631aa
A simple Makefile.
2005-01-11 18:37:37 +00:00
Wayne Davison
2836ee9b02
A debug program to help diagnose data-transfer corruption problems.
2005-01-11 18:36:31 +00:00
Wayne Davison
d82773ffe9
Fixed the file_checksum1() function that is compiled only when
...
TEST_MDFOUR is defined: it did not have the fix that the main
rsync code got back in protocol 27 to properly handle files
that are a multiple of 64-bytes long.
2005-01-10 20:52:08 +00:00
Wayne Davison
ec626b3f0e
Two more fixes.
2005-01-10 10:08:59 +00:00
Wayne Davison
997d9ea67f
Added a "overwriting_basis" arg to finish_transfer().
2005-01-10 10:03:12 +00:00
Wayne Davison
aec6b9f86f
- Call finish_transfer() with its new arg. This ensures that we only
...
create a backup file if we're about to overwrite the basis file.
- Only clear make_backups for the redo phase if partial_dir isn't set.
2005-01-10 10:03:10 +00:00
Wayne Davison
d45898df80
Call finish_transfer() with its new arg.
2005-01-10 10:03:06 +00:00
Wayne Davison
b0da4b23a0
Moved the reading of the final MSG_DONE message here from main.c
...
(this message comes from the receiver). This ensures that any
redo-pass files and delete-after processing are known to be done
prior to the start of our hard-link and dir-time-munging loops.
2005-01-10 00:31:55 +00:00
Wayne Davison
bf18b7ca67
Moved the reading of the final MSG_DONE message from here to
...
generator.c (the message comes from the receiver). This ensures
that any redo-pass files and delete-after processing are known to be
done prior to the start of the hard-link and dir-time-munging loops.
2005-01-10 00:31:55 +00:00
Wayne Davison
cc17fbfe7d
Mention new atomic-rsync script.
2005-01-06 17:15:36 +00:00
Wayne Davison
fa170b2e5a
A perl script to effect an atomic transfer of a set of files.
2005-01-06 17:13:31 +00:00
Wayne Davison
c61ba345f2
Decided that a cross-compling configure should default the
...
chown-follows-symlinks check to "yes".
2005-01-03 23:01:19 +00:00
Wayne Davison
ae09fb1f91
Improved the last addition.
2005-01-03 22:49:14 +00:00
Wayne Davison
70a2c84cd2
If lchown() is not available, we only skip the call to chown() for a
...
symlink if it will try to follow the symlink (as a normal OS should).
2005-01-03 22:47:55 +00:00
Wayne Davison
21524e3083
- Added a test to see if chown() follows symlinks.
...
- Check for getpgrp() and tcgetpgrp().
2005-01-03 22:42:55 +00:00
Wayne Davison
fbe2aba2e7
Mention lchown() fix.
2005-01-03 21:07:02 +00:00
Wayne Davison
a41a1e8718
If there is no lchown(), don't try to set the user & group of a symlink.
2005-01-03 21:05:39 +00:00
Wayne Davison
051547603a
Moved kluged (conditional) define of lchown from rsync.h to syscall.c.
2005-01-03 21:03:33 +00:00
Wayne Davison
80a25bb880
Backed out changes to send_deflated_token() that surrounded the
...
call to deflate(..., Z_INSERT_ONLY) -- the underlying bug was
caused by the zlib code not handling Z_INSERT_ONLY in the case
where the server has disabled compression.
2005-01-02 09:08:59 +00:00
Wayne Davison
0301b334c7
Fixed Z_INSERT_ONLY support in deflate_stored().
2005-01-02 09:03:44 +00:00
Wayne Davison
1492b4b2b2
The deflate_stored() function needed to support Z_INSERT_ONLY.
2005-01-02 08:49:47 +00:00
Wayne Davison
5b7bcac260
In send_deflated_token(), the section that handles "token != -2"
...
now breaks up the calls to deflate() into CHUNK_SIZE chunks, just
like the other sections of the code.
2005-01-02 00:55:55 +00:00
Wayne Davison
7fcbf9e43e
- Use an int32 for the each block-size variable.
...
- Fixed a problem in send_deflated_token() where the data we are
compressing might not finish processing in one call.
2005-01-01 21:08:20 +00:00
Wayne Davison
6c495e0da4
- Use an int32 for the each block-size variable.
...
- Fixed a potential overflow in the map_size calculation.
2005-01-01 21:08:17 +00:00
Wayne Davison
a06b419d42
Use an int32 for the each block-size variable.
2005-01-01 21:08:14 +00:00
Wayne Davison
a255c592e8
- Use an int32 for the each block-size variable.
...
- Improved the layout and error-checking of the code that
calculates the block-size and the number of checksum bits.
2005-01-01 21:08:11 +00:00
Wayne Davison
7aac6604c4
- Use an int32 for the each block-size variable.
...
- Renamed the local block_size arg to blk_size (to avoid
confusion with the global block_size variable).
2005-01-01 21:08:07 +00:00
Wayne Davison
deb5bf1dff
- Use an int32 for each checksum length variable.
...
- Simplified some of the code, removing a useless memcpy().
2005-01-01 21:08:05 +00:00
Wayne Davison
3dfe6e97a7
Since lp_bind_address() can't return NULL, we need to check if it is
...
an empty string and ignore it when it is.
2004-12-31 09:41:04 +00:00
Wayne Davison
43bab4035b
A minor improvement to the just-committed code.
2004-12-31 00:41:32 +00:00
Wayne Davison
ef0c03ff70
The code that tries to read an error from the socket in an abnormal-
...
exit situation was properly forcing the io_timeout value down to 30
seconds, but failing to set the select_timeout value.
2004-12-31 00:39:59 +00:00
Wayne Davison
ad54dcc827
Set select_timeout if the per-module timeout value was lower than
...
the default select_timeout value.
2004-12-31 00:35:03 +00:00
Wayne Davison
c0ab28d1d9
If we send --files-from to the remote server and relative-paths
...
are not enabled, we need to also send --no-relative.
2004-12-22 09:10:08 +00:00
Wayne Davison
5b2f48da27
Mention latest fix.
2004-12-16 22:48:31 +00:00
Wayne Davison
132fcf36b2
The "ignore nonreadable" daemon parameter no longer affects
...
symlinks that are being copied, even if they point nowhere.
2004-12-16 22:47:36 +00:00
Wayne Davison
4571df58c6
Got rid of the rare failure caused by a directory-time mismatch.
2004-12-14 19:41:19 +00:00
Wayne Davison
f6b384d41f
Don't call do_lstat() unless SUPPORT_LINKS is defined.
2004-12-13 17:22:32 +00:00
Wayne Davison
c259892c3a
Document the client version of the --port option.
2004-12-08 17:30:40 +00:00