rsync.git
19 months agoPreparing for release of 3.2.7pre1 v3.2.7pre1
Wayne Davison [Fri, 30 Sep 2022 19:36:21 +0000 (12:36 -0700)]
Preparing for release of 3.2.7pre1

19 months agoA few more doc tweaks & comment tweaks.
Wayne Davison [Fri, 30 Sep 2022 19:34:58 +0000 (12:34 -0700)]
A few more doc tweaks & comment tweaks.

19 months agoExplicitly ignore snprintf() return value.
Wayne Davison [Fri, 30 Sep 2022 18:50:09 +0000 (11:50 -0700)]
Explicitly ignore snprintf() return value.

19 months agoMore NEWS updates.
Wayne Davison [Sun, 25 Sep 2022 19:49:45 +0000 (12:49 -0700)]
More NEWS updates.

19 months agoFix compile w/o openssl; disable sha256 & sha512 for --checksum.
Wayne Davison [Sun, 25 Sep 2022 19:42:09 +0000 (12:42 -0700)]
Fix compile w/o openssl; disable sha256 & sha512 for --checksum.

19 months agoAvoid test -e.
Wayne Davison [Wed, 21 Sep 2022 04:50:07 +0000 (21:50 -0700)]
Avoid test -e.

19 months agoFix a link.
Wayne Davison [Tue, 20 Sep 2022 07:12:49 +0000 (00:12 -0700)]
Fix a link.

19 months agoSome "use chroot" improvements.
Wayne Davison [Tue, 20 Sep 2022 05:37:29 +0000 (22:37 -0700)]
Some "use chroot" improvements.

- The sanitize_paths variable was set too often. It only needs to be set
  when the "inner" path is not "/".  This change avoids sanitizing &
  munging things for a path=/ module just because chroot is off.
- The default for "use chroot" is now "unset" instead of "true".  When
  unset it checks if chrooting works, and if not, it proceeds with a
  sanitized copy instead of totally failing to work.  This makes it
  easier to setup a non-root rsync daemon, for instance.  It will have
  no effect on a typical Linux root-run daemon where the default will
  continue to use chroot (because chrooting works).  A config file can
  explicitly set "use chroot = true | false" to force the choice.
- Try to improve the "use chroot" manpage.

19 months agoStop importing "re".
Wayne Davison [Tue, 20 Sep 2022 05:36:49 +0000 (22:36 -0700)]
Stop importing "re".

19 months agoPre-compute FILE_SUM_EXTRA_CNT.
Wayne Davison [Thu, 15 Sep 2022 17:25:32 +0000 (10:25 -0700)]
Pre-compute FILE_SUM_EXTRA_CNT.

19 months agoWe always add a slash now that path is cleaned.
Wayne Davison [Thu, 15 Sep 2022 17:13:07 +0000 (10:13 -0700)]
We always add a slash now that path is cleaned.

19 months agoUse string length diff heuristic to skip Levenshtein Algo (#369)
Kenneth Finnegan [Thu, 15 Sep 2022 17:12:02 +0000 (10:12 -0700)]
Use string length diff heuristic to skip Levenshtein Algo (#369)

When using the --fuzzy option to try and find close matches locally,
the edit distance algorithm used is O(N^2), which can get painful on
CPU constrained systems when working in folders with tens of thousands
of files in it.

The lower bound on the calculated Levenshtein distance is the difference
of the two strings being compared, so if that difference is larger than
the current best match, the calculation of the exact edit distance between
the two strings can be skipped.

Testing on the OpenSUSE package repo has shown a 50% reduction in the CPU time
required to plan the rsync transaction.

19 months agoMake the implied-arg adding for --relative more efficient.
Wayne Davison [Wed, 14 Sep 2022 15:20:41 +0000 (08:20 -0700)]
Make the implied-arg adding for --relative more efficient.

19 months agoMore NEWS updates.
Wayne Davison [Wed, 14 Sep 2022 14:53:23 +0000 (07:53 -0700)]
More NEWS updates.

19 months agoFix exclusion of /. with --relative.
Wayne Davison [Wed, 14 Sep 2022 14:14:13 +0000 (07:14 -0700)]
Fix exclusion of /. with --relative.

19 months agoTweak a define.
Wayne Davison [Wed, 14 Sep 2022 14:13:24 +0000 (07:13 -0700)]
Tweak a define.

19 months agoUse UNSUPPORTED instead of PROTOCOL for various validation checks.
Wayne Davison [Wed, 14 Sep 2022 06:38:01 +0000 (23:38 -0700)]
Use UNSUPPORTED instead of PROTOCOL for various validation checks.

19 months agoUse hashlittle2() for xattr hashing
Wayne Davison [Wed, 14 Sep 2022 05:43:01 +0000 (22:43 -0700)]
Use hashlittle2() for xattr hashing

- The non-zero key code is now in hashtable.c
- The hashtable_create() code already checks for OOM

19 months agoAdd hashlittle2() and ensure the hash is never 0
Wayne Davison [Wed, 14 Sep 2022 05:37:39 +0000 (22:37 -0700)]
Add hashlittle2() and ensure the hash is never 0

It's probably time for a faster hash algorithm, but this gives us
the free 64-bit hashing that things like the xattr code can use.

19 months agoFix really silly bug with --relative rules.
Wayne Davison [Wed, 14 Sep 2022 03:56:32 +0000 (20:56 -0700)]
Fix really silly bug with --relative rules.

19 months agoImprove var ref.
Wayne Davison [Wed, 14 Sep 2022 03:55:26 +0000 (20:55 -0700)]
Improve var ref.

19 months agoNEWS tweak.
Wayne Davison [Wed, 14 Sep 2022 03:54:35 +0000 (20:54 -0700)]
NEWS tweak.

19 months agoUpdate NEWS.
Wayne Davison [Tue, 13 Sep 2022 05:04:33 +0000 (22:04 -0700)]
Update NEWS.

19 months agoFix bug with validing remote filter rules.
Wayne Davison [Tue, 13 Sep 2022 05:02:00 +0000 (22:02 -0700)]
Fix bug with validing remote filter rules.

19 months agoMention the filename when unpack_smb_acl() returns an error.
Wayne Davison [Sun, 11 Sep 2022 17:03:16 +0000 (10:03 -0700)]
Mention the filename when unpack_smb_acl() returns an error.

19 months agoRequire a newer protocol to specify the digest list.
Wayne Davison [Sun, 11 Sep 2022 04:52:54 +0000 (21:52 -0700)]
Require a newer protocol to specify the digest list.

19 months agoTalk about the new daemon greeting line.
Wayne Davison [Sun, 11 Sep 2022 04:30:46 +0000 (21:30 -0700)]
Talk about the new daemon greeting line.

19 months agoImprove output of "N-bit" items in json data.
Wayne Davison [Sun, 11 Sep 2022 04:05:07 +0000 (21:05 -0700)]
Improve output of "N-bit" items in json data.

19 months agoAlso change dashes in the dict var names to make jq use easier.
Wayne Davison [Sun, 11 Sep 2022 00:30:54 +0000 (17:30 -0700)]
Also change dashes in the dict var names to make jq use easier.

19 months agoA few more tweaks.
Wayne Davison [Sat, 10 Sep 2022 23:19:21 +0000 (16:19 -0700)]
A few more tweaks.

19 months agoUnify older protect-args capability to secluded-args name.
Wayne Davison [Sat, 10 Sep 2022 23:17:32 +0000 (16:17 -0700)]
Unify older protect-args capability to secluded-args name.

19 months agoUse dict for capabilities & optimizations in json output.
Wayne Davison [Sat, 10 Sep 2022 22:39:25 +0000 (15:39 -0700)]
Use dict for capabilities & optimizations in json output.

19 months agoUse JSON output if --version (-V) is repeated (client side only).
Wayne Davison [Sat, 10 Sep 2022 18:07:01 +0000 (11:07 -0700)]
Use JSON output if --version (-V) is repeated (client side only).

19 months agoAdd support for various SHA checksum digests
Wayne Davison [Sat, 10 Sep 2022 17:23:36 +0000 (10:23 -0700)]
Add support for various SHA checksum digests

The main purpose of the SHA checksums are to allow the daemon auth code
to pick a stonger digest method when negotiating the auth digest to use.
However, the SHA digests are also available for use in file checksums,
should someon really want to use one of them.

The new digests are listed from strongest to weakest at the start of the
daemon auth list, giving them the highest priority.

The new digests are listed from weakest to strongest near the end of the
checksum list, giving them the lowest priority of use for file
checksums.

19 months agoImprove various things in the checksum code
Wayne Davison [Sat, 10 Sep 2022 16:43:47 +0000 (09:43 -0700)]
Improve various things in the checksum code

- 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.

19 months agoTry freebsd-13-1 to fix weird wget issue.
Wayne Davison [Fri, 9 Sep 2022 20:16:27 +0000 (13:16 -0700)]
Try freebsd-13-1 to fix weird wget issue.

19 months agoWhen deleting a tag, del in the patches dir too.
Wayne Davison [Fri, 9 Sep 2022 19:59:22 +0000 (12:59 -0700)]
When deleting a tag, del in the patches dir too.

19 months agoStart 3.2.7dev going.
Wayne Davison [Fri, 9 Sep 2022 19:58:22 +0000 (12:58 -0700)]
Start 3.2.7dev going.

19 months agoPreparing for release of 3.2.6 v3.2.6
Wayne Davison [Fri, 9 Sep 2022 19:23:37 +0000 (12:23 -0700)]
Preparing for release of 3.2.6

19 months agoMention a potential bash security issue with openssh forced commands.
Wayne Davison [Fri, 9 Sep 2022 17:47:09 +0000 (10:47 -0700)]
Mention a potential bash security issue with openssh forced commands.

19 months agoA few more minor tweaks.
Wayne Davison [Fri, 2 Sep 2022 05:07:54 +0000 (22:07 -0700)]
A few more minor tweaks.

19 months agoImprove the daemon info a bit.
Wayne Davison [Fri, 2 Sep 2022 04:56:00 +0000 (21:56 -0700)]
Improve the daemon info a bit.

20 months agoTweak a couple links.
Wayne Davison [Wed, 24 Aug 2022 04:05:54 +0000 (21:05 -0700)]
Tweak a couple links.

20 months agoMention that copying to a case-ignoring filesystem can be problematical.
Wayne Davison [Wed, 24 Aug 2022 03:59:13 +0000 (20:59 -0700)]
Mention that copying to a case-ignoring filesystem can be problematical.

20 months agoFix an unreleased bug handling a leading dot.
Wayne Davison [Wed, 24 Aug 2022 02:38:41 +0000 (19:38 -0700)]
Fix an unreleased bug handling a leading dot.

20 months agoAnother spelling fix.
Wayne Davison [Tue, 23 Aug 2022 22:44:48 +0000 (15:44 -0700)]
Another spelling fix.

20 months agoFix a link.
Wayne Davison [Tue, 23 Aug 2022 22:30:37 +0000 (15:30 -0700)]
Fix a link.

20 months agoFix split limits.
Wayne Davison [Tue, 23 Aug 2022 22:30:16 +0000 (15:30 -0700)]
Fix split limits.

20 months agoRename `--protect-args` to `--secluded-args`.
Wayne Davison [Tue, 23 Aug 2022 15:28:06 +0000 (08:28 -0700)]
Rename `--protect-args` to `--secluded-args`.

20 months agoMore NEWS tweaks.
Wayne Davison [Mon, 22 Aug 2022 15:15:35 +0000 (08:15 -0700)]
More NEWS tweaks.

20 months agoAdd safety check for local --remove-source-files.
Wayne Davison [Sun, 21 Aug 2022 16:56:33 +0000 (09:56 -0700)]
Add safety check for local --remove-source-files.

A local_server copy now includes the dev+ino info from the destination
file so that the sender can make sure that it is not going to delete
the destination file.  Fixes mistakes such as:

  rsync -aiv --remove-source-files dir .

20 months agoMention the latest changes.
Wayne Davison [Sat, 20 Aug 2022 15:28:48 +0000 (08:28 -0700)]
Mention the latest changes.

20 months agoMake sure that the configure.sh script is up-to-date in a release.
Wayne Davison [Fri, 19 Aug 2022 15:57:47 +0000 (08:57 -0700)]
Make sure that the configure.sh script is up-to-date in a release.

20 months agoMention `copy-devices`.
Wayne Davison [Fri, 19 Aug 2022 15:56:42 +0000 (08:56 -0700)]
Mention `copy-devices`.

20 months agoRemove unneeded var.
Wayne Davison [Fri, 19 Aug 2022 15:55:51 +0000 (08:55 -0700)]
Remove unneeded var.

20 months agoStop enabling -pedantic-errors.
Wayne Davison [Fri, 19 Aug 2022 00:33:54 +0000 (17:33 -0700)]
Stop enabling -pedantic-errors.

20 months agoChange name_num_obj struct to use a name_num_item pointer.
Wayne Davison [Fri, 19 Aug 2022 00:33:11 +0000 (17:33 -0700)]
Change name_num_obj struct to use a name_num_item pointer.

20 months agoFix typos on manpage (#358)
Samuel Henrique [Thu, 18 Aug 2022 04:50:43 +0000 (05:50 +0100)]
Fix typos on manpage (#358)

20 months agoFix issue when the files-from list isn't nl terminated.
Wayne Davison [Wed, 17 Aug 2022 23:57:39 +0000 (16:57 -0700)]
Fix issue when the files-from list isn't nl terminated.

20 months agoAnother mkgitver tweak & mention it in NEWS.
Wayne Davison [Tue, 16 Aug 2022 15:38:58 +0000 (08:38 -0700)]
Another mkgitver tweak & mention it in NEWS.

20 months agoRemove useless comment.
Wayne Davison [Tue, 16 Aug 2022 04:56:37 +0000 (21:56 -0700)]
Remove useless comment.

20 months agoOnly run git describe if .git exists in the $srcdir.
Wayne Davison [Tue, 16 Aug 2022 04:52:13 +0000 (21:52 -0700)]
Only run git describe if .git exists in the $srcdir.

20 months agoStart 3.2.6dev going.
Wayne Davison [Tue, 16 Aug 2022 02:01:56 +0000 (19:01 -0700)]
Start 3.2.6dev going.

20 months agoDo more path cleaning in add_implied_include(); make u.slash_cnt more accurate.
Wayne Davison [Tue, 16 Aug 2022 01:54:07 +0000 (18:54 -0700)]
Do more path cleaning in add_implied_include(); make u.slash_cnt more accurate.

20 months agoAllow ~/remote/./path with -R if the path has /./ in it.
Wayne Davison [Tue, 16 Aug 2022 01:18:11 +0000 (18:18 -0700)]
Allow ~/remote/./path with -R if the path has /./ in it.

20 months agoWe must use the CSUM_CHUNK size in the non-openssl MD4 code.
Wayne Davison [Sun, 14 Aug 2022 21:03:02 +0000 (14:03 -0700)]
We must use the CSUM_CHUNK size in the non-openssl MD4 code.

20 months agoFix another dot-dir implied arg issue. v3.2.5
Wayne Davison [Sun, 14 Aug 2022 19:27:25 +0000 (12:27 -0700)]
Fix another dot-dir implied arg issue.

20 months agoPreparing for release of 3.2.5
Wayne Davison [Sun, 14 Aug 2022 17:15:08 +0000 (10:15 -0700)]
Preparing for release of 3.2.5

20 months agoUpdate the NEWS.
Wayne Davison [Sun, 14 Aug 2022 17:12:06 +0000 (10:12 -0700)]
Update the NEWS.

20 months agoEnsure a dynamically linked xxhash lib is >= 0.8 for XX3.
Wayne Davison [Sun, 14 Aug 2022 17:09:34 +0000 (10:09 -0700)]
Ensure a dynamically linked xxhash lib is >= 0.8 for XX3.

20 months agoRemove some trailing whitespace.
Wayne Davison [Sat, 13 Aug 2022 17:53:02 +0000 (10:53 -0700)]
Remove some trailing whitespace.

20 months agoMake a `--trust-sender` a bit clearer.
Wayne Davison [Wed, 10 Aug 2022 23:25:37 +0000 (16:25 -0700)]
Make a `--trust-sender` a bit clearer.

20 months agoOne more doc tweak.
Wayne Davison [Wed, 10 Aug 2022 15:47:11 +0000 (08:47 -0700)]
One more doc tweak.

20 months agoAdd packaging note.
Wayne Davison [Wed, 10 Aug 2022 15:42:22 +0000 (08:42 -0700)]
Add packaging note.

20 months agoFix handling of a character class with an escaped closing bracket.
Wayne Davison [Wed, 10 Aug 2022 00:51:00 +0000 (17:51 -0700)]
Fix handling of a character class with an escaped closing bracket.

20 months agoBe a little paranoid.
Wayne Davison [Wed, 10 Aug 2022 00:33:45 +0000 (17:33 -0700)]
Be a little paranoid.

20 months agoA couple manpage tweaks.
Wayne Davison [Wed, 10 Aug 2022 00:26:23 +0000 (17:26 -0700)]
A couple manpage tweaks.

20 months agoAdd `--trust-sender` option.
Wayne Davison [Tue, 9 Aug 2022 18:45:56 +0000 (11:45 -0700)]
Add `--trust-sender` option.

20 months agoEscape leading tilde char when "~" or with -R.
Wayne Davison [Tue, 9 Aug 2022 18:42:14 +0000 (11:42 -0700)]
Escape leading tilde char when "~" or with -R.

20 months agoFix handling of daemon module names in file-list verification; convert some while...
Wayne Davison [Tue, 9 Aug 2022 18:37:37 +0000 (11:37 -0700)]
Fix handling of daemon module names in file-list verification; convert some while loops to for loops.

20 months agoPreparing for release of 3.2.5pre2 v3.2.5pre2
Wayne Davison [Tue, 9 Aug 2022 05:50:31 +0000 (22:50 -0700)]
Preparing for release of 3.2.5pre2

20 months agoFix --relative when copying an absolute path.
Wayne Davison [Tue, 9 Aug 2022 04:30:21 +0000 (21:30 -0700)]
Fix --relative when copying an absolute path.

20 months agoHandle files-from args that span 2 buffers.
Wayne Davison [Tue, 9 Aug 2022 04:18:10 +0000 (21:18 -0700)]
Handle files-from args that span 2 buffers.

20 months agoA fix for the zlib fix.
Wayne Davison [Tue, 9 Aug 2022 03:05:10 +0000 (20:05 -0700)]
A fix for the zlib fix.

20 months agoHandle a "[foo]" arg matching the literal wildcards.
Wayne Davison [Tue, 9 Aug 2022 02:31:36 +0000 (19:31 -0700)]
Handle a "[foo]" arg matching the literal wildcards.

20 months agoFix some issues with backslashed wildcards in args.
Wayne Davison [Tue, 9 Aug 2022 01:30:43 +0000 (18:30 -0700)]
Fix some issues with backslashed wildcards in args.

20 months agoHandle a trailing "/." at the end of a source arg.
Wayne Davison [Tue, 9 Aug 2022 00:36:36 +0000 (17:36 -0700)]
Handle a trailing "/." at the end of a source arg.

20 months agoUpdate the NEWS.
Wayne Davison [Sun, 7 Aug 2022 16:59:43 +0000 (09:59 -0700)]
Update the NEWS.

20 months agoFix zlib bug with a large gzip header extra field
Wayne Davison [Sun, 7 Aug 2022 16:27:57 +0000 (09:27 -0700)]
Fix zlib bug with a large gzip header extra field

From zlib commit eff308af425b67093bab25f80f1ae950166bece1.
Fixes CVE-2022-37434.

20 months agoMake sure that --read-batch doesn't try to check args.
Wayne Davison [Sun, 7 Aug 2022 15:56:39 +0000 (08:56 -0700)]
Make sure that --read-batch doesn't try to check args.

20 months agoSome md-convert doc tweaks.
Wayne Davison [Wed, 3 Aug 2022 15:55:26 +0000 (08:55 -0700)]
Some md-convert doc tweaks.

20 months agoFix typos in NEWS (#339)
Jakub Wilk [Tue, 2 Aug 2022 18:31:04 +0000 (20:31 +0200)]
Fix typos in NEWS (#339)

21 months agoPreparing for release of 3.2.5pre1 v3.2.5pre1
Wayne Davison [Tue, 2 Aug 2022 01:51:07 +0000 (18:51 -0700)]
Preparing for release of 3.2.5pre1

21 months agoTweaks to allow for a release.
Wayne Davison [Tue, 2 Aug 2022 01:43:11 +0000 (18:43 -0700)]
Tweaks to allow for a release.

21 months agoMore NEWS.
Wayne Davison [Tue, 2 Aug 2022 01:34:39 +0000 (18:34 -0700)]
More NEWS.

21 months agoA few more minor tweaks.
Wayne Davison [Tue, 2 Aug 2022 01:21:28 +0000 (18:21 -0700)]
A few more minor tweaks.

21 months agoAvoid the getgroups program when cross-compiliing.
Wayne Davison [Mon, 1 Aug 2022 16:00:34 +0000 (09:00 -0700)]
Avoid the getgroups program when cross-compiliing.

21 months agoMake sure sign is consistend in 2 gid comparisons.
Wayne Davison [Mon, 1 Aug 2022 15:29:15 +0000 (08:29 -0700)]
Make sure sign is consistend in 2 gid comparisons.

21 months agoA few more minor changes.
Wayne Davison [Mon, 1 Aug 2022 14:29:44 +0000 (07:29 -0700)]
A few more minor changes.

21 months agoMore improvements to file-list checking
Wayne Davison [Mon, 1 Aug 2022 14:00:51 +0000 (07:00 -0700)]
More improvements to file-list checking

- Avoid implied rules on generator and (with extra certainty) on server
- Add -R implied-directory path elements as directory includes
- Log about extra file-list checking using a new --debug=FILTER3 level