Wayne Davison
40410a38bc
- Don't check HAVE_LINK directly, use SUPPORT_HARD_LINKS instead.
...
- Tweaked Paul's recent change just a tad.
- Fixed the output of --compare-dest when SUPPORT_HARD_LINKS is
not defined.
2006-05-05 05:53:36 +00:00
Wayne Davison
6b54a688cf
Cast file->mode to an int when printing it via %o.
2006-05-05 05:40:17 +00:00
Paul Green
b59dc8d5ae
Fix generator.c to avoid calling do_link() on systems that do not support
...
the link() function. The changes test OK on SuSE Linux and on my own
Stratus VOS system, but I would be grateful if other folks could
double-check this change. Paul G.
2006-05-04 19:00:37 +00:00
Wayne Davison
73173af955
- Call safe_stat() instead of do_stat() when a sanitizing daemon might
...
need to ensure that it doesn't follow any unsafe symlinks.
- Don't sanitize the string of a symlink -- just use it verbatim.
2006-05-03 00:48:29 +00:00
Wayne Davison
6f1c2aab43
Moved the sanitizing of a symlink's link string here from flist.c.
2006-05-02 16:52:51 +00:00
Wayne Davison
e71c1c26df
Fixed a problem in the --link-dest processing where -I (--ignore-times)
...
or --size-only could adversely affect our ability to find identical
files to hard-link.
2006-05-02 16:46:48 +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
434764269c
Fixed a typo in the new code.
2006-04-18 06:38:58 +00:00
Wayne Davison
ba212fe0b6
- Fixed --copy-dest behavior on a system where CAN_HARDLINK_SYMLINK
...
and/or CAN_HARDLINK_SPECIAL is not defined.
- Changed --link-dest behavior on such systems to work just like
--copy-dest for the non-hard-linkable files.
2006-04-18 05:48:46 +00:00
Wayne Davison
5f93b4d35e
A slight improvement to the logic in try_dests_non().
2006-04-18 05:24:02 +00:00
Wayne Davison
398612ba07
Fixed a bug where special files were not getting hard-linked via
...
the --link-dest option.
2006-04-17 19:53:41 +00:00
Wayne Davison
1c6e9dfabc
Use the new CAN_HARDLINK_SYMLINK and CAN_HARDLINK_SPECIAL defines
...
from configure instead of the old (and not quite correct) run-time
checking.
2006-04-17 17:56:10 +00:00
Wayne Davison
88a16c8b4f
Don't force S_IWUSR on a solo directory transfer.
2006-03-10 15:57:03 +00:00
Wayne Davison
cca9208697
Got rid of unused externs.
2006-02-24 16:43:44 +00:00
Wayne Davison
aa37022ef7
A recently added stat() call needed to be do_stat().
2006-02-24 09:35:47 +00:00
Wayne Davison
904e5af128
The create_directory_path() function no longer takes a base_umask
...
arg.
2006-02-24 01:56:21 +00:00
Wayne Davison
6f2a222c59
One more fuzzy tweak.
2006-02-23 20:29:55 +00:00
Wayne Davison
8470a515ef
Some improved fuzzy-parent-dir logic.
2006-02-23 20:27:17 +00:00
Wayne Davison
865c3b5f92
The new fuzzy-dir logic once again avoids calling get_dirlist()
...
until a regular file is found in the current parent directory.
2006-02-23 20:00:48 +00:00
Wayne Davison
8c9e06d7b9
Fixed the creation of symlinks and devices when both --relative
...
and --no-implied-dirs are specified and the destination dir does
not yet exist.
2006-02-23 19:43:54 +00:00
Wayne Davison
a9cc128308
Renamed fuzzy_dirname -> parent_dirname.
2006-02-23 19:07:33 +00:00
Wayne Davison
ccb16b467b
Make sure that the --fuzzy option's dir-scan doesn't generate an
...
I/O error when --no-relative is used and the destination dir does
not exist yet.
2006-02-23 18:58:30 +00:00
Wayne Davison
a753502200
Don't try to help the ACKs for the --remove-sent-file option
...
when --delay-updates was specified.
2006-02-15 20:09:49 +00:00
Wayne Davison
434573b226
Call increment_active_files() during the first phase of a transfer
...
where --remove-sent-files was specified.
2006-02-15 08:06:45 +00:00
Wayne Davison
0f86c74eba
Call renamed cmp_time() function (was cmp_modtime()).
2006-02-07 18:15:46 +00:00
Wayne Davison
b988781801
Allow itemize() to flag ITEM_REPORT_PERMS anytime the permissions
...
change (even if -p or -E aren't set).
2006-02-05 06:13:34 +00:00
Wayne Davison
07efba8ec0
The itemize() output now mentions -E permissions changes.
2006-01-31 06:25:46 +00:00
Wayne Davison
a9d6e6fcac
When permissions aren't being preserved, set them via the new
...
dest_mode() function.
2006-01-31 02:30:09 +00:00
Wayne Davison
e35d9f2d6d
I realized that there were instances where --force could still be
...
required to be combined with a delete option (if a non-dir was
overwriting a dir in a directory that was not included in the
transfer), so I extended the change I just made for --delete-after
to include all delete modes.
2006-01-30 18:45:57 +00:00
Wayne Davison
4d16780366
Allow --force to work even if --recurse was not specified.
2006-01-30 18:35:54 +00:00
Wayne Davison
90cf7d199f
Allow a non-empty dir to be overwritten by a non-dir with all the
...
delete options (--delete-after used to require --force).
2006-01-30 18:14:02 +00:00
Wayne Davison
e912bd4dfb
- Use the renamed PERMS_* defines: ATTRS_*.
...
- Call the new name of set_perms(): set_file_attrs().
2006-01-29 20:30:18 +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
0e82af2d27
New -x code had some problems, so restore the old code for now
...
(keeping the more optimal stat() calling, though).
2006-01-22 20:37:00 +00:00
Wayne Davison
bb0d8edfad
- Got rid of the filesystem_dev variable now that --one-file-system
...
is handled in a new way.
- Moved a stat out of delete_in_dir() into do_delete_pass() to make
--delete-during more efficient.
- Added a missing "#ifdef SUPPORT_LINKS...#endif" block around some
symlink code.
2006-01-21 20:59:19 +00:00
Wayne Davison
3de73827d7
Call make_file() with one more arg (the base flags).
2006-01-20 21:21:36 +00:00
Wayne Davison
a9e4762634
Handle the extra output needed when log_format_has_i > 1.
2006-01-20 18:49:38 +00:00
Wayne Davison
b435d7174c
Added a new arg to the make_file() call.
2006-01-19 21:16:40 +00:00
Wayne Davison
b8595e609a
In delete_in_dir(), skip a directory that isn't really a directory on
...
the local disk (can easily happen if --dry-run was specified).
2006-01-19 18:53:48 +00:00
Wayne Davison
6cbde57d88
Call f_name() with revised args (which also replaces f_name_to()).
2006-01-14 20:26:23 +00:00
Wayne Davison
45c49b52a4
Got rid of calls to (the soon to vanish) safe_fname() function.
2006-01-13 21:17:09 +00:00
Wayne Davison
3447d61048
Fixed a bug in the hard-linking of a group of fifos/devices in a
...
transfer where the leader got hard-linked to a --link-dest item.
2005-12-16 04:02:54 +00:00
Wayne Davison
48224e4c43
Improved the compare-dest/link-dest/copy-dest code to make it more
...
readable, to make it output properly in double-verbose mode, and
to allow the hard-linking of symlinks and devices (if supported by
the OS).
2005-12-15 22:59:56 +00:00
Wayne Davison
d71dad3bd3
Moved the DEL_* flags from rsync.h here and got rid of DEL_NO_RECURSE.
2005-11-12 20:30:36 +00:00
Wayne Davison
b2e7c91313
Indent the "prepare_to_open:" and "notify_others:" labels away
...
from column 0.
2005-11-10 16:47:03 +00:00
Wayne Davison
cfe3978049
Use the new checksum_len value instead of recomputing the
...
right value for the current protocol_version over and over.
2005-11-10 03:07:18 +00:00
Wayne Davison
d8b108c2a1
If a partial-dir file is present but the main file is up-to-date,
...
just remove the partial-dir file.
2005-11-10 02:56:58 +00:00