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
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
cad8f6f980
Tweaked some variable names in readlink_stat() and link_stat().
2006-05-02 19:52:28 +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
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
f4ea5f47dc
Got rid of the setting of io_write_phase.
2006-04-21 16:36:30 +00:00
Wayne Davison
88c2190a7c
- Got rid of unused externs.
...
- Added support for copy_dirlinks.
- Fixed a bug where --copy-links would not affect implied dirs
unless --copy-unsafe-links was also specified.
2006-02-24 17:54:35 +00:00
Wayne Davison
5e7b826a4f
Made the receiver count the size of symlinks in the total_size
...
value, just like the sender does.
2006-02-13 18:08:45 +00:00
Wayne Davison
0679ac4ca9
Tweaked a comment.
2006-02-08 02:32:35 +00:00
Wayne Davison
860dcf68ad
Got rid of the orig_umask-based file->mode tweak in receive_file()
...
(which got moved into the dest_mode() function).
2006-01-31 02:30:05 +00:00
Wayne Davison
1661fe9b0c
Made get_dirlist() always include directories.
2006-01-30 18:32:47 +00:00
Wayne Davison
7627e92c54
Added extern for io_write_phase.
2006-01-30 17:39:43 +00:00
Wayne Davison
78d146e866
Use PERMSTRING_SIZE rather than a hard-wired "11".
2006-01-29 20:30:02 +00:00
Wayne Davison
e6ffb966dd
Made the new --prune-empty-dirs code a little more memory efficient.
2006-01-28 19:20:02 +00:00
Wayne Davison
207522aef5
Tweaked a variable name in flist_find().
2006-01-28 08:12:16 +00:00
Wayne Davison
85aecef6c3
The user can now use a "protect" filter to avoid pruning one or
...
more empty directories when --prune-empty-dirs is in effect.
2006-01-28 00:13:59 +00:00
Wayne Davison
7402d58369
Improved flist_find()'s empty-entry handling to deal with the case
...
where more entries may have been removed since the last find.
2006-01-27 14:29:58 +00:00
Wayne Davison
c0b134a445
Optimized flist_find() so that we never scan a series of empty
...
file-list items twice (which can be very important with the new
--skip-empty-dirs option). Also optimized the code that strips
root slashes in clean_flist().
2006-01-27 12:59:07 +00:00
Wayne Davison
9c000f5e7b
Implement the new --skip-empty-dirs (-k) option.
2006-01-27 00:32:57 +00:00
Wayne Davison
b5c6a6aeeb
Handle separated devices and special files.
2006-01-26 10:38:58 +00:00
Wayne Davison
7b6fa00ff8
Decided to hold off on the potential memory savings of indexed
...
uid/gid pairs until the next release.
2006-01-25 17:10:29 +00:00
Wayne Davison
5e58e3f9cf
The uid & gid are now stored using an id_pair structure.
2006-01-24 19:02:55 +00:00
Wayne Davison
9cdadbb13a
The in_del_hier code needs to use lastname instead of thisname
...
because the latter gets cleaned and (possibly) sanitized.
2006-01-24 17:26:24 +00:00
Wayne Davison
535737bf39
New -x code had some problems, so restore the old code for now.
2006-01-22 20:30:56 +00:00
Wayne Davison
ebec5eb689
- Changed how --one-file-system works so that we can skip all mount
...
points (including "bind" mounts).
- The --chmod option now affects devices (only skipping symlinks).
2006-01-21 20:59:16 +00:00
Wayne Davison
8bbe41b53b
Handle the --chmod option as either the sender or the receiver so
...
that only the client needs to know about --chmod (but if an older
version sends the option to the server, we'll still handle it).
2006-01-21 08:03:18 +00:00
Wayne Davison
3b17384631
Implemented the -xx behavior that skips mount-point dirs.
2006-01-21 01:20:03 +00:00
Wayne Davison
96b87581ff
- Changed send_file_entry() into a static function again.
...
- Made send_file_entry() derive the base_flag value from *file.
- Added a flags arg to make_file().
- The flag we send to send_file_name() is a FLAG_* value, not an
XMIT_* value.
2006-01-20 21:21:43 +00:00
Wayne Davison
ede1f0ebc9
The code in send_file_list() needed a little more improvement to
...
handle --relative really well:
- We must set "is_dot_dir" when we strip off a trailing "/" or "/.".
- If a trailing "/" or "/." caused us to treat a symlink as a dir,
we now pass our stat() info down to make_file() so that it will
always treat the cleaned-up name as a dir too.
- We must not strip a leading "/".
- Improved the check for ".." elements in the implied dirs.
2006-01-19 21:16:44 +00:00
Wayne Davison
1902a7652f
When --relative is active, simply trim off trailing slashes and
...
dot dirs. Also, reject a ".." dir if it would be sent as part
of the relative path.
2006-01-19 01:43:10 +00:00
Wayne Davison
f5a49d0e44
Got rid of a now-unused static variable.
2006-01-17 01:26:35 +00:00
Wayne Davison
5e4ff5f9c5
Merged f_name() with f_name_to().
2006-01-14 20:26:20 +00:00
Wayne Davison
99aaa6ca25
Fixed a couple out-of-memory function-name strings in make_file().
2006-01-14 17:19:12 +00:00
Wayne Davison
beaf495400
Added a "continue" missing from a recent change.
2006-01-14 00:29:50 +00:00
Wayne Davison
0ee6ca9800
Got rid of calls to the (soon to vanish) safe_fname() function.
2006-01-13 22:06:31 +00:00
Wayne Davison
97b7bff4d6
- Got rid of a superfluous empty line.
...
- Indent the "oom:" and "skip_filters:" labels away from column 0.
2005-11-10 16:45:00 +00:00
Wayne Davison
902f03d101
In make_file(), only compute the checksum when we're the sender.
...
This stops computing useless checksums during the delete scan
when --checksum (-c) was specified.
2005-11-10 06:01:55 +00:00
Wayne Davison
7752df41b7
Compute the right checksum length for the current protocol_version
...
only once instead of over and over again.
2005-11-10 03:00:38 +00:00
Wayne Davison
2b7e0f33a6
Call tweak_mode() on regular files and dirs if --chmod was specified.
2005-11-07 04:28:32 +00:00
Wayne Davison
56f0c976be
Decreased the amount of stack needed for each level of directory
...
recursion by eliminating the need for a MAXPATHLEN buffer in
send_if_directory(). Also improved a few variable names in
send_file_list().
2005-11-01 20:09:41 +00:00
Wayne Davison
d030233def
Get rid of some superfluous empty lines.
2005-10-19 07:49:10 +00:00
Wayne Davison
75c51953f1
- When --dirs is specified w/o --recursive, avoid marking solo dirs
...
with the XMIT_TOP_DIR flag.
- Only set in_del_hier if --recursive is enabled.
2005-09-29 07:48:05 +00:00
Wayne Davison
8ad5cea371
Changed one strcpy() into a strlcpy().
2005-09-17 21:49:24 +00:00
Wayne Davison
9a4a237ede
Tweaked the code a little in the always_checksum handling of the
...
send & receive file-list functions.
2005-09-16 05:52:54 +00:00
Wayne Davison
92cdc39372
When pop_dir(olddir) fails, pass the right string pointer
...
in the error message.
2005-09-09 16:17:01 +00:00
Wayne Davison
d2ea5980ba
Allow the user to specify a dot dir in the source path when
...
using --relative, making it trim the duplicated dirs.
2005-08-01 21:58:16 +00:00
Wayne Davison
151f59f155
Tweaked a comment and some null-char assignments.
2005-07-22 19:09:45 +00:00
Wayne Davison
a1f99493b3
Changed overflow() to overflow_exit().
2005-07-07 19:49:14 +00:00
Wayne Davison
910ee8c92e
In clean_flist(), fixed the setting of the flist->high value for an
...
empty list so that it can't cause a crash if it gets passed to
flist_find().
2005-06-12 06:07:23 +00:00