Commit Graph

2790 Commits

Author SHA1 Message Date
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
Wayne Davison
b471329591 Allow --port to be used in client mode (as well as daemon mode). 2004-12-08 17:29:54 +00:00
Wayne Davison
3add5835db If rsync_port is 0, set it to RSYNC_PORT. 2004-12-08 17:11:15 +00:00
Wayne Davison
cf510ad2c5 Switching to a better rsync_port fix. 2004-12-08 17:09:59 +00:00
Wayne Davison
696a8d6191 Document the new "address" global option. 2004-12-06 22:45:10 +00:00
Wayne Davison
01f8a1155f Made --port and --address point the user at the relevant global
options in the rsyncd.conf manpage.
2004-12-06 22:45:07 +00:00
Wayne Davison
986aaaaa4b Check the global option "address" if the user didn't specify
an --address option when starting the daemon.
2004-12-06 22:45:03 +00:00
Wayne Davison
c96ee2310d Added support for the "address" option. 2004-12-06 22:45:00 +00:00
Wayne Davison
76cb2a3a4f Set default port value for a :: file-spec without a port number. 2004-12-06 17:57:06 +00:00
Wayne Davison
9bef934c76 Improved the examples for the --relative option. 2004-12-03 01:31:24 +00:00
Wayne Davison
85f14172dc Check the return value of flush_write_file() and report an error
if it reports failure.
2004-12-02 17:16:19 +00:00
Wayne Davison
4539c0d79f Improved the description of the --update option. 2004-11-30 20:43:06 +00:00
Wayne Davison
c3131af90a Improved some of the descriptions. 2004-11-30 06:07:50 +00:00
Wayne Davison
c2c14fa26e Removed some redundant words in a sentence. 2004-11-29 17:09:31 +00:00
Wayne Davison
e49f61f5fc Make some of the --*-dest comments clearer and more complete. 2004-11-27 22:09:33 +00:00
Wayne Davison
22f5bd5e35 Improved some of the items. 2004-11-27 21:55:05 +00:00
Wayne Davison
7a1b73b983 Mentioned the latest enhancements. 2004-11-27 18:26:30 +00:00
Wayne Davison
0c56b1add7 Allow "port" to be specified in the rsyncd.conf file. 2004-11-27 18:24:12 +00:00
Wayne Davison
1e60969646 Added tests for multiple --compare-dest options and --copy-dest. 2004-11-27 17:59:48 +00:00
Wayne Davison
ee29752217 Added support for multiple --*-dest options. 2004-11-27 17:56:58 +00:00
Wayne Davison
e012f858d6 - Added parsing for --copy-dest.
- Added support for multiple --*-dest options.
2004-11-27 17:52:51 +00:00
Wayne Davison
c3fad2e227 The compare_dest variable changed. 2004-11-27 17:52:49 +00:00
Wayne Davison
b7e8628c4b - Added support for --copy-dest, which behaves like --link-dest,
but it copies the identical files instead of hard-linking them.
- Added support for multiple --*-dest options.
2004-11-27 17:52:47 +00:00
Wayne Davison
e4977b0b9f - Define MAX_BASIS_DIRS.
- Renamed FNAMECMP_CMPDEST to FNAMECMP_BASIS_DIR.
2004-11-27 17:52:45 +00:00
Wayne Davison
b127c1dc58 Document --copy-dest and the support for multiple --*-dest options. 2004-11-27 17:52:42 +00:00
Wayne Davison
07bff66fb5 Fixed a socket-data conflict when verbosity is >= 2 and the
files-from list is coming from a remote receiver.
2004-11-20 17:10:54 +00:00