Wayne Davison
1b81f797a2
Fixed a problem with the output of %f for non-daemon rsyncs.
2006-12-23 20:48:29 +00:00
Wayne Davison
dbd9ea3e5a
Use F_ROOTDIR() in place of dir.root.
2006-12-17 00:40:36 +00:00
Wayne Davison
aac5cab80b
Changed the static file_struct var to match the changes in rsync.h.
2006-12-16 19:24:17 +00:00
Wayne Davison
112d728f48
Use the latest F_*() accessors.
2006-12-05 15:59:58 +00:00
Wayne Davison
82ad07c418
- Typical tranfers now save 12-20 bytes per file because several vars
...
were moved out of file_struct into an optional member-var setup.
- Renamed and reorganized the FLAG_* defines.
- Use NDX_DONE instead of a literal -1 when sending/checking the
end-of-phase index value.
2006-12-03 06:44:16 +00:00
Wayne Davison
60d465dbdd
Use the new ICONV_CONST definition.
2006-11-20 18:17:48 +00:00
Wayne Davison
4a19c3b254
Added "const" to appropriate char pointers.
2006-11-19 00:23:21 +00:00
Wayne Davison
45760f5f05
Allow all itemize types to change all-dots (no changes) into spaces.
2006-11-10 05:06:59 +00:00
Wayne Davison
2dc7b8bd0e
Got rid of type-casting into isFOO() and toFOO() functions by
...
using static inline functions that take a signed char pointer.
2006-11-09 02:39:29 +00:00
Wayne Davison
25f637a334
Got rid of EXIT_OR_RETURN() macro again -- switching to a better
...
recursion-prevention heuristic in _exit_cleanup().
2006-10-14 18:51:21 +00:00
Wayne Davison
c9bce0b8f8
Changed strcpy() calls into strlcpy() calls, just to be extra safe.
2006-10-13 23:17:33 +00:00
Wayne Davison
f863b76300
Changed one more exit_cleanup() call into EXIT_OR_RETURN().
2006-10-13 14:28:56 +00:00
Wayne Davison
9ef506a2b2
If in_exit_cleanup is set, some of our functions return instead of
...
calling exit_cleanup() (which is a safer way to avoid an infinite
loop when the exit code uses the log functions than allowing the
_exit_cleanup() function to return back into our code).
2006-10-13 07:38:18 +00:00
Wayne Davison
ec55b4f2fb
Changed the indent for one else ... if section.
2006-10-12 03:01:01 +00:00
Wayne Davison
6fb7cc38a2
Make sure that the %f escape always has the full path info when
...
receiving files.
2006-06-16 09:01:31 +00:00
Wayne Davison
04c841190f
- Pass "module_id" to the two log-related settings that are no longer
...
global.
- Added a "restart" arg to log_init() that lets us request that logging
be reinitialized if the log-file/syslog-facility params changed.
2006-06-07 23:05:17 +00:00
Wayne Davison
d0133e6eba
- Got rid of the FNAME logcode enum.
...
- rwrite() no longer supports newlines at the start of the string.
- maybe_log_item() avoids outputting a non-significant update to
the log file if the log-file-format doesn't include %i.
2006-06-01 08:04:43 +00:00
Wayne Davison
ec52c3b9da
Skip transfer logging if the logfile_format string is empty.
2006-05-30 17:41:04 +00:00
Wayne Davison
b534351058
- Use the renamed stdout_format_has_i, stdout_format_has_o_or_i, and
...
stdout_format variables.
- In rwrite(), make FNAME output only go to the client.
- Added an arg to log_item() that indicates what kind of output is
desired: FNAME (stdout only), FLOG (log file only), or FINFO (both).
2006-05-29 22:56:48 +00:00
Wayne Davison
b3e8e7c79e
Make --quiet quieter (like it used to be), but also don't allow it
...
to interfere with any logging of messages that is going on.
2006-05-14 00:27:33 +00:00
Wayne Davison
13b597fa71
- Use the new logfile_* variables that are set by the --log-file
...
option instead of the old daemon_log_* variables.
- Renamed the "logfile" variable "logfile_fp".
- Enhanced the logic in rwrite() to handle client-side FLOG output.
2006-05-09 18:31:10 +00:00
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