rsync.git
2 years agoPreparing for release of 3.2.4 v3.2.4
Wayne Davison [Fri, 15 Apr 2022 20:31:16 +0000 (13:31 -0700)]
Preparing for release of 3.2.4

2 years agoThe latest news.
Wayne Davison [Mon, 11 Apr 2022 16:46:38 +0000 (09:46 -0700)]
The latest news.

2 years agoAdd debugging comment about read_buf_().
Wayne Davison [Mon, 11 Apr 2022 16:46:32 +0000 (09:46 -0700)]
Add debugging comment about read_buf_().

2 years agosystemd: restart daemon on-failure (#302)
Simon Deziel [Mon, 11 Apr 2022 16:08:11 +0000 (12:08 -0400)]
systemd: restart daemon on-failure (#302)

man 5 systemd.service:
> Setting this to on-failure is the recommended choice for long-running services

Partial fix for https://bugzilla.samba.org/show_bug.cgi?id=13463

Signed-off-by: Simon Deziel <simon@sdeziel.info>
2 years agoSpecify log format to avoid malfunctions and unexpected errors. (#305)
Yoichi NAKAYAMA [Mon, 11 Apr 2022 15:57:19 +0000 (00:57 +0900)]
Specify log format to avoid malfunctions and unexpected errors. (#305)

Solve the following problems:
* mishandling of commit message lines similar to committer lines
* UnicodeDecodeError with commit messages that cannot be interpreted
  as utf-8

2 years agoFix for CVE-2018-25032 in zlib (#306)
Michal Ruprich [Mon, 11 Apr 2022 15:50:50 +0000 (17:50 +0200)]
Fix for CVE-2018-25032 in zlib (#306)

2 years agoHandle linking with a zlib with external read_buf.
Wayne Davison [Mon, 11 Apr 2022 15:29:54 +0000 (08:29 -0700)]
Handle linking with a zlib with external read_buf.

2 years agoPreparing for release of 3.2.4pre4 v3.2.4pre4
Wayne Davison [Sun, 27 Mar 2022 21:59:57 +0000 (14:59 -0700)]
Preparing for release of 3.2.4pre4

2 years agoAdd new & improved `--copy-devices` option.
Wayne Davison [Sun, 27 Mar 2022 20:36:31 +0000 (13:36 -0700)]
Add new & improved `--copy-devices` option.

2 years agoSome `--write-device` fixes.
Wayne Davison [Sun, 27 Mar 2022 19:26:39 +0000 (12:26 -0700)]
Some `--write-device` fixes.

2 years agoCombine some alt-dest tests.
Wayne Davison [Sat, 26 Mar 2022 17:00:24 +0000 (10:00 -0700)]
Combine some alt-dest tests.

2 years agoRename compare-dest test.
Wayne Davison [Sat, 26 Mar 2022 17:01:10 +0000 (10:01 -0700)]
Rename compare-dest test.

2 years agoExtract unlink_and_reopen from copy_file (#294)
Sam Mikes [Sat, 26 Mar 2022 16:14:10 +0000 (10:14 -0600)]
Extract unlink_and_reopen from copy_file (#294)

* add tests to exercise copy_file

* Extract new function unlink_and_reopen from copy_file

The argument `ofd` to copy_file is always set to -1 unless
`open_tmpfile()` is called at generator.c:909

This change
 * removes assignment to a function argument
 * renames argument `ofd` to `tmpfilefd` in line with existing uses
 * extracts a new function `unlink_and_reopen` which is static to util1.c
 * rewrites header comments for copy_file

2 years agoSome word fixes.
Wayne Davison [Sat, 26 Mar 2022 15:28:16 +0000 (08:28 -0700)]
Some word fixes.

2 years agoAlso ignore a root-level rrsync file.
Wayne Davison [Sun, 13 Mar 2022 17:45:09 +0000 (10:45 -0700)]
Also ignore a root-level rrsync file.

2 years agoAdd FALLTHROUGH comment.
Wayne Davison [Sun, 13 Mar 2022 16:31:44 +0000 (09:31 -0700)]
Add FALLTHROUGH comment.

2 years agoUse ac_includes_default in largefile support test.
Wayne Davison [Thu, 10 Mar 2022 02:38:03 +0000 (18:38 -0800)]
Use ac_includes_default in largefile support test.

2 years agoTest newer FreeBSD.
Wayne Davison [Fri, 4 Mar 2022 01:26:47 +0000 (17:26 -0800)]
Test newer FreeBSD.

2 years agoMake asm use more selectable
Wayne Davison [Fri, 4 Mar 2022 01:00:57 +0000 (17:00 -0800)]
Make asm use more selectable

- Make the SIMD ASM code off by default. Use configure --enable-simd-asm
  to enable.
- Allow MD5 ASM code to be requested even when OpenSSL is handling MD4
  checksums. Use configure --enable-md5-asm to enable.

2 years agoChange usage (--version) output to note when ASM isn't really being used.
Wayne Davison [Tue, 22 Feb 2022 00:39:16 +0000 (16:39 -0800)]
Change usage (--version) output to note when ASM isn't really being used.

2 years agoFix wording in RSYNC_PORT section (#293)
Sam Mikes [Mon, 21 Feb 2022 22:00:45 +0000 (15:00 -0700)]
Fix wording in RSYNC_PORT section (#293)

Fix wording from 'does is not read' -> 'is not read'

2 years agoBuild Cygwin on windows-2022 with newer python. [buildall]
Wayne Davison [Wed, 9 Feb 2022 21:59:08 +0000 (13:59 -0800)]
Build Cygwin on windows-2022 with newer python. [buildall]

2 years agoAdd a CAUTION message to --debug=FILTER for trailing whitespace.
Wayne Davison [Thu, 27 Jan 2022 16:31:24 +0000 (08:31 -0800)]
Add a CAUTION message to --debug=FILTER for trailing whitespace.

2 years agoAdd a couple more `--rsync-path` opts to the test. [buildall]
Wayne Davison [Thu, 20 Jan 2022 18:51:13 +0000 (10:51 -0800)]
Add a couple more `--rsync-path` opts to the test. [buildall]

2 years agoSpecify the rsync that lsh.sh should run. [buildall]
Wayne Davison [Thu, 20 Jan 2022 17:00:01 +0000 (09:00 -0800)]
Specify the rsync that lsh.sh should run. [buildall]

2 years agoPreparing for release of 3.2.4pre3 v3.2.4pre3
Wayne Davison [Wed, 19 Jan 2022 07:47:45 +0000 (23:47 -0800)]
Preparing for release of 3.2.4pre3

2 years agoTweak rrsync rules in the Makefile.
Wayne Davison [Wed, 19 Jan 2022 07:01:48 +0000 (23:01 -0800)]
Tweak rrsync rules in the Makefile.

2 years agoAdd some arg-escaping tests.
Wayne Davison [Wed, 19 Jan 2022 06:43:25 +0000 (22:43 -0800)]
Add some arg-escaping tests.

2 years agoDon't backslash-escape args for a local transfer.
Wayne Davison [Wed, 19 Jan 2022 06:42:20 +0000 (22:42 -0800)]
Don't backslash-escape args for a local transfer.

2 years agoAdd missing ">".
Wayne Davison [Wed, 19 Jan 2022 05:56:05 +0000 (21:56 -0800)]
Add missing ">".

2 years agoSilence some symlink mode-change failures.
Wayne Davison [Tue, 18 Jan 2022 06:12:21 +0000 (22:12 -0800)]
Silence some symlink mode-change failures.

2 years agoFix a broken link & make a tweak.
Wayne Davison [Tue, 18 Jan 2022 04:44:16 +0000 (20:44 -0800)]
Fix a broken link & make a tweak.

2 years agoFacilitate the next release.
Wayne Davison [Tue, 18 Jan 2022 03:25:02 +0000 (19:25 -0800)]
Facilitate the next release.

2 years agoTweak some rrsync rules for cleanup & release.
Wayne Davison [Tue, 18 Jan 2022 02:37:01 +0000 (18:37 -0800)]
Tweak some rrsync rules for cleanup & release.

2 years agoHandle html link targets in a better way.
Wayne Davison [Tue, 18 Jan 2022 01:59:18 +0000 (17:59 -0800)]
Handle html link targets in a better way.

2 years agoFix `--old-args` interaction with a daemon
Wayne Davison [Tue, 18 Jan 2022 01:12:43 +0000 (17:12 -0800)]
Fix `--old-args` interaction with a daemon

Ensure that a remote rsync daemon will not split a filename arg unless
the user asked for `--old-args`.

2 years agoComplain about --old-args with --protect-args.
Wayne Davison [Tue, 18 Jan 2022 01:11:58 +0000 (17:11 -0800)]
Complain about --old-args with --protect-args.

2 years agoMore man & NEWS enhancements, including linking to env vars.
Wayne Davison [Tue, 18 Jan 2022 01:10:08 +0000 (17:10 -0800)]
More man & NEWS enhancements, including linking to env vars.

2 years agoMore man page and NEWS improvements.
Wayne Davison [Sun, 16 Jan 2022 16:56:51 +0000 (08:56 -0800)]
More man page and NEWS improvements.

- Add link targets for all option choices, not just the first one.
- Tweak cross-link arg format.
- Add more links, including some in the latest NEWS.
- Split out a few numbered lists.

2 years agoFix some typos mentioned in the fossies report.
Wayne Davison [Sun, 16 Jan 2022 14:49:15 +0000 (06:49 -0800)]
Fix some typos mentioned in the fossies report.

2 years agoIt's OK to capitalize rsync at the start of a sentence.
Wayne Davison [Sun, 16 Jan 2022 05:44:26 +0000 (21:44 -0800)]
It's OK to capitalize rsync at the start of a sentence.

2 years agoSome NEWS.html improvements.
Wayne Davison [Sun, 16 Jan 2022 04:56:22 +0000 (20:56 -0800)]
Some NEWS.html improvements.

- Improve NEWS heading's link targets using version info.
- Optimize regex compilation.
- Make sure every link target is unique.
- Allow link targets to start with a number.

2 years agoRemove `<a name=...>` tags.
Wayne Davison [Sun, 16 Jan 2022 04:55:54 +0000 (20:55 -0800)]
Remove `<a name=...>` tags.

2 years agoGet md-convert to output the release html files in the right dir.
Wayne Davison [Sun, 16 Jan 2022 02:59:11 +0000 (18:59 -0800)]
Get md-convert to output the release html files in the right dir.

2 years agoPreparing for release of 3.2.4pre2 v3.2.4pre2
Wayne Davison [Sun, 16 Jan 2022 01:21:01 +0000 (17:21 -0800)]
Preparing for release of 3.2.4pre2

2 years agoUse standard "git diff" for full diff highlighting support.
Wayne Davison [Sun, 16 Jan 2022 01:20:11 +0000 (17:20 -0800)]
Use standard "git diff" for full diff highlighting support.

2 years agoEven more man page improvements.
Wayne Davison [Sun, 16 Jan 2022 01:11:06 +0000 (17:11 -0800)]
Even more man page improvements.

2 years agoMan page improvments, including html cross-links.
Wayne Davison [Sat, 15 Jan 2022 23:48:14 +0000 (15:48 -0800)]
Man page improvments, including html cross-links.

2 years agoA few more man page format tweaks.
Wayne Davison [Fri, 14 Jan 2022 22:03:27 +0000 (14:03 -0800)]
A few more man page format tweaks.

2 years agoMake it easier to get section links.
Wayne Davison [Fri, 14 Jan 2022 21:55:22 +0000 (13:55 -0800)]
Make it easier to get section links.

2 years agoAdd more link targets to html man pages.
Wayne Davison [Fri, 14 Jan 2022 07:39:40 +0000 (23:39 -0800)]
Add more link targets to html man pages.

2 years agoTweak a caveat.
Wayne Davison [Fri, 14 Jan 2022 07:31:43 +0000 (23:31 -0800)]
Tweak a caveat.

2 years agoDisplay ??:??:?? when a time estimate gets too big.
Wayne Davison [Thu, 13 Jan 2022 16:11:50 +0000 (08:11 -0800)]
Display ??:??:?? when a time estimate gets too big.

2 years agoAvoid a -8 in the progress output's remaining time
Wayne Davison [Thu, 13 Jan 2022 03:50:58 +0000 (19:50 -0800)]
Avoid a -8 in the progress output's remaining time

If the double "remain" value is so large that it overflows an int, make
the estimated seconds output as :00 instead of :-8.  Similar for the
estimated remaining minutes.  Support larger hours values.

2 years agoSome symlink improvements to the man page.
Wayne Davison [Thu, 13 Jan 2022 00:42:40 +0000 (16:42 -0800)]
Some symlink improvements to the man page.

2 years agoChange manpage headings in html to use h2 tags with an id target.
Wayne Davison [Thu, 13 Jan 2022 00:41:36 +0000 (16:41 -0800)]
Change manpage headings in html to use h2 tags with an id target.

2 years agoA repeated `--old-args` does more escape disabling.
Wayne Davison [Mon, 10 Jan 2022 02:20:20 +0000 (18:20 -0800)]
A repeated `--old-args` does more escape disabling.

2 years agoAdd an arg-protection idiom using backslash-escapes
Wayne Davison [Mon, 10 Jan 2022 01:35:39 +0000 (17:35 -0800)]
Add an arg-protection idiom using backslash-escapes

The new default is to protect args and options from unintended shell
interpretation using backslash escapes.  See the new `--old-args` option
for a way to get the old-style splitting.  This idiom was chosen over
making `--protect-args` enabled by default because it is more backward
compatible (e.g. it works with rrsync). Fixes #272.

2 years agoTweak a comment.
Wayne Davison [Sun, 9 Jan 2022 22:03:31 +0000 (14:03 -0800)]
Tweak a comment.

2 years agoImprove `--copy-links` description.
Wayne Davison [Sun, 9 Jan 2022 20:20:46 +0000 (12:20 -0800)]
Improve `--copy-links` description.

2 years agoAllow someone to specify scratchbase=FOO for runtests.sh.
Wayne Davison [Sun, 9 Jan 2022 19:40:41 +0000 (11:40 -0800)]
Allow someone to specify scratchbase=FOO for runtests.sh.

2 years agoImprove rrsync usage and some more NEWS tweaks.
Wayne Davison [Mon, 3 Jan 2022 08:37:57 +0000 (00:37 -0800)]
Improve rrsync usage and some more NEWS tweaks.

2 years agoMore NEWS improvements.
Wayne Davison [Mon, 3 Jan 2022 08:02:28 +0000 (00:02 -0800)]
More NEWS improvements.

2 years agoOnly send the `--no-W` kluge to a receiver.
Wayne Davison [Mon, 3 Jan 2022 07:51:04 +0000 (23:51 -0800)]
Only send the `--no-W` kluge to a receiver.

2 years agoPreparing for release of 3.2.4pre1 v3.2.4pre1
Wayne Davison [Sun, 2 Jan 2022 23:13:19 +0000 (15:13 -0800)]
Preparing for release of 3.2.4pre1

2 years agoTweak stderr handling for older BackupPC versions
Wayne Davison [Sun, 2 Jan 2022 22:46:27 +0000 (14:46 -0800)]
Tweak stderr handling for older BackupPC versions

This makes the default for a protocol-28 server process be --stderr=client
instead of --stderr=errors.  See rsync's github issue #95.

2 years agoA couple man page improvements.
Wayne Davison [Sun, 2 Jan 2022 22:43:30 +0000 (14:43 -0800)]
A couple man page improvements.

2 years agoTime-limit options are not being checked enough (#179)
Rodrigo Osorio [Sun, 2 Jan 2022 22:37:27 +0000 (23:37 +0100)]
Time-limit options are not being checked enough (#179)

The `--stop-at`, `--stop-after`, and `--time-limit`` options should have their
limit checked when receiving and sending data, not just when receiving.
Fixes #177.

2 years agoSome compression improvements.
Wayne Davison [Fri, 31 Dec 2021 18:58:19 +0000 (10:58 -0800)]
Some compression improvements.

The compression level of the first file in the transfer no longer sets
the level for all files that follow it.  Document that per-file level
switching has no current effect (except for a global "dont compress = *"
rule in the daemon).

2 years agoAdd error-code ignoring options to atomic-rsync.
Wayne Davison [Thu, 30 Dec 2021 20:29:14 +0000 (12:29 -0800)]
Add error-code ignoring options to atomic-rsync.

2 years agoTweak the rrsync man page.
Wayne Davison [Thu, 30 Dec 2021 20:28:16 +0000 (12:28 -0800)]
Tweak the rrsync man page.

2 years agoFix rrsync directory normalization (#268)
Marco Nenciarini [Thu, 30 Dec 2021 16:59:17 +0000 (17:59 +0100)]
Fix rrsync directory normalization (#268)

Fix an off-by-one in the `args.dir_slash_len` variable that leads to base every absolute path on `/`

2 years agoAdd a default single-access lock.
Wayne Davison [Tue, 28 Dec 2021 01:44:32 +0000 (17:44 -0800)]
Add a default single-access lock.

2 years agoChange args to maybe-make-man.
Wayne Davison [Tue, 28 Dec 2021 01:40:31 +0000 (17:40 -0800)]
Change args to maybe-make-man.

2 years agoInclude "rrsync" in "all" target when `--with-rrsync` was used.
Wayne Davison [Mon, 27 Dec 2021 23:44:51 +0000 (15:44 -0800)]
Include "rrsync" in "all" target when `--with-rrsync` was used.

2 years agoUnify md parsing scripts & improve non-man html conversions.
Wayne Davison [Mon, 27 Dec 2021 22:19:11 +0000 (14:19 -0800)]
Unify md parsing scripts & improve non-man html conversions.

2 years agoRename md2man.
Wayne Davison [Mon, 27 Dec 2021 21:42:19 +0000 (13:42 -0800)]
Rename md2man.

2 years agoAdd more backticks.
Wayne Davison [Mon, 27 Dec 2021 21:11:23 +0000 (13:11 -0800)]
Add more backticks.

2 years agoIgnore the built rrsync man-page files.
Wayne Davison [Mon, 27 Dec 2021 20:10:31 +0000 (12:10 -0800)]
Ignore the built rrsync man-page files.

2 years agoTest --with-rrsync configure option & put rrsync into the artifacts.
Wayne Davison [Sun, 26 Dec 2021 22:48:55 +0000 (14:48 -0800)]
Test --with-rrsync configure option & put rrsync into the artifacts.

2 years agoUse mallinfo2, when available, and use %zd for size_t values on C99.
Wayne Davison [Sun, 26 Dec 2021 22:23:19 +0000 (14:23 -0800)]
Use mallinfo2, when available, and use %zd for size_t values on C99.

An exhanced version of pull request #265.

2 years agorrsync improvements
Wayne Davison [Sun, 26 Dec 2021 20:29:00 +0000 (12:29 -0800)]
rrsync improvements

- Convert rrsync to python.
- Enhance security of arg & option checking.
- Reject `-L` (`--copy-links`) by default.
- Add `-munge` and `-no-del` options.
- Tweak the logfile line format.
- Created an rrsync man page.
- Use `configure --with-rrsync` if you want `make install` to install
  rrsync and its man page.
- Give lsh more rrsync testing support.

2 years agoConvert atomic-rsync to python.
Wayne Davison [Tue, 21 Dec 2021 01:28:18 +0000 (17:28 -0800)]
Convert atomic-rsync to python.

2 years agoConvert munge-symlinks to python.
Wayne Davison [Tue, 21 Dec 2021 00:08:34 +0000 (16:08 -0800)]
Convert munge-symlinks to python.

2 years agoMake rrsync default to munged symlinks.
Wayne Davison [Mon, 20 Dec 2021 23:13:50 +0000 (15:13 -0800)]
Make rrsync default to munged symlinks.

2 years agoAdd options to assist in localhost rrsync testing.
Wayne Davison [Mon, 20 Dec 2021 22:25:19 +0000 (14:25 -0800)]
Add options to assist in localhost rrsync testing.

2 years agoAdd --munge-links rsync option; convert to python.
Wayne Davison [Mon, 20 Dec 2021 21:34:05 +0000 (13:34 -0800)]
Add --munge-links rsync option; convert to python.

2 years agoImprove a couple support scripts:
Wayne Davison [Sat, 13 Nov 2021 17:30:08 +0000 (09:30 -0800)]
Improve a couple support scripts:

- rsync-no-vanished now avoids joining stdout & stderr, avoids affecting
  a non-client run, and gets the rsync status code correctly.
- rsync-slash-strip now avoids affecting a non-client run.

2 years agoimproved cross compilation detection (#252)
Andrew Aladjev [Sun, 7 Nov 2021 19:45:49 +0000 (22:45 +0300)]
improved cross compilation detection (#252)

2 years agoshell: test -a|o is not POSIX (#250)
Issam Maghni [Sun, 7 Nov 2021 18:23:01 +0000 (13:23 -0500)]
shell: test -a|o is not POSIX (#250)

2 years agoAdd closing backticks that Itzoke pointed out.
Wayne Davison [Sun, 7 Nov 2021 18:11:12 +0000 (10:11 -0800)]
Add closing backticks that Itzoke pointed out.

2 years agoAdd the --info=NONREG setting.
Wayne Davison [Wed, 3 Nov 2021 16:35:50 +0000 (09:35 -0700)]
Add the --info=NONREG setting.

2 years agoMore NEWS changes.
Wayne Davison [Sat, 30 Oct 2021 22:58:01 +0000 (15:58 -0700)]
More NEWS changes.

2 years agoFix the ability to read the user's numeric locale.
Wayne Davison [Sat, 30 Oct 2021 03:06:06 +0000 (20:06 -0700)]
Fix the ability to read the user's numeric locale.

2 years agoUpdate the NEWS.
Wayne Davison [Wed, 20 Oct 2021 04:10:59 +0000 (21:10 -0700)]
Update the NEWS.

2 years agoMake --chown|--usermap|--groupmap imply -o|-g (as appropriate).
Wayne Davison [Wed, 20 Oct 2021 04:01:58 +0000 (21:01 -0700)]
Make --chown|--usermap|--groupmap imply -o|-g (as appropriate).

2 years agoAllow a "%scope" suffix on the client's ipv6 addr.
Wayne Davison [Sun, 17 Oct 2021 20:35:29 +0000 (13:35 -0700)]
Allow a "%scope" suffix on the client's ipv6 addr.
Hopefully fixes bug #239.

2 years agoLinux: Handle protected_regular in inplace writes (#241)
Achim Leitner [Sun, 17 Oct 2021 20:00:24 +0000 (22:00 +0200)]
Linux: Handle protected_regular in inplace writes (#241)

The Linux fs.protected_regular sysctl setting could cause rsync to fail to write a file in-place with the O_CREAT flag set, so the code now tries an open without O_CREAT when it might help to avoid an EACCES error.  A testsuite script is included (and slightly improved by Wayne to ensure that it outputs a SKIP when fs.protected_regular is turned off).

2 years agoAdd more skipped verifications. [buildall]
Wayne Davison [Sun, 17 Oct 2021 19:40:24 +0000 (12:40 -0700)]
Add more skipped verifications. [buildall]

2 years agoTweak output about skipped tests.
Wayne Davison [Sun, 17 Oct 2021 18:56:58 +0000 (11:56 -0700)]
Tweak output about skipped tests.