rsync.git
2 years agoconfigure.ac: Test IPv6 compatibility instead of relying on library probes (#206)
Jonathan Davies [Sun, 26 Sep 2021 18:25:06 +0000 (19:25 +0100)]
configure.ac: Test IPv6 compatibility instead of relying on library probes (#206)

Legacy configure behaviour was to detect IPv6 support through known IPv6
capable version of common standard libraries. Now: it runs a POSIX test
to determine if IPv6 is usable (in case it has not been disabled).

Patch originally from Pierre-Olivier Mercier <nemunaire@nemunai.re>.

Signed-off-by: Jonathan Davies <jpds@protonmail.com>
2 years agoadd missing - in certopt (#210)
Fabian H [Mon, 16 Aug 2021 22:52:39 +0000 (00:52 +0200)]
add missing - in certopt (#210)

otherwise openssl will give an error and not accept is as argument

2 years agoAdd test and fix regression for --delay-updates (#192) (#204)
Natanael Copa [Wed, 28 Jul 2021 16:10:55 +0000 (18:10 +0200)]
Add test and fix regression for --delay-updates (#192) (#204)

Fixes regression introduced with commit 3a7bf54ad520 (A resumed
partial-dir file is transferred in-place.)

2 years agoUpdate the options in rrsync.
Wayne Davison [Fri, 9 Jul 2021 18:57:35 +0000 (11:57 -0700)]
Update the options in rrsync.

2 years agoSupport --crtimes on Cygwin.
Wayne Davison [Fri, 9 Jul 2021 01:47:21 +0000 (18:47 -0700)]
Support --crtimes on Cygwin.

2 years agoMake whole-line comments clearer.
Wayne Davison [Sun, 4 Jul 2021 19:42:51 +0000 (12:42 -0700)]
Make whole-line comments clearer.

2 years agoSet whole_file = 0 when whole_file < 0. Fixes issue 114.
Wayne Davison [Sun, 4 Jul 2021 19:15:16 +0000 (12:15 -0700)]
Set whole_file = 0 when whole_file < 0.  Fixes issue 114.

2 years agoNeed to also check stdout_format_has_i in some INFO-NAME checks.
Wayne Davison [Sun, 27 Jun 2021 17:16:28 +0000 (10:16 -0700)]
Need to also check stdout_format_has_i in some INFO-NAME checks.

2 years agoFix compiling without ftruncate.
Wayne Davison [Sat, 26 Jun 2021 19:10:08 +0000 (12:10 -0700)]
Fix compiling without ftruncate.

2 years agofix man page typo
juleslagarde [Thu, 17 Jun 2021 05:39:45 +0000 (07:39 +0200)]
fix man page typo

Fix a copy/paste error that should be referring to deletions.

3 years agoUnset DISPLAY in environment.
Wayne Davison [Sat, 1 May 2021 16:00:03 +0000 (09:00 -0700)]
Unset DISPLAY in environment.

Without a DISPLAY var, ssh won't try to forward X11 when making an
ssh connection.  This patch also makes use of setenv() and unsetenv()
if they are available.

3 years agoUpdated GLIBC check in configure.ac (#175)
Bart S [Sat, 1 May 2021 15:23:25 +0000 (17:23 +0200)]
Updated GLIBC check in configure.ac (#175)

The current GLIBC check does not consider we may see glibc 3.0 in the future.

3 years agoFix plural of --group option.
Wayne Davison [Sun, 4 Apr 2021 04:09:14 +0000 (21:09 -0700)]
Fix plural of --group option.

3 years agoFix git-set-file-times's handling of staged changed files.
Wayne Davison [Mon, 15 Mar 2021 16:02:00 +0000 (09:02 -0700)]
Fix git-set-file-times's handling of staged changed files.

3 years agoSwitch to using image_family for Cirrus CI.
Wayne Davison [Wed, 3 Mar 2021 03:16:52 +0000 (19:16 -0800)]
Switch to using image_family for Cirrus CI.

3 years agoInstall bash on FreeBSD CI.
Wayne Davison [Wed, 3 Mar 2021 03:09:23 +0000 (19:09 -0800)]
Install bash on FreeBSD CI.

3 years agoUpdate FreeBSD CI to 12.2.
Wayne Davison [Wed, 3 Mar 2021 03:02:08 +0000 (19:02 -0800)]
Update FreeBSD CI to 12.2.

3 years agoSee if explicitly installing m4 gets FreeBSD CI a newer gm4 version.
Wayne Davison [Tue, 2 Mar 2021 22:13:54 +0000 (14:13 -0800)]
See if explicitly installing m4 gets FreeBSD CI a newer gm4 version.

3 years agoAllow the generator's msg iobuf to get bigger too.
Wayne Davison [Thu, 25 Feb 2021 20:28:18 +0000 (12:28 -0800)]
Allow the generator's msg iobuf to get bigger too.

3 years agoRename util.c to util1.c
Wayne Davison [Thu, 25 Feb 2021 17:13:52 +0000 (09:13 -0800)]
Rename util.c to util1.c

Fixes an issue where the Makefile's glob of *.c could sort util.c &
util2.c in an order that depends on the current collation setting.

3 years agoA few Cygwin build tweaks. [buildall]
Wayne Davison [Wed, 10 Feb 2021 16:06:47 +0000 (08:06 -0800)]
A few Cygwin build tweaks. [buildall]

3 years agoStop checking for gmake in build scripts
Wayne Davison [Fri, 5 Feb 2021 04:46:00 +0000 (20:46 -0800)]
Stop checking for gmake in build scripts

Since a non-cygwin gmake trips up the github cygwin action, let's just
require that the user put a good "make" early on their path (a simple
`ln -s `which gmake` ~/bin/make` with the right $PATH works fine).

3 years agoAdd optional netgroup.h include for NetBSD hosts.
Wayne Davison [Tue, 2 Feb 2021 00:31:28 +0000 (16:31 -0800)]
Add optional netgroup.h include for NetBSD hosts.

3 years agoSome pip-releated tweaking.
Wayne Davison [Mon, 1 Feb 2021 17:00:06 +0000 (09:00 -0800)]
Some pip-releated tweaking.

3 years agoAdd a link to the man page to the README.
Wayne Davison [Mon, 1 Feb 2021 16:47:44 +0000 (08:47 -0800)]
Add a link to the man page to the README.

3 years agoCheck for netinet/ip.h after including netinet/in.h.
Wayne Davison [Sun, 31 Jan 2021 19:11:07 +0000 (11:11 -0800)]
Check for netinet/ip.h after including netinet/in.h.

3 years agoA couple "make" tweaks.
Wayne Davison [Sun, 31 Jan 2021 19:10:38 +0000 (11:10 -0800)]
A couple "make" tweaks.

3 years agoPut 0 in parens to silence an Xcode warning.
Wayne Davison [Sun, 31 Jan 2021 17:28:34 +0000 (09:28 -0800)]
Put 0 in parens to silence an Xcode warning.

3 years agoAdd `--with-nobody-user=FOO` configure option.
Wayne Davison [Fri, 15 Jan 2021 15:38:49 +0000 (07:38 -0800)]
Add `--with-nobody-user=FOO` configure option.

3 years agoCygwin python3 is now 3.8 w/o commonmark lib. [buildall]
Wayne Davison [Fri, 1 Jan 2021 17:29:07 +0000 (09:29 -0800)]
Cygwin python3 is now 3.8 w/o commonmark lib. [buildall]

3 years agoFix spelling error in man page. (#124)
James Cook [Thu, 10 Dec 2020 17:43:04 +0000 (17:43 +0000)]
Fix spelling error in man page. (#124)

trasnferred -> transferred

3 years agoFix a typo.
Wayne Davison [Thu, 10 Dec 2020 06:35:16 +0000 (22:35 -0800)]
Fix a typo.

3 years agoWork around glibc's lchmod() issue a better way.
Wayne Davison [Sun, 29 Nov 2020 17:33:54 +0000 (09:33 -0800)]
Work around glibc's lchmod() issue a better way.

3 years agoInclude stdlib.h for exit() and consult HAVE_* macros more.
Wayne Davison [Sun, 29 Nov 2020 16:45:55 +0000 (08:45 -0800)]
Include stdlib.h for exit() and consult HAVE_* macros more.

3 years agoTweak cmd_txt routines in the packaging scripts.
Wayne Davison [Sun, 1 Nov 2020 19:21:06 +0000 (11:21 -0800)]
Tweak cmd_txt routines in the packaging scripts.

3 years agoForce HAVE_LCHMOD off for Linux (for now).
Wayne Davison [Fri, 30 Oct 2020 22:51:24 +0000 (15:51 -0700)]
Force HAVE_LCHMOD off for Linux (for now).

3 years agoUse the right powershell env syntax. [buildall]
Wayne Davison [Wed, 7 Oct 2020 21:02:28 +0000 (14:02 -0700)]
Use the right powershell env syntax. [buildall]

3 years agoAllow cross-compilation with SIMD (x86_84) (#104)
edo [Wed, 7 Oct 2020 05:33:57 +0000 (08:33 +0300)]
Allow cross-compilation with SIMD (x86_84) (#104)

Replace runtime SIMD check with a compile-only test in case of
cross-compilation.

You can still use '--enable-simd=no' to build x86_64 code without
SIMD instructions.

3 years agoUpdate CI builds to new path-setting idiom.
Wayne Davison [Wed, 7 Oct 2020 05:28:17 +0000 (22:28 -0700)]
Update CI builds to new path-setting idiom.

3 years agoSilence a few more warnings.
Wayne Davison [Tue, 29 Sep 2020 22:51:03 +0000 (15:51 -0700)]
Silence a few more warnings.

3 years agoUse a better -Wno-pedantic heuristic.
Wayne Davison [Tue, 29 Sep 2020 22:17:29 +0000 (15:17 -0700)]
Use a better -Wno-pedantic heuristic.

3 years agoAvoid some pedantic errors & old warnings.
Wayne Davison [Tue, 29 Sep 2020 21:47:31 +0000 (14:47 -0700)]
Avoid some pedantic errors & old warnings.

3 years agoHandle early gcc versions that don't understand -Wno-pedantic.
Wayne Davison [Tue, 29 Sep 2020 21:22:40 +0000 (14:22 -0700)]
Handle early gcc versions that don't understand -Wno-pedantic.

3 years agoMake gcc die on init overflow of an array.
Wayne Davison [Tue, 29 Sep 2020 20:04:41 +0000 (13:04 -0700)]
Make gcc die on init overflow of an array.

- Use -pedantic-errors with gcc to make an array-init fatal.
- Fix all the extra warnings that gcc outputs due to this option.
- Also add -Wno-pedantic to gcc if we're using the internal popt
  code (since it has lots of pedantic issues).

3 years agoExpand the max name_num_item list size.
Wayne Davison [Tue, 29 Sep 2020 19:57:32 +0000 (12:57 -0700)]
Expand the max name_num_item list size.

3 years agoChange `--info=skip2` messages & add info on attr changes.
Wayne Davison [Wed, 23 Sep 2020 16:26:10 +0000 (09:26 -0700)]
Change `--info=skip2` messages & add info on attr changes.

3 years agoChange from $build_cpu to $host_cpu as edo1 suggested.
Wayne Davison [Wed, 23 Sep 2020 00:19:45 +0000 (17:19 -0700)]
Change from $build_cpu to $host_cpu as edo1 suggested.

3 years agoMake the extra info on the "exists" messages optional.
Wayne Davison [Tue, 22 Sep 2020 23:43:18 +0000 (16:43 -0700)]
Make the extra info on the "exists" messages optional.

3 years agoVarious file comparison improvements
Wayne Davison [Tue, 22 Sep 2020 18:46:36 +0000 (11:46 -0700)]
Various file comparison improvements

- Rename unchanged_file() to quick_check_ok().
- Enhance quick_check_ok() to work with non-regular files.
- Add a get_file_type() function to the generator.
- Use the new functions in the generator code to make the logic simpler.
- Fix a bug where the `--alt-dest` functions were not checking if a
  special file fully matched the non-permission mode bits before
  deciding if we have found an alt-dest match.
- Enhance the `--info=skip --ignore-existing` output to include extra
  info on if the existing file differs in type or passes the standard
  quick-check logic.
- Add `--info=skip2` that authorizes rsync to perform a slow checksum
  "quick check" when ignoring existing files. This provides the uptodate
  and differs info even if we need to checksum a file to get it.

3 years agoMore NEWS updates.
Wayne Davison [Tue, 22 Sep 2020 02:17:59 +0000 (19:17 -0700)]
More NEWS updates.

3 years agoA couple whitespace tweaks.
Wayne Davison [Tue, 22 Sep 2020 01:42:21 +0000 (18:42 -0700)]
A couple whitespace tweaks.

3 years agooptimize avx2 code (#102)
Shark64 [Mon, 21 Sep 2020 22:11:27 +0000 (00:11 +0200)]
optimize avx2 code (#102)

Optimize avx2 code using only intrinsic functions supported by older gcc versions.

3 years agoSkip an append if sender's file gets shorter.
Wayne Davison [Mon, 21 Sep 2020 21:40:23 +0000 (14:40 -0700)]
Skip an append if sender's file gets shorter.

Fixes bug #90.  Similar to a pull request by Tomas Korbar.

3 years agoImprove the docs for `--archive`.
Wayne Davison [Mon, 21 Sep 2020 21:05:51 +0000 (14:05 -0700)]
Improve the docs for `--archive`.

A slightly tweaked version of a patch from Richard Michael.

3 years agoAvoid output variance in protocol 29.
Wayne Davison [Mon, 21 Sep 2020 20:45:42 +0000 (13:45 -0700)]
Avoid output variance in protocol 29.

3 years agoCheck status of tests that pipe rsync's output & simplify output diffing.
Wayne Davison [Mon, 21 Sep 2020 20:15:43 +0000 (13:15 -0700)]
Check status of tests that pipe rsync's output & simplify output diffing.

3 years agoPut CAN_HARDLINK_SYMLINK info into --version output.
Wayne Davison [Mon, 21 Sep 2020 20:17:15 +0000 (13:17 -0700)]
Put CAN_HARDLINK_SYMLINK info into --version output.

3 years agoAvoid spurious "is newer" messages with `--update`.
Wayne Davison [Mon, 21 Sep 2020 17:44:18 +0000 (10:44 -0700)]
Avoid spurious "is newer" messages with `--update`.

3 years agoUpdate the NEWS.
Wayne Davison [Wed, 9 Sep 2020 05:18:32 +0000 (22:18 -0700)]
Update the NEWS.

3 years agoHandle a --mkpath failure
Wayne Davison [Tue, 8 Sep 2020 17:53:29 +0000 (10:53 -0700)]
Handle a --mkpath failure

Fixes bug #96 where --mkpath makes rsync complain when a dest path
exists but the path contains an alt-dest name for the single file.

3 years agoUse new xxhash lib in cygwin build. [buildall]
Wayne Davison [Tue, 8 Sep 2020 02:42:08 +0000 (19:42 -0700)]
Use new xxhash lib in cygwin build. [buildall]

3 years agoTry using the Windows version of curl. [buildall]
Wayne Davison [Mon, 7 Sep 2020 22:11:32 +0000 (15:11 -0700)]
Try using the Windows version of curl. [buildall]

3 years agoAnother cygwin build attempt. [buildall]
Wayne Davison [Mon, 7 Sep 2020 21:39:27 +0000 (14:39 -0700)]
Another cygwin build attempt. [buildall]

3 years agoImprove a sentence about --stderr=all.
Wayne Davison [Mon, 7 Sep 2020 21:31:53 +0000 (14:31 -0700)]
Improve a sentence about --stderr=all.

3 years agoTry cygwin build again. [buildall]
Wayne Davison [Mon, 7 Sep 2020 21:23:39 +0000 (14:23 -0700)]
Try cygwin build again. [buildall]

3 years agoAdd git-version.h to "gen" target.
Wayne Davison [Mon, 7 Sep 2020 06:36:08 +0000 (23:36 -0700)]
Add git-version.h to "gen" target.

3 years agoLeave git-version.h out of GENFILES so it doesn't go in a release tar.
Wayne Davison [Mon, 7 Sep 2020 06:27:28 +0000 (23:27 -0700)]
Leave git-version.h out of GENFILES so it doesn't go in a release tar.

3 years agoAllow git-version.h to be provided for the build
Wayne Davison [Mon, 7 Sep 2020 05:49:27 +0000 (22:49 -0700)]
Allow git-version.h to be provided for the build

For a non-git build or for a git build w/o adequate git history, we now
allow the git-version.h file to be provided before the build.  If the
file does not exist, we either create an empty file or put a define of
RSYNC_GITVER in it based on the output of git describe.  The github
builds now snag the git-version.h file that was generated for the last
commit so that they all get the same version string, even with a shallow
checkout.

3 years agoSet CXX_OK=no when cross compiling.
Wayne Davison [Thu, 3 Sep 2020 17:07:36 +0000 (10:07 -0700)]
Set CXX_OK=no when cross compiling.

3 years agoCreate SECURITY.md
Wayne Davison [Wed, 2 Sep 2020 21:49:20 +0000 (14:49 -0700)]
Create SECURITY.md

3 years agoSetup for 3.2.4dev.
Wayne Davison [Fri, 28 Aug 2020 02:33:15 +0000 (19:33 -0700)]
Setup for 3.2.4dev.

3 years agoSimplify the compat logic for local_server
Wayne Davison [Fri, 28 Aug 2020 01:58:21 +0000 (18:58 -0700)]
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.

3 years agorsync-ssl: Verify the hostname in the certificate when using openssl.
Matt McCutchen [Wed, 26 Aug 2020 16:16:08 +0000 (12:16 -0400)]
rsync-ssl: Verify the hostname in the certificate when using openssl.

3 years agoAdd some comments about protocol versions.
Wayne Davison [Fri, 7 Aug 2020 23:20:48 +0000 (16:20 -0700)]
Add some comments about protocol versions.

3 years agoSimplify where version.h is included.
Wayne Davison [Fri, 7 Aug 2020 04:10:46 +0000 (21:10 -0700)]
Simplify where version.h is included.

3 years agoPreparing for release of 3.2.3 v3.2.3
Wayne Davison [Fri, 7 Aug 2020 03:57:26 +0000 (20:57 -0700)]
Preparing for release of 3.2.3

3 years agoTweak a comment.
Wayne Davison [Thu, 6 Aug 2020 04:32:44 +0000 (21:32 -0700)]
Tweak a comment.

3 years agoChange fetch depth.
Wayne Davison [Mon, 3 Aug 2020 21:47:38 +0000 (14:47 -0700)]
Change fetch depth.

3 years agoDon't use --always to ensure a tag is in gitver.
Wayne Davison [Mon, 3 Aug 2020 21:25:43 +0000 (14:25 -0700)]
Don't use --always to ensure a tag is in gitver.

3 years agoAvoid a build fail when git isn't installed.
Wayne Davison [Mon, 3 Aug 2020 21:19:13 +0000 (14:19 -0700)]
Avoid a build fail when git isn't installed.

3 years agoMake my_alloc(NULL) use malloc instead of calloc.
Wayne Davison [Mon, 3 Aug 2020 21:01:18 +0000 (14:01 -0700)]
Make my_alloc(NULL) use malloc instead of calloc.

3 years agoUse touch for proto.h-tstamp since one awk wasn't updating mtime.
Wayne Davison [Mon, 3 Aug 2020 20:31:56 +0000 (13:31 -0700)]
Use touch for proto.h-tstamp since one awk wasn't updating mtime.

3 years agoMove SUPPORT_ATIMES to rsync.h.
Wayne Davison [Mon, 3 Aug 2020 20:27:00 +0000 (13:27 -0700)]
Move SUPPORT_ATIMES to rsync.h.

3 years agoCreate usage.c for smaller awk-dep rebuilds.
Wayne Davison [Mon, 3 Aug 2020 18:33:32 +0000 (11:33 -0700)]
Create usage.c for smaller awk-dep rebuilds.

3 years agoUse RSYNC_GITVER in more output
Wayne Davison [Mon, 3 Aug 2020 17:42:08 +0000 (10:42 -0700)]
Use RSYNC_GITVER in more output

3 years agoA couple more mkgitver tweaks
Wayne Davison [Mon, 3 Aug 2020 17:23:43 +0000 (10:23 -0700)]
A couple more mkgitver tweaks

- Support git worktree checkouts (has non-dir .git)
- Use --always for someone who may be missing a tag.

3 years agoUse --abbrev=8 instead of --tags.
Wayne Davison [Sat, 1 Aug 2020 07:41:53 +0000 (00:41 -0700)]
Use --abbrev=8 instead of --tags.

3 years agoPut git version in a file for between-release versioning.
Wayne Davison [Sat, 1 Aug 2020 07:15:06 +0000 (00:15 -0700)]
Put git version in a file for between-release versioning.

3 years agoDon't make .PHONY the first target in a Makefile.
Wayne Davison [Fri, 31 Jul 2020 01:58:34 +0000 (18:58 -0700)]
Don't make .PHONY the first target in a Makefile.

3 years agoMake configure less annoying
Wayne Davison [Fri, 31 Jul 2020 01:30:51 +0000 (18:30 -0700)]
Make configure less annoying

- Improve configure's notifications around the new features.
- Improve the info about man page generation and fetching.

3 years agoSome Makefile improvements.
Wayne Davison [Wed, 29 Jul 2020 18:51:55 +0000 (11:51 -0700)]
Some Makefile improvements.

- Improve distclean.
- Remove proto.h from GENFILES (we don't need to distribute it).
- Improve finddead target.

3 years agoTweak a comment.
Wayne Davison [Wed, 29 Jul 2020 18:50:00 +0000 (11:50 -0700)]
Tweak a comment.

3 years agoINSTALL changes, including some Fedora packages.
Wayne Davison [Wed, 29 Jul 2020 18:22:23 +0000 (11:22 -0700)]
INSTALL changes, including some Fedora packages.

3 years agoPreparing for release of 3.2.3pre1 v3.2.3pre1
Wayne Davison [Tue, 28 Jul 2020 00:56:25 +0000 (17:56 -0700)]
Preparing for release of 3.2.3pre1

3 years agoNeed 3.2.3 line in table & tweak to release script.
Wayne Davison [Tue, 28 Jul 2020 00:49:28 +0000 (17:49 -0700)]
Need 3.2.3 line in table & tweak to release script.

3 years agoA couple more NEWS updates.
Wayne Davison [Mon, 27 Jul 2020 23:50:47 +0000 (16:50 -0700)]
A couple more NEWS updates.

3 years agoSet LANG to C to help with some remote build hosts.
Wayne Davison [Mon, 27 Jul 2020 23:48:48 +0000 (16:48 -0700)]
Set LANG to C to help with some remote build hosts.

3 years agoUse linkat() if available
Wayne Davison [Mon, 27 Jul 2020 23:36:55 +0000 (16:36 -0700)]
Use linkat() if available

Some OSes have a more capable linkat() function that can hard-link
syslinks, so use linkat() when it is available.

3 years agoAdd a few more skip-compress suffixes.
Wayne Davison [Mon, 27 Jul 2020 22:56:48 +0000 (15:56 -0700)]
Add a few more skip-compress suffixes.

3 years agoMake the `--append*` options have more warnings.
Wayne Davison [Mon, 27 Jul 2020 22:05:11 +0000 (15:05 -0700)]
Make the `--append*` options have more warnings.