Wayne Davison
25526eb3fe
Simplify the compat logic for local_server
...
Change the logic in compat.c to construct the client_info string value
for a local copy so that the various checks of the string don't need to
make an exception for local_server.
2020-08-27 19:23:13 -07:00
Wayne Davison
6c89f00d1b
Move SUPPORT_ATIMES to rsync.h.
2020-08-03 13:27:00 -07:00
Wayne Davison
dee0993286
Create usage.c for smaller awk-dep rebuilds.
2020-08-03 12:23:18 -07:00
Wayne Davison
47351c2b16
Use RSYNC_GITVER in more output
2020-08-03 10:46:31 -07:00
Wayne Davison
d73c26d2b7
Put git version in a file for between-release versioning.
2020-08-01 00:15:06 -07:00
Wayne Davison
21ecc833ea
Change new stderr options to --stderr=MODE.
2020-07-25 10:03:32 -07:00
Wayne Davison
f9bb8f76ee
Change daemon variable & simplify some option code
...
- Rename daemon_over_rsh -> daemon_connection since it is also used to
indicate if a non-rsh daemon connection is active.
- Move the daemon-over-rsh exception out of server_options() to the one
caller that needs that behavior.
- Don't allow noop_io_until_death() to be short-circuited when talking
to a daemon over a socket, because it can't send errors via stderr.
2020-07-25 09:36:42 -07:00
Wayne Davison
0a255771f4
Add --errors2stderr & --msgs2protocol options.
2020-07-24 22:48:37 -07:00
Wayne Davison
842d6edfdc
Fix devices-fake test if rsync can't link specials
...
- Add info about hardlinked specials to --version output.
- Use "no hardlink-special" info to ensure that the devices-fake
test will not fail.
2020-07-24 11:33:21 -07:00
Wayne Davison
01742c07e6
Add --mkpath option. Fixes bugzilla bug 4621.
2020-07-23 20:54:38 -07:00
Wayne Davison
d8941be8cb
Simplify the msgs2stderr default logic.
2020-07-23 12:15:50 -07:00
Wayne Davison
592059c8fd
Improve error output for local & remote-shell xfers
2020-07-23 11:23:47 -07:00
Wayne Davison
974f49e22a
Add --crtimes option.
2020-07-22 12:12:18 -07:00
Wayne Davison
91fff802b9
Check for overflow the right way.
2020-07-12 22:45:01 -07:00
Wayne Davison
af531cf787
Add the --stop-after & --stop-at options.
2020-07-12 18:32:41 -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
66ca4fc97b
Allow --block-size's size to have a suffix.
...
Change the block_size global to be an int32.
2020-07-10 13:00:42 -07:00
Wayne Davison
ab110fc8fb
Warning fixes & impossible-failure improvements
...
- Silence a couple warnings for less-common builds.
- Use a better impossible-failure idiom than assert(0).
2020-07-08 12:26:19 -07:00
Wayne Davison
d2d6ad481a
Allow --max-alloc=0 for unlimited.
2020-07-07 11:56:23 -07:00
Wayne Davison
5dcb49c7dd
Allow --bwlimit=0 again.
2020-07-07 11:43:33 -07:00
Wayne Davison
bb16db1747
Send the uid/gid 0 name since not all systems use 0 for root.
2020-07-05 22:51:12 -07:00
Wayne Davison
da45cecfc8
Tweak a couple var names.
2020-07-05 14:22:09 -07:00
Wayne Davison
feb2fff894
Put the optimizations into their own list.
2020-06-30 19:31:59 -07:00
Wayne Davison
d07c2992d1
A few more simple changes & fixes.
2020-06-26 13:19:07 -07:00
Wayne Davison
11eb67eec9
Some memory allocation improvements
...
- All the memory-allocation macros now auto-check for failure and exit
with a failure message that incudes the caller's file and lineno
info. This includes strdup().
- Added the `--max-alloc=SIZE` option to be able to override the memory
allocator's sanity-check limit. It defaults to 1G (as before).
Fixes bugzilla bug 12769.
2020-06-25 20:54:21 -07:00
Wayne Davison
597a751466
Update links to https.
2020-06-22 14:16:21 -07:00
Wayne Davison
3094552311
Add --zl=N opt & improve its docs.
2020-06-22 13:41:42 -07:00
Samuel Henrique
e4c9ff5873
Make --backup be set when --backup-dir is used
2020-06-22 13:05:17 -07:00
Wayne Davison
2b439c1fc8
Disable atimes on macOS.
2020-06-21 15:16:56 -07:00
Wayne Davison
e16b22751a
Add --early-input=FILE option.
2020-06-21 14:32:00 -07:00
Wayne Davison
dfa34b4792
Some more docs/news changes.
...
- Mention the -VV behavior.
- Mention how the protect-args default is presented in -V list.
2020-06-21 08:58:45 -07:00
Wayne Davison
66fd34ed84
Mention atimes & protected-args in capabilities.
2020-06-20 23:28:19 -07:00
Wayne Davison
e6cfebb578
We only need one capability marked with a "*".
2020-06-20 22:09:08 -07:00
Wayne Davison
5d2379d93f
Mention "asm" instead of "ASM".
2020-06-20 21:59:51 -07:00
Wayne Davison
6884ccbd2f
Mention openssl-crypto in -VV list.
2020-06-20 21:44:46 -07:00
Wayne Davison
6b237b0fe9
Require -VV to see SIMD & ASM in version output
2020-06-20 19:57:11 -07:00
Wayne Davison
2c681b874e
Some fixes after compiling on cygwin.
2020-06-16 22:58:24 -07:00
Wayne Davison
e63ff70eae
Some indentation fixes.
2020-06-13 19:15:02 -07:00
Wayne Davison
cdf58a7aba
Change alt_dest_name() to alt_dest_opt().
2020-06-13 12:04:13 -07:00
Wayne Davison
1d6c9676f9
Change 3 alt-dest vars to just one + some defines.
2020-06-13 11:47:08 -07:00
Wayne Davison
bb484a799e
The unalias argv array needs room for a trailing NULL.
2020-06-12 23:19:14 -07:00
Wayne Davison
d4fc18f375
Use the refused-option code to disable options that aren't compiled into the source.
2020-06-11 22:53:29 -07:00
Wayne Davison
cba00be622
Translate man page's option list into .h files for options.h to use.
2020-06-11 20:34:23 -07:00
Wayne Davison
342579aa6f
Make -V the short opt for --version.
2020-06-04 15:52:38 -07:00
Wayne Davison
c0268d9217
Some improvements for --msgs2stderr and --daemon.
...
- 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.
2020-05-31 16:02:46 -07:00
Wayne Davison
f60bd811e9
Use MSG_FLUSH in a couple more spots.
2020-05-28 00:41:39 -07:00
Wayne Davison
8809f65b13
A couple minor tweaks.
2020-05-26 22:36:56 -07:00
Wayne Davison
5710d2fe2e
Simplify the capabilities array.
2020-05-26 08:05:24 -07:00
Wayne Davison
23a37ecac4
Get indent right.
2020-05-25 23:33:11 -07:00
Wayne Davison
47bae3abf6
Improve output of capabilities in --version list.
...
It now wraps better as the "no " prefixes change, and it makes it easier
to maintain patches that add items into the capabilities list.
2020-05-25 23:24:46 -07:00