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
9a31746b10
Use iconv() (when available) to allow us to output multibyte
...
characters that are legal in the current locale.
2006-02-04 22:03:39 +00:00
Wayne Davison
998113fedf
Needed to make %G output "DEFAULT" when gid == GID_NONE.
2006-02-04 18:40:41 +00:00
Wayne Davison
7cfb250c93
Made the new %M escape handle multiple spaces in the timestamp
...
(which can occur if the user's system doesn't have strftime()).
2006-02-03 22:41:19 +00:00
Wayne Davison
fa9e950b1a
Mention who is outputting the "rsync error" or "rsync warning".
2006-02-03 20:39:58 +00:00
Wayne Davison
427b6179b9
- Allow tab characters to appear in rwrite() messages.
...
- Added %M (modtime), %U (uid), %G (gid), and %B (perm bits) to
log_formatted().
2006-02-03 19:59:25 +00:00
Wayne Davison
b66e31bf15
Turn an FSOCKERR into a normal FERROR if it's not going to our
...
sibling.
2006-02-01 19:33:12 +00:00
Wayne Davison
f8d47c1cb4
Added 'S' to the itemized output for special files.
2006-01-26 10:39:01 +00:00
Wayne Davison
4cff7c50db
Fixed a problem in the output of %i's 'T' flag on devices and
...
got rid of the unused 'a' flag.
2006-01-24 22:22:17 +00:00
Wayne Davison
0ace7b2567
FERROR messages also need to leave leading newlines unmangled.
2006-01-24 01:07:19 +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
c2be690cc6
Got rid of a few empty lines.
2006-01-17 02:16:57 +00:00
Wayne Davison
be0602ec3c
- We now filter all rwrite() output when it goes out to the terminal
...
to make sure that it contains readable characters.
- Got rid of the buf[len] = '\0' in rwrite().
- Call f_name() with revised args (which also replaces f_name_to()).
2006-01-14 20:26:28 +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
b74b3d538e
+ Changed two buffers to use BIGPATHBUFLEN instead of MAXPATHLEN+512.
...
+ Changed a strncpy() call into a (more appropriate) memcpy() call.
+ Made the ellipsis[] string static because some older compilers may
not like the dynamic initialization of a character string.
+ Expanded some 1-line "case ... break;" statements onto separate
lines.
2006-01-05 02:29:16 +00:00
Wayne Davison
4a50a2176e
Added RERR_SIGNAL1's message and tweaked ERR_SIGNAL.
2005-12-16 23:48:31 +00:00
Wayne Davison
a3887c2644
Improved the RERR_SIGNAL message to include all possible signals.
2005-12-16 00:18:41 +00:00
Wayne Davison
6d4ecad122
- Eliminate an all-dot itemization for a locally-copied file.
...
- Got rid of some redundant output in maybe_log_item().
2005-12-15 22:59:53 +00:00
Wayne Davison
f14a65d94c
Tweaked the error message for RERR_WAITCHILD.
2005-10-26 15:50:14 +00:00
Wayne Davison
6016841086
Changed RERR_CRASH to RERR_CRASHED.
2005-09-26 17:11:03 +00:00
Wayne Davison
0047f535ef
Handle new RERR_CRASH AND RERR_TERMINATED exit codes.
2005-09-26 17:07:50 +00:00
Wayne Davison
f2b6fe44a6
- Fixed the overzealous outputting of unchanged hard-linked items
...
when verbose > 1.
- An unchanged hard-link with -i (log-format w/%i) now changes the
trailing dots to spaces.
2005-06-09 22:27:22 +00:00
Wayne Davison
64c37826e4
- Changed log_open() into two functions, logfile_open() and
...
logfile_reopen().
- Changed log_close() into logfile_close().
- Improved the logic in logit().
2005-04-14 16:08:10 +00:00
Wayne Davison
6afb90778b
If we can't open the daemon's log file, fall-back to using
...
syslog (rather than trying to output an error on stderr,
which would usually be lost, and then exiting).
2005-04-12 23:03:49 +00:00
Wayne Davison
0455cd933d
- Made the handling of adjacent percents (e.g. "%%b") work like it
...
did in older versions.
- Added a comment for log_format_has().
2005-03-31 03:01:26 +00:00
Wayne Davison
d9c0051fae
In log_formatted(), add the newline to the format string so
...
that we can call rwrite() instead of rprintf().
2005-03-31 01:09:18 +00:00
Wayne Davison
126e7affb7
Enabled width-sizing for %L.
2005-03-31 00:50:58 +00:00
Wayne Davison
16f960feb5
Added log_format_has().
2005-03-31 00:19:13 +00:00
Wayne Davison
e145d51ba6
Make sure that we can't scan past the end of the format string.
2005-03-30 23:39:00 +00:00
Wayne Davison
dcbae65444
Optimized '%f' a little more.
2005-03-30 20:41:11 +00:00
Wayne Davison
b4bf2b5a7e
Allow %i to have a field width.
2005-03-30 20:18:48 +00:00
Wayne Davison
9baed7609c
- Allow the infix field width to start with a '-'.
...
- Apply the field width to all escapes, not just numeric ones.
2005-03-30 19:44:29 +00:00
Wayne Davison
ddd74b67be
Allow the escapes in the log-format string to contain a numeric
...
field width (e.g. %8l %07p).
2005-03-30 18:27:09 +00:00
Wayne Davison
c1759b9fa2
Changed %i to output '>' for a local copy.
2005-03-30 16:35:01 +00:00
Wayne Davison
cc3e0770bc
Decided that the '<' and '>' output in the %i format were
...
the opposite of what they should be.
2005-03-27 05:32:36 +00:00
Wayne Davison
26718401fb
Added the error message for RERR_LOG_FAILURE and used it when
...
the daemon can't open the log-file.
2005-03-15 23:23:41 +00:00
Wayne Davison
d5609e969d
Output a '*' at the start of the %i string when deleting.
2005-03-13 05:35:49 +00:00
Wayne Davison
fd84673e54
Handle the new way that 'c' and 'h' get output by "%i".
2005-03-09 18:53:58 +00:00
Wayne Davison
9b9dd06894
We need to mention any change to a directory, not just a time change.
...
Yeah, this isn't very consistent with how files are treated, but it's
backward compatible.
2005-03-09 04:00:20 +00:00
Wayne Davison
24cecf1365
Define the message for RERR_DEL_LIMIT.
2005-03-05 18:58:35 +00:00
Wayne Davison
ca62acc3ca
- Make use of the new ITEM_* flags to mention when things were
...
updated locally instead of being updated remotely.
- Added support for outputting 'a' in the itemized log-output (for
future use in extended-attribute handling).
2005-03-05 00:21:50 +00:00
Wayne Davison
1c3e3679ef
Added maybe_log_item() for use by the sender and receiver.
2005-03-04 16:52:00 +00:00
Wayne Davison
afc65a5acf
- Replaced log_send() and log_recv() with log_item().
...
- Made log_formatted() and log_item() take an "hlink" arg that
will be used to pass in a hard-link name for use in %L.
2005-03-04 16:07:50 +00:00
Wayne Davison
41b5b5e756
The log_delete() function may now be called even when the client is
...
not getting delete messages, which ensures that the daemon's log-
file output includes all deletions when per-file logging is enabled.
2005-02-26 04:49:30 +00:00
Wayne Davison
4a239e98f6
Reposition log_open() and log_close().
2005-02-21 00:38:15 +00:00
Wayne Davison
1eec003a80
The FCLIENT log code aviods putting the message into the daemon's
...
log file and instead sends a FINFO message to the client. This is
used when the daemon wants to log a better message locally than it
is sending to the client. Improved log_delete() to make use of this
idiom if it needs to log a separate delete message for the daemon
and the client.
2005-02-19 22:16:41 +00:00
Wayne Davison
088aff1a48
- Don't log a delete message to the daemon log in dry-run mode.
...
- The daemon's wrote/read log message now uses the terms
sent/received.
2005-02-19 17:23:08 +00:00
Wayne Davison
d6707171e6
Decide whether to log a delete message via the default format by
...
checking the new log_format_has_o_or_i variable, not itemize_changes.
2005-02-19 03:54:13 +00:00
Wayne Davison
19bc826d8b
- Tweaked the letters output by "%i", including adding support for
...
logging a deleted item and an identical item.
- Added log_delete(), a routine that either logs the fact that a
deletion happened, or sends a MSG_DELETED message to the client
side (or both if we're a daemon server receiver).
2005-02-19 02:39:26 +00:00