J.W. Schultz
d1e7726460
Remove "Conditional -z for old protocols" because those old
...
protocols are no longer supported.
2004-02-14 01:43:24 +00:00
Wayne Davison
0596df00b3
Reordered the items inside the file_struct so that alignment padding
...
should be minimized.
2004-02-11 08:01:21 +00:00
Wayne Davison
417c99f637
If --backup was specified, the links we remove are backed up.
2004-02-11 05:03:04 +00:00
Wayne Davison
de0e225076
- Revised and optimized the directory-making code.
...
- Optimized the keep_backup() code.
2004-02-11 05:02:21 +00:00
Wayne Davison
e0391f8149
Added backup_dir_buf and backup_dir_remainder.
2004-02-11 04:30:41 +00:00
Wayne Davison
7de2483fbd
Fixed a crash bug when keep_backup() calls make_file() and the lastdir
...
pointer is no longer valid.
2004-02-11 02:48:58 +00:00
Wayne Davison
65d6212d03
Got rid of hard-link message (since I don't think it was ever
...
output in older rsync versions).
2004-02-11 02:33:17 +00:00
Wayne Davison
4d4df3cd2b
Another attempt at measuring the minimum alignment for a system.
2004-02-10 23:35:12 +00:00
J.W. Schultz
62125b10c9
Simplified test for hardlink in make_backup debug message to
...
avoid core-dump.
2004-02-10 23:23:09 +00:00
Wayne Davison
81c3a3a86e
Got rid of useless extern.
2004-02-10 22:56:16 +00:00
Wayne Davison
61d35e1844
Trying a different MINALIGN because of core dumps on the sparc-64
...
build-farm machines.
2004-02-10 22:28:36 +00:00
J.W. Schultz
15f85b1f63
Revert pool_alloc's use of bomb if pool == NULL.
2004-02-10 21:11:24 +00:00
J.W. Schultz
5bf63a11f4
Keep in sync with protocol if idev data on stream but no hlink_pool.
2004-02-10 21:11:24 +00:00
Wayne Davison
97a67bdfa9
If XMIT_HAS_IDEV_DATA is set in receive_file_entry(), we now bomb out
...
if flist->hlink_pool isn't set (instead of neglecting to read the idev
info).
2004-02-10 17:53:52 +00:00
Wayne Davison
aa0b9ca174
If we call pool_alloc() on a NULL pool, bomb out with an error.
2004-02-10 17:52:31 +00:00
Wayne Davison
b96efc2f67
Empty-line tweaks.
2004-02-10 17:35:04 +00:00
Wayne Davison
be20dc3448
Changed a while loop to a for loop.
2004-02-10 17:34:05 +00:00
Wayne Davison
cb869c26d9
Tweaked an if.
2004-02-10 17:28:59 +00:00
Wayne Davison
7cf8e8d05d
Changed flist_init() to use offsetof().
2004-02-10 17:28:31 +00:00
Wayne Davison
54fd3e5020
Added lib/pool_alloc.h to the HEADERS.
2004-02-10 17:06:11 +00:00
J.W. Schultz
3e4916822d
Dropped support for protocol versions less than 20 (2.3.0
...
released 15 Mar 1999) and activated warnings for protocols
less than 25 (2.5.0 released 23 Aug 2001)
2004-02-10 03:54:47 +00:00
J.W. Schultz
7efdcf3218
Added allocation pool code.
2004-02-10 03:26:41 +00:00
J.W. Schultz
9935066b70
Make idev, hlink and file_struct + strings use allocation
...
pools.
2004-02-10 03:23:37 +00:00
Wayne Davison
6c2e5b56e4
Die if we overflowed the args[] array when building up the remote
...
command in do_cmd().
2004-02-09 21:22:59 +00:00
Wayne Davison
2289bf64cc
The batch-options now set checksum_seed to the appropriate fixed value.
2004-02-09 18:32:54 +00:00
Wayne Davison
b1bf649cba
Set checksum_seed only if it is still zero.
2004-02-09 18:32:53 +00:00
Wayne Davison
8ee6eb7134
Made checksum_seed an extern.
2004-02-09 18:32:52 +00:00
Wayne Davison
f98c60bfa8
Use asprintf() in server_options() (plus a few more whitespace tweaks).
2004-02-09 18:10:57 +00:00
Wayne Davison
a5c1113971
Updated the sizeof syntax and tweaked some whitespace.
2004-02-09 17:45:22 +00:00
Wayne Davison
736f46d1d9
Got rid of unused true/false defines.
2004-02-07 18:40:52 +00:00
Wayne Davison
a8f7e4b835
Made a couple comments a little clearer.
2004-02-07 00:12:40 +00:00
Wayne Davison
9352b0649b
Got rid of unused string_area struct.
2004-02-06 15:33:15 +00:00
J.W. Schultz
a85906c756
Start flist with a more reasonable size, grow it linearly
...
once it reaches a largish size (16 million files) and make it
actually match the comments so it may be used to initialize
flists of known size (create_flist_from_batch()).
2004-02-06 10:00:33 +00:00
J.W. Schultz
8aa81e06e6
Update TODO to reflect recent changes.
...
Hardlink handling is improved.
String area code is gone for other reasons.
2004-02-06 07:26:15 +00:00
Wayne Davison
1f9ae80a3e
Fixed the indentation in init_flist().
2004-02-06 07:19:57 +00:00
J.W. Schultz
71020fc3aa
Correct sizeof usage and other whitespace.
2004-02-06 04:51:09 +00:00
J.W. Schultz
7b74bba15e
Added a total memory allocated (allmem) line to
...
show_malloc_stats.
2004-02-06 01:56:25 +00:00
J.W. Schultz
e5fbaa713a
Cause all three processes to report memory stats when -vv --stats
2004-02-05 03:27:54 +00:00
Wayne Davison
6609a9f17e
Mention a couple more changes.
2004-02-05 02:56:57 +00:00
Wayne Davison
5204e853e1
Now that the long-standing chgrp bug is fixed, go back to -vvv from -vvvv.
2004-02-05 01:37:08 +00:00
Wayne Davison
01363a24e2
Fixed a problem handling GID_NONE in match_gid().
2004-02-05 01:32:38 +00:00
Wayne Davison
d49def4832
- Fixed a bug using --numeric-ids as non-root when the receiver
...
does not have permissions to set one or more of the gids.
- If the add_[ug]id() routine couldn't find a name for an ID, we
still note the ID in our list of IDs so that we don't try to
look it up again (and again). (The name-less IDs are stripped
when sending the IDs from the sender to the receiver.)
- Created a better add_to_list() function that handles the linking
of the new node into the list (rather than the caller doing it).
- Added new internal functions for some receiver-side work that
needed to be done in multiple places (the recv_add_[ug]id()
functions).
- We output debug info even for ID mappings that have no names.
This make the list complete and also notes which gids get
mapped to -1 (GID_NONE).
- Turned several while loops into for loops.
2004-02-05 01:07:23 +00:00
Wayne Davison
4836c3eece
Added new extern.
2004-02-05 00:46:32 +00:00
Wayne Davison
9f7b8c3b8f
Only call add_uid() or add_gid() if numeric_ids is not set.
2004-02-05 00:44:11 +00:00
Wayne Davison
ade7292aee
Moved a function.
2004-02-04 20:09:21 +00:00
Wayne Davison
dbd8811b85
If a gid doesn't have a name on the originating system, the receiver
...
won't see it in the list of IDs to remap. That means that we need to
call the is_in_group() function from inside match_gid() to know if we
can set the group or not (if we're not root).
2004-02-04 19:25:11 +00:00
Wayne Davison
05118158f4
Improved the trailing comment.
2004-02-04 18:24:41 +00:00
Wayne Davison
1df395f7c2
Use the new HAVE_GETGROUPS define.
2004-02-04 17:49:36 +00:00
Wayne Davison
5fdf2e7063
Added function check for getgroups.
2004-02-04 17:21:48 +00:00
Wayne Davison
6fe05820ff
Use MY_UID() instead of getuid().
2004-02-04 17:06:07 +00:00