Wayne Davison [Fri, 26 Jun 2020 02:59:19 +0000 (19:59 -0700)]
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.
Wayne Davison [Wed, 24 Jun 2020 02:14:11 +0000 (19:14 -0700)]
Avoid negotiating a "none" choice by default
The client does not pass "none" as a negotiation choice unless it's from
the user's environment list. The server still passes the "none" value
to the client unless its environment var excludes it.
Wayne Davison [Wed, 24 Jun 2020 00:19:58 +0000 (17:19 -0700)]
Improve how the env restricts negotiated strings
- The env on the server side now affects the negotiated strings
that are sent to the client.
- A too-old remote rsync gets a default negotiated string value
so that an env restriction now handles old clients the same way
as new ones.
Hiroshi Takekawa [Tue, 23 Jun 2020 10:17:53 +0000 (19:17 +0900)]
Makefile.in: Use srcdir for installing rsync-ssl
When building out of source tree, we can't find rsync-ssl in the current
directory and installation fails. Fix it by using the srcdir variable for the
path to rsync-ssl.
Wayne Davison [Sun, 21 Jun 2020 01:21:27 +0000 (18:21 -0700)]
More asm improvements
- Only use the asm code if we're on x86_64.
- More changes to decouple asm from simd.
- Check if the -Wa,--noexecstack option works.
- Support --disable-asm configure option.
Wayne Davison [Sat, 20 Jun 2020 15:44:04 +0000 (08:44 -0700)]
Fix conditional directives in the asm file
- Switch .s -> .S to enable the preprocessor.
- Move some defines from mdigest.h to md-defines.h.
- Tweak the asm file to use md-defines.h.
- Add a couple missing .h dependencies in the Makefile.
Caleb Xu [Sat, 20 Jun 2020 04:12:15 +0000 (00:12 -0400)]
lib/md5-asm-x86_64.s: fix build with Apple Clang
The Mach-O x86-64 model doesn't seem to support ".type" and
".size" directives in assembly. Add ifdefs that should allow for
the file to build without issues in Apple Clang.
Prevent unnecessary xattr warning by reordering header inclusion. (#22)
xattr headers have been provided by glibc (at least on Linux/glibc)
for many years now. Reorder the inclusion of xattr headers to
attempt compatibility/legacy after the common case.
This prevents the warning without changing compatibility to
non-glibc systems.
* Add dependency on lib/sysxattrs.h header in Makefile
Co-authored-by: Wayne Davison <wayne@opencoder.net>
Wayne Davison [Fri, 19 Jun 2020 06:51:15 +0000 (23:51 -0700)]
More non-breaking space/dash improvements
- In html, use css more for non-breakability.
- In nroff, mark more dashes as non-breaking in code->bold sections,
and get rid of backslashed dashes in preformatted blocks.
Wayne Davison [Fri, 19 Jun 2020 05:52:47 +0000 (22:52 -0700)]
Use `-⁠` instead of `‑`
Using a non-breaking zero-width char after a dash makes the browser
avoiding breaking on that dash and also makes it match a dash in a
search. This is better than a non-breaking dash char, which does not
match a dash in a search.
Wayne Davison [Thu, 18 Jun 2020 17:49:34 +0000 (10:49 -0700)]
Use documentation to extract 2 more .h lists
- Change default_cvsignore char[] into a define.
- Make the DEFAULT_DONT_COMPRESS and DEFAULT_CVSIGNORE defines get set
based on their info in rsync.1.md.
- Add a few more don't-compress suffixes from Simon Matter.