Wayne Davison
0f86c74eba
Call renamed cmp_time() function (was cmp_modtime()).
2006-02-07 18:15:46 +00:00
Wayne Davison
e0f4a661be
Don't setup ic_chck if --8-bit was specified.
2006-02-06 18:42:46 +00:00
Wayne Davison
2d2f71fb27
Got rid of a newly-added trailing tab.
2006-02-06 18:00:37 +00:00
Wayne Davison
7fc87d2daf
Allow the iconv_open() call to fail since we can now fall-back on
...
isprint(). Got rid of the "646" mapping kluge too.
2006-02-06 16:55:01 +00:00
Wayne Davison
7a9d183fc4
Have default_charset() try mapping "646" -> "ASCII" instead of "ascii".
2006-02-06 09:04:20 +00:00
Wayne Davison
2a62f5ee19
Added "const" to the default_charset() return.
2006-02-06 09:00:37 +00:00
Wayne Davison
0be05d6038
In default_charset(): if nl_langinfo() gives us "646", return "ascii".
2006-02-05 07:20:10 +00:00
Wayne Davison
595251de24
Make sure that we don't try to use iconv() without iconv.h.
2006-02-05 04:52:11 +00:00
Wayne Davison
c85631421d
Changed HAVE_ICONV to HAVE_ICONV_OPEN.
2006-02-05 04:45:23 +00:00
Wayne Davison
ceccbacc34
The new function setup_iconv() initializes the ic_chck var.
2006-02-04 22:03:33 +00:00
Wayne Davison
9b499e9537
- When not preserving permissions, ensure that a newly-created
...
directory's inherited sgid bit is preserved.
- When not preserving permissions, ensure that newly-created
files/dirs don't inherit any special permissions.
2006-02-04 19:09:46 +00:00
Wayne Davison
b8e9c234e6
Changed sig_int() to use a standard signal-handler prototype.
2006-02-02 02:39:40 +00:00
Wayne Davison
812848323b
Added the dest_mode() function: it figures out the permissions for
...
a file when we aren't preserving permissions, including the honoring
of the new --executability option.
2006-01-31 02:30:02 +00:00
Wayne Davison
d8b1c923ef
The finish_transfer() function now takes a "partialptr" arg that, if
...
non-NULL, will be used if robust_rename() is forced to copy the temp
file.
2006-01-30 07:18:13 +00:00
Wayne Davison
36119f6e2a
- Renamed set_perms() to set_file_attrs().
...
- Use the renamed PERMS_* defines: ATTRS_*.
2006-01-29 20:30:24 +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
45c49b52a4
Got rid of calls to (the soon to vanish) safe_fname() function.
2006-01-13 21:17:09 +00:00
Wayne Davison
c8d3465726
- Call set_modtime() with its new mode arg.
...
- Don't mask the mode bits being sent to do_chmod().
- Don't skip calling set_modtime() or do_chmod() when the item
is a symlink.
2005-07-27 23:30:58 +00:00
Wayne Davison
b2e8a9b293
Got rid of an unused extern.
2005-03-14 17:06:08 +00:00
Wayne Davison
ed9d969c4c
Use the new am_starting_up value in who_am_i().
2005-02-25 17:08:57 +00:00
Wayne Davison
638e106568
- Moved delete_file() into flist.c.
...
- No need to separately test for (make_backups && !backup_dir)
because omit_dir_times is now set under those circumstances.
2005-02-21 10:50:32 +00:00
Wayne Davison
042f470ef9
Made delete_file() backup files it is removing if --backup was specified.
2005-02-19 23:39:47 +00:00
Wayne Davison
40cc28516d
Moved deletion_count here so that we honor --max-delete in
...
delete_file().
2005-02-19 23:24:41 +00:00
Wayne Davison
8324bd5c21
When logging PERMS_REPORT messages, send them with the FCLIENT code
...
if the daemon has "%i" in its log message (because it already got a
detailed log message from the generator).
2005-02-19 22:16:53 +00:00
Wayne Davison
c786a7aec5
- Changed the calling args to delete_file() to take an st_mode instead
...
of a DEL_DIR flag.
- Call log_delete() instead of outputting "deleting ..." messages..
- Log deletions if either verbose or log-format is specified.
2005-02-19 02:39:23 +00:00
Wayne Davison
4f5b0756df
John E. Malmberg convinced me to standardize on #ifs for defined
...
values instead of non-zero.
2005-02-14 00:53:43 +00:00
Wayne Davison
4875d6b64d
Adding more calls to safe_fname().
2005-02-07 20:36:43 +00:00
Wayne Davison
794b0a037f
Changed who_am_i() to output "server" or "client" when am_sender
...
is negative. This will only occur during the startup phase
before we know if we're the sender or not (e.g. when parsing
client-side --filter/--exclude/--include options).
2005-02-01 09:45:09 +00:00
Wayne Davison
25ff04417e
Use "#if" (not "#ifdef") for configure-defined macros.
2005-01-28 18:50:49 +00:00
Wayne Davison
4366d2c428
In delete_files(), handle new DEL_NO_RECURSE flag (and use
...
renamed DEL_FORCE_RECURSE flag.
2005-01-25 12:07:13 +00:00
Wayne Davison
82471e68a8
Honor the new omit_dir_times var.
2005-01-24 00:51:34 +00:00
Wayne Davison
11781089d1
In delete_file(): got rid of DEL_NO_RECURSE code and added
...
DEL_RECURSE code. Improved the verbose output of a recursively
deleted directory when --dry-run is specified.
2005-01-20 23:51:57 +00:00
Wayne Davison
f227ffe4b9
Moved the dry_run check in set_perms() so that it only triggers if
...
we don't have a stat-buffer (and returns 1, not 0).
2005-01-20 23:01:34 +00:00
Wayne Davison
dd096ae080
- Updated delete_file() to take a flag arg that makes it more
...
flexible. Optimized away a stat() call since the caller knows
if the item to delete is a directory or not.
- Tweaked delete_file()'s "deleting ..." messages to include a
trailing slash when we're deleting a directory.
- No need for conditional code around do_lstat() anymore.
2005-01-19 20:11:03 +00:00
Wayne Davison
997d9ea67f
Added a "overwriting_basis" arg to finish_transfer().
2005-01-10 10:03:12 +00:00
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
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
e484f0cc04
W mustn't backup an inplace file in finish_transfer().
2004-09-07 20:37:36 +00:00
Wayne Davison
ebeacb36fb
Set each file's permissions and modtime before it gets renamed.
2004-08-09 20:57:10 +00:00
Wayne Davison
81b07870c8
One call to link_stat() (in set_perms()) needed to honor the setting
...
of keep_dirlinks if the current item is a directory.
2004-07-31 16:15:41 +00:00
Wayne Davison
ecc81fce17
Use the new safe_fname() function.
2004-07-26 16:36:59 +00:00
Wayne Davison
077e59b769
The inplace handling in finish_transfer() now passes PERMS_SKIP_MTIME
...
to set_perms() if ok_to_set_time wasn't specified.
2004-07-22 15:30:04 +00:00
Wayne Davison
a3221d2ac1
My version of Mark Curtis's --inplace option.
2004-07-16 20:06:24 +00:00
Wayne Davison
da38e779ea
Moved the verbose message about renaming the finished file down into
...
finish_transfer() so that it only gets output when we're actually going
to rename the file.
2004-07-02 18:13:53 +00:00
Wayne Davison
373ef16010
Call link_stat() with its new arg (for --keep-dirlinks support).
2004-06-11 07:40:45 +00:00
Wayne Davison
ee1df1ccae
If --backup was specified without a --backup-dir, don't preserve the
...
directory timestamps.
2004-05-21 08:43:03 +00:00
Wayne Davison
d62bcc17f3
Changed rprintf() calls that included strerror() to use rsyserr().
2004-05-15 19:31:10 +00:00
Wayne Davison
384431886a
Changed PERMS_SKIP_TIME to PERMS_SKIP_MTIME.
2004-05-13 18:51:22 +00:00
Wayne Davison
82b302d928
Got rid of some useless externs.
2004-05-13 18:41:17 +00:00