Wayne Davison
f1c9bcd0fc
Cast the enum in rwrite() when calling send_msg().
2006-05-03 16:58:36 +00:00
Wayne Davison
3723548ded
Use send_msg() when forwarding a log message, not io_multiplex_write().
...
This allows send_msg() to decide if the message should be sent right
away, or should be deferred.
2006-05-03 16:17:49 +00:00
Wayne Davison
38de2866e5
Made log_init() call timestring() instead of just localtime() prior to a
...
chroot (note that timestring() makes use of localtime() plus strftime()).
2006-05-03 06:11:11 +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
ceca8ccac8
We don't need log_initialised exported after all.
2006-04-08 16:04:34 +00:00
Wayne Davison
e63aeb6d68
Made log_initialised public.
2006-04-06 07:33:12 +00:00
Wayne Davison
43eae40e45
Include the version number when we exit with an error or warning.
2006-03-28 18:23:24 +00:00
Wayne Davison
c5b7aa1532
The orig_umask value is now a mode_t.
2006-02-24 01:56:26 +00:00
Wayne Davison
8d94d27af0
Moved an extern into its proper place.
2006-02-24 01:39:10 +00:00
Wayne Davison
503f163446
Decided against shortening the output of --itemize-changes.
2006-02-09 01:17:01 +00:00
Wayne Davison
507433f6ca
Don't call isprint() if --8-bit was specified.
2006-02-06 18:42:02 +00:00
Wayne Davison
3648ab3a24
- The iconv-supporting code can now ask filtered_fwrite() to use
...
isprint() when iconv() could not be setup.
- Changed the output idiom for escaped chars to use \#123 instead
of \0123 because that makes it possible for a script to know for
sure what version of rsync did the output (and thus, what the
unescape rules are).
2006-02-06 16:54:12 +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
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