Wayne Davison
d01d15e096
Use the new names for the transmit-flag defines. We also make sure
...
that the FLAG_TOP_DIR flag doesn't get set in the live data for a
non-directory (when it's used as a kluge to prevent a 0x00 byte being
sent over the wire for the flag data).
2004-01-27 01:05:13 +00:00
Wayne Davison
a53426441b
Use the new names for the transmit-flag defines.
2004-01-27 01:05:12 +00:00
Wayne Davison
5d1966948e
Fixed reference to -u that should have been -o.
2004-01-26 22:35:04 +00:00
J.W. Schultz
f673ea84b2
Back out bad refactor (thanks Wayne)
2004-01-26 20:54:02 +00:00
Wayne Davison
64f21c31bf
Mention new hard-link optimization.
2004-01-26 04:21:59 +00:00
Wayne Davison
520cf41711
Added defines (FLAG_HLINK_EOL, HL_CHECK_MASTER, and HL_SKIP) and changed
...
the struct hlink to have an index into the hlink_list[] array instead of
a head pointer.
2004-01-25 22:32:11 +00:00
Wayne Davison
d38fc30563
We now link the hard-linked flist entries into a circular list, mark
...
the last item with FLAG_HLINK_EOL, and save off an index for our
master entry in the hlink_list[] array. Added the hard_link_check()
function.
2004-01-25 22:32:10 +00:00
Wayne Davison
6dff599288
Use the new hard_link_check() function to figure out which one of the
...
hard-linked files to send (when -H was specified, of course). Moved
the call to do_hard_links() and the final directory-permissions scan
into generate_files() from recv_files().
2004-01-25 22:32:09 +00:00
Wayne Davison
f746dda0a0
Moved the call to do_hard_links() and the final directory-permissions
...
scan from recv_files() into generate_files().
2004-01-25 22:32:08 +00:00
Wayne Davison
91a1e147ae
Changed F_HEAD to F_HLINDEX.
2004-01-25 22:32:07 +00:00
Wayne Davison
40da904230
Tweaked a comment.
2004-01-25 22:32:05 +00:00
J.W. Schultz
34fada3012
Tightened up code in skip_filesystem()
2004-01-25 22:11:09 +00:00
Wayne Davison
f91e01d9a5
Replaced an snprintf() call with pathjoin().
2004-01-24 22:12:58 +00:00
Wayne Davison
3048b0a8ea
The static last_in value in match_gid() needed to default to -2 so
...
that we don't accidentally return a GID of 0 when we don't have the
permissions to set it.
2004-01-24 18:36:36 +00:00
Wayne Davison
d99b4ccf93
Another improvement in the "use chroot" section.
2004-01-24 01:48:12 +00:00
Wayne Davison
58811a0a38
Refer to I/O (not IO), ID (not id), and "an rsync" (not "a rsync").
2004-01-23 16:58:24 +00:00
Wayne Davison
cb290916be
Improved the "use chroot" discussion on ID mapping.
2004-01-23 16:55:40 +00:00
Wayne Davison
a2b0471f1d
More changes to make the --owner and --group items clearer.
2004-01-23 16:40:17 +00:00
Wayne Davison
bb18e7550c
Use "an" in front of rsync, not "a".
2004-01-23 09:34:04 +00:00
Wayne Davison
db2b5cb75f
Tweaked the --help text to refer to I/O (not IO) and use "an" in
...
front of rsync (not "a").
2004-01-23 09:32:50 +00:00
Wayne Davison
fa8c787d8b
Improved the "use chroot" section to mention how to get user/group
...
preservation by name (getting rid of the erroneous bit about the
--numeric-ids option being implied).
2004-01-23 09:30:45 +00:00
Wayne Davison
ec40899bb9
Improved comments on --owner and --groups, and removed misinformation
...
on a chroot daemon (it does not imply --numeric-ids).
2004-01-23 09:29:16 +00:00
Wayne Davison
b5accabaa7
Properly punctuate "etc." and changed all occurrences of "IO" to "I/O".
2004-01-23 08:59:19 +00:00
Wayne Davison
4e308a9526
Fixed two more misspelled words.
2004-01-23 02:02:51 +00:00
Wayne Davison
4d88810810
Some spelling corrections and other simple fixes.
2004-01-23 01:36:59 +00:00
Wayne Davison
f321922214
When setting an flist entry's flags, mask it with LIVE_FLAGS.
2004-01-22 18:39:32 +00:00
Wayne Davison
cab13afe8d
A couple comment tweaks.
2004-01-22 18:37:26 +00:00
Wayne Davison
72fc7ec59b
Made the getgroups() code a little more portable. This will hopefully
...
make the chgrp test work on the NetBSD and OpenBSD systems where it is
failing.
2004-01-22 09:16:21 +00:00
Wayne Davison
58743a87b8
Improved to add the default gid if it is missing from the list.
2004-01-22 09:13:36 +00:00
Wayne Davison
54bf456e85
Removed an obsolete comment.
2004-01-22 09:05:09 +00:00
Wayne Davison
a24639bb36
Tweaked an argv-type variable so that it's a little clearer what
...
the code is doing. Also added a comment.
2004-01-22 04:40:33 +00:00
Wayne Davison
3fef53645d
Use the new f_name_to() calling syntax.
2004-01-22 04:38:18 +00:00
Wayne Davison
882e689312
- Ensure in make_file() that we can't make a name that overflows
...
our buffers (note that receive_file_entry() already does this).
- Changed f_name_to() to not do any length checking since it is
now redundant.
2004-01-22 04:38:17 +00:00
Wayne Davison
b0a93231cf
Added more missing news.
2004-01-22 02:02:00 +00:00
Wayne Davison
0c819b76d6
New news.
2004-01-22 01:23:43 +00:00
Wayne Davison
ce58b1b479
Size-check the --temp-dir string so we don't have to worry about it
...
overflowing elsewhere in the code.
2004-01-22 01:20:24 +00:00
Wayne Davison
a16d8f2b25
Improved a couple comments.
2004-01-21 02:45:10 +00:00
Wayne Davison
59187666b9
Use new push_dir() syntax.
2004-01-20 17:46:31 +00:00
Wayne Davison
808c57c343
- Use the new push_dir() and pop_dir() calling syntax.
...
- The "olddir" handling changed to accommodate the above, and to
avoid using malloc()/free().
2004-01-20 17:46:30 +00:00
Wayne Davison
4af8fe4e78
- Changed push_dir() to not take a "save" arg and to return 1 or 0
...
for success or failure instead of a string pointer. The function
also ensures that we don't overflow the curr_dir[] buffer.
- Changed pop_dir() to not free() anything and to return 1 or 0
for success or failure.
2004-01-20 17:46:29 +00:00
Wayne Davison
4034cb3f71
Use new stringjoin() function.
2004-01-20 05:35:57 +00:00
Wayne Davison
6fc048f438
Find last '@' in the user@site string, just in case the username has
...
a '@' in it.
2004-01-20 05:27:09 +00:00
Wayne Davison
5d2a707139
Use new stringjoin() and pathjoin() functions.
2004-01-20 05:24:07 +00:00
Wayne Davison
81d2b0ef9d
Use new pathjoin() function.
2004-01-20 05:15:14 +00:00
Wayne Davison
248ed45fc6
Use new pathjoin() function.
2004-01-20 05:09:36 +00:00
Wayne Davison
893c4cc056
Use new stringjoin() function.
2004-01-20 04:56:20 +00:00
Wayne Davison
a7725e6df9
Use new pathjoin() function.
2004-01-20 04:53:59 +00:00
Wayne Davison
368ad70e05
Added stringjoin() and pathjoin().
2004-01-20 04:43:49 +00:00
J.W. Schultz
b7cee9498b
Eliminate unneeded strlen after strlcpy.
2004-01-20 03:37:04 +00:00
Wayne Davison
72d45525d2
Make sure that strlcpy() returns the right value when the bufsize is 0.
2004-01-20 00:59:26 +00:00