Wayne Davison
f47e5a7732
Mention file & line on OOM and overflow errors.
...
Also simplify output of src file paths in errors & warnings when
built in a alternate build dir.
2020-07-12 23:25:21 -07:00
Wayne Davison
da7a350667
Some number & string improvements
...
- 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.
2020-07-11 11:39:36 -07:00
Wayne Davison
299430a6c1
Lack of "saw" values now reported as "INVALID"; tweak a comment.
2020-06-27 23:14:35 -07:00
Wayne Davison
3a6f06003c
Improve the output when a negotiation fails.
2020-06-27 10:51:29 -07:00
Wayne Davison
e63ff70eae
Some indentation fixes.
2020-06-13 19:15:02 -07:00
benrubson
32fe5fbc11
Correctly send last error to sender
2020-05-26 16:24:30 +02:00
Wayne Davison
c5fabfb068
Set Copyright years and make them easier to update
...
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.
2020-04-09 15:11:37 -07:00
Wayne Davison
b32aa4797d
Make exit_cleanup() use _exit() if called from a signal handler.
...
Fixes bug #13982 .
2020-04-05 10:26:40 -07:00
Wayne Davison
3e2e4b5a33
Tweak the copyright year.
2019-03-16 09:15:49 -07:00
Wayne Davison
ad17b21889
Silence fall-through warnings.
2019-01-04 15:06:30 -08:00
Wayne Davison
473108ae6e
Tweak copyright date.
2018-01-14 19:55:07 -08:00
Wayne Davison
453914e35b
Update the copyright year.
2015-08-08 12:47:03 -07:00
Wayne Davison
a955e93316
Mention DRY RUN in --debug=exit output.
2014-09-06 10:47:13 -07:00
Wayne Davison
dfa5b49110
Bump the year to 2014.
2014-01-26 09:29:15 -08:00
Wayne Davison
a106ed78d5
Fix the leaving of a temp file w/o partial-file saving.
...
Fixed bug 10350.
2014-01-19 14:35:05 -08:00
Wayne Davison
9c7d755dfe
Flush write buffer on an aborted in-place transfer.
2013-09-28 10:40:27 -07:00
Wayne Davison
9bf065860f
Improve logic of code vs exit_code (etc.) in cleanup.
2013-05-26 16:23:37 -07:00
Wayne Davison
d4070db631
Avoid I/O via signal-handler thread.
...
The cleanup code will try to flush the output buffer in some
circumstances, which is not valid if we're handling an async signal
(since it might have interrupted some partial I/O in the main thread).
These signals now set a flag and try to let the main I/O handler take
care of the exit strategy. Fixes a protocol error that could happen
when trying to exit after a kill signal.
2013-05-26 16:22:56 -07:00
Wayne Davison
7e1a9c4d79
Update copyright year.
2013-01-19 11:05:53 -08:00
Wayne Davison
d51a3adb4f
Set the modtime to 0 on a partial file.
...
Fixes debian bug 624826.
2012-05-05 08:01:09 -07:00
Wayne Davison
020df16def
Make case_N.h more generic.
2010-08-26 11:13:02 -07:00
Wayne Davison
e34f43495c
Don't try to send MSG_ERROR_EXIT after a timeout.
2010-01-02 09:14:19 -08:00
Wayne Davison
82b2a31a46
Added an am_receiver variable.
2009-12-19 10:14:49 -08:00
Wayne Davison
0c2e8f9364
Don't send MSG_ERROR_EXIT messages at the end of the transfer.
...
Added some debug output for MSG_ERROR_EXIT messages.
2009-12-12 08:54:36 -08:00
Wayne Davison
e4c598c830
Make some RERR_* choices better, and another noop_io_until_death() tweak.
2009-11-16 12:35:17 -08:00
Wayne Davison
ae598f3847
Don't complain about a socket EOF unless it affects a read.
...
Make sure a write error drains any messages in the input buffer.
2009-11-15 12:54:55 -08:00
Wayne Davison
304d7b5817
More improvements for abnormal exits.
2009-11-08 11:45:55 -08:00
Wayne Davison
9270e88d76
Save first filename and linenum in case exit_cleanup() recurses.
2009-11-08 00:12:33 -08:00
Wayne Davison
f9185203ee
Added notifications about error-exit values:
...
- 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.
2009-11-07 01:22:11 -08:00
Wayne Davison
b3bf9b9df9
Update the copyright year.
2009-01-03 10:57:14 -08:00
Wayne Davison
37077bd339
Improved the handling of --msgs2stderr a little more.
2008-07-20 22:27:23 -07:00
Wayne Davison
951e826b75
Added the --info=FLAGS an --debug=FLAGS options, which allows
...
fine-grained output control (in addition to the coarse -v).
2008-07-13 20:51:08 -07:00
Wayne Davison
bb4e4d889f
The --progress output now leaves the cursor at the end of the line
...
(instead of the start) in order to be extra sure that an error won't
overwrite it. We also ensure that the progress option can't be enabled
on the server side.
2008-07-05 00:31:46 -07:00
Wayne Davison
f31850966f
Improved the progress_is_active code to not overwrite the progress
...
output in more circumstances.
2008-06-04 09:01:02 -07:00
Wayne Davison
59d2cd5a7f
When running in --progress mode with a progress message active, the
...
client now outputs a newline prior to an error message, which avoids
overwriting the active file's last progress line.
2008-04-15 08:50:14 -07:00
Wayne Davison
d3d07a5e86
Include 2008 in the copyright years.
2008-03-01 12:01:41 -08:00
Wayne Davison
3f0211b63a
New logging categories added to allow differentiation between
...
transfer errors, normal errors, and warnings. New messages are
translated into old FERROR/FINFO categories for older protocols.
2007-11-22 10:05:36 -08:00
Wayne Davison
93204ccae2
Made some more char pointers const.
2007-10-28 21:42:41 +00:00
Wayne Davison
969cdffbea
Prevent a server from outputting an end-of-run message about its
...
error-code that cannot be sent successfully.
2007-09-15 15:30:45 +00:00
Wayne Davison
8e41b68e8f
Tweaking the license text a bit more.
2007-07-10 13:55:49 +00:00
Wayne Davison
4fd842f98d
Switching to GPL 3.
2007-07-07 05:33:14 +00:00
Wayne Davison
377d22ab9f
If the server is exiting with an error, delay our exit just a little
...
in order to give the client side a better chance of reading any error
message we just sent.
2007-05-06 19:44:26 +00:00
Wayne Davison
16edf86595
The improved --xattrs option is landing on the trunk.
2007-04-07 17:22:25 +00:00
Wayne Davison
ba2133d6ad
Further modifications to the copyright comment section.
2007-02-04 14:54:58 +00:00
Wayne Davison
e3794138d8
Use the new case_N.h file to make sure that our cleanup_step case
...
statements never get out of sequence when the code changes.
2006-10-15 15:43:26 +00:00
Wayne Davison
154c345db0
Improved the _exit_cleanup() function to handle potential recursions
...
back to the function via the calls that it is making. The new code
treats each recursion back into the function as an opportunity to
take up where we left off (skipping whatever step just failed).
2006-10-14 19:58:52 +00:00
Wayne Davison
2356d73bb4
The cleanup code that handles moving the temp file to the partial
...
file needed to check that cleanup_fname was not NULL to prevent
any possibility of a recursion starting into that code again.
2006-10-14 02:29:29 +00:00
Wayne Davison
b1b54199ef
- When exiting, set the flag "in_exit_cleanup".
...
- Mark _exit_cleanup() with NORETURN.
- Don't ever return from _exit_cleanup().
2006-10-13 07:38:15 +00:00
Wayne Davison
03dbc0b831
- Improved the setting of cleanup_new_fname and cleanup_fname.
...
- Don't try to keep a partial file if cleanup_new_fname is not set.
2006-05-18 18:52:40 +00:00
Wayne Davison
1cfcb8af11
Revised the logic for when to call log_exit() to handle the
...
new --log-file option.
2006-05-09 18:31:00 +00:00