summaryrefslogtreecommitdiff
path: root/log.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve various things in the checksum codeWayne Davison2022-09-101-5/+5
| | | | | | | | | | - Size flist checksum data to hold the active size, not the max. - Add a negotiated hash method to the daemon auth code. - Use EVP for all openssl digests. This makes it easy to add more openssl digest methods and avoids deprecation warnings. - Support a way to re-enable deprecated digests via openssl conf file and allow a default file to be configured. - Supply a simple openssl-rsync.cnf file to enable legacy digests.
* Preparing for release of 3.2.4pre2v3.2.4pre2Wayne Davison2022-01-151-1/+1
|
* Preparing for release of 3.2.4pre1v3.2.4pre1Wayne Davison2022-01-021-1/+1
|
* Improve --omit-dir-times & --omit-link-timesWayne Davison2021-10-101-3/+3
| | | | | The code now better handles skipping time setting on dirs and/or links when --atimes and/or --crtimes is specified without --times.
* Make gcc die on init overflow of an array.Wayne Davison2020-09-291-7/+17
| | | | | | | - Use -pedantic-errors with gcc to make an array-init fatal. - Fix all the extra warnings that gcc outputs due to this option. - Also add -Wno-pedantic to gcc if we're using the internal popt code (since it has lots of pedantic issues).
* Use RSYNC_GITVER in more outputWayne Davison2020-08-031-2/+2
|
* Improve error output for local & remote-shell xfersWayne Davison2020-07-231-3/+3
|
* Add --crtimes option.Wayne Davison2020-07-221-2/+3
|
* Mention file & line on OOM and overflow errors.Wayne Davison2020-07-121-2/+2
| | | | | Also simplify output of src file paths in errors & warnings when built in a alternate build dir.
* Some number & string improvementsWayne Davison2020-07-111-3/+7
| | | | | | | - Use strdup(do_big_num(...)) to replace num_to_byte_string(...). - Allow a ',' for a decimal point in a SIZE option in some locales. - Get rid of old (now unused) strdup() compatibility function. - Try harder to include the newline in a single error message write.
* Output who_am_i() info in all rsyserr() messages.Wayne Davison2020-06-141-2/+1
|
* Don't use c++ comments.Wayne Davison2020-06-131-4/+4
|
* Some indentation fixes.Wayne Davison2020-06-131-3/+2
|
* Only sender can output non-final stats on errorWayne Davison2020-06-041-4/+8
| | | | The receiving side's stats are split between 2 processes until the very end.
* Some improvements for --msgs2stderr and --daemon.Wayne Davison2020-05-311-32/+29
| | | | | | | - Set am_daemon to -1 (from 1) when the daemon is run via rsh. - Only disable --msgs2stderr for a normal (socket) daemon. - Forward a -q to the server if --msgs2stderr was also specified. - Added --no-msgs2stderr option to allow it to be overridden.
* Merge pull request #5 from benrubson/daemonstatsWayne Davison2020-05-281-6/+5
|\ | | | | Have daemon log data sent/received even when exiting with an error.
| * Log data sent/received even if errorbenrubson2020-05-261-6/+5
| |
* | The xxh* checksums don't need to be reversed on output.Wayne Davison2020-05-281-2/+2
|/
* Improve some early debug-message newlines.Wayne Davison2020-05-231-22/+27
| | | | | | Avoid a newline issue during the output of --DEBUG=CSUM info from both the server and the client -- we need to output the full message with its newline as much as possible.
* Some var cleanup; move test-util vars into t_stub.c.Wayne Davison2020-04-261-1/+0
|
* Added --atimes and --set-noatime options.Wayne Davison2020-04-231-1/+2
|
* Set Copyright years and make them easier to updateWayne Davison2020-04-091-1/+1
| | | | | | | | I replaced git-set-file-times with an improved version that I wrote recently (in python3). A new script uses it to figure out the last-modified year for each *.[ch] file and updates its copyright. It also puts the latest year into the latest-year.h file for the output of --version.
* Tweak some indentation.Wayne Davison2020-04-051-2/+2
|
* Try to fix the iconv crash in bug 11338.Wayne Davison2019-03-161-4/+7
| | | | | Applying Michal Ruprich's suggested patch for the rwrite() function that should hopefully help with a bug that I couldn't reproduce.
* Tweak the copyright year.Wayne Davison2019-03-161-1/+1
|
* Tweak copyright date.Wayne Davison2018-01-141-1/+1
|
* More archaic-checksum improvements. This makes the len vars clearerWayne Davison2017-11-071-5/+6
| | | | and ensures that only the flist code gets the 2-byte digest len.
* Add "syslog tag" to rsync daemon config.Wayne Davison2017-04-291-9/+8
|
* Add --checksum-choice option to choose the checksum algorithms.Wayne Davison2016-05-011-8/+12
|
* Fixed logging of %b & %c when using --log-file.Wayne Davison2015-09-071-12/+1
| | | | | | | The %b and %c escapes were outputting cumulative values when logged via --log-file only (the bug didn't affect daemon transfer logging or the output of the client's --out-format info). Also unified the %b & %c switch case to make it easier to maintain. Fixes bug 11496.
* Update the copyright year.Wayne Davison2015-08-081-1/+1
|
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Tweak log_delete() to send MSG_DELETED more.Wayne Davison2013-11-281-4/+4
| | | | | | | | If the client is the sender and it is wanting to log deletes, the current generator code neglects to send MSG_DELETED to the client side unless some delete verbosity is enabled. With this new version on the generator side, the logfile will now mention deletes, even if the sending (client) side is an older rsync. Fixes bug 10182.
* Git rid of uneeded extern.Wayne Davison2013-10-271-1/+0
|
* Don't use comma_num() in FLOG output.Wayne Davison2013-10-271-3/+4
|
* Move some code from util.c to util2.c and add sum_as_hex().Wayne Davison2013-06-111-11/+2
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* Let's cast getpid() to an int instead of a long for snprintf().Wayne Davison2011-10-081-5/+3
|
* Some minor variable and flag cleanup.Wayne Davison2011-01-291-2/+0
|
* Point out that the file_struct in log_delete is zero-initializedMatt McCutchen2010-04-241-1/+1
| | | | | | | because it is static. It took me long enough to realize this that I think it is worth documenting.
* Mention who got the unknown logcode.Wayne Davison2009-11-081-1/+1
|
* More improvements for abnormal exits.Wayne Davison2009-11-081-1/+0
|
* Try to silence some warnings from "checker".Wayne Davison2009-11-071-1/+1
|
* Added notifications about error-exit values:Wayne Davison2009-11-071-1/+2
| | | | | | | | | | - The receiver notifies the generator if it is exiting with an error, and then, if it is a server, waits around for the generator to die. This ensures that the client side has time to read the error. - The generator or sender will notifiy the other side of the transfer of an error-exit value if protocol 31 is in effect. This will get rid of some "connection unexpectedly closed" errors that are really expected events due to a fatal exit on the other side.
* A daemon treats --msgs2stderr as "output only to the log, not the user".Wayne Davison2009-11-011-4/+10
|
* Make sure rwrite() can handle any logcode value in --msgs2stderr mode.Wayne Davison2009-11-011-0/+4
|
* Fix %b and %c so that they count per-transfer bytes again.Wayne Davison2009-10-251-31/+33
|
* Enhance log_format_has() to understand the "'" modifier.Wayne Davison2009-10-251-1/+3
|
* Give iconvbufs() an ICB_INIT flag.Wayne Davison2009-10-231-1/+1
|
* A major overhaul of I/O routines, creating perform_io().Wayne Davison2009-10-171-2/+2
| | | | | | | | | | | | | | | | | | Files-from data is now sent as multiplexed I/O so that it can mingle with any messages (such as debug output). Requires protocol 31. Protocol 31 no longer disables output verbosity in a couple instances that used to cause protocol issues. Got rid of MSG_* messages that have implied raw data that follows after them. We instead send a negative index value as a part of the raw data stream, which is guaranteed to be output together with the following data. This only affects the (in-progress) protocol 31 and the (self- contained) communication stream from the receiver to the generator. Added --debug=IO and improved --debug=FLIST. Some --debug=IO output requires --msgs2stderr to be used to see it (i.e. sending a message about sending a message would send another message, ad infinitum).