]> git.ipfire.org Git - thirdparty/rsync.git/log
thirdparty/rsync.git
44 hours agofixed an invalid access to files array master
Andrew Tridgell [Sat, 23 Aug 2025 07:26:53 +0000 (17:26 +1000)] 
fixed an invalid access to files array

this was found by Calum Hutton from Rapid7. It is a real bug, but
analysis shows it can't be leverged into an exploit. Worth fixing
though.

Many thanks to Calum and Rapid7 for finding and reporting this

44 hours agooptions.c: Fix segv if poptGetContext returns NULL
Ronnie Sahlberg [Thu, 30 Jan 2025 03:27:38 +0000 (13:27 +1000)] 
options.c: Fix segv if poptGetContext returns NULL

If poptGetContext returns NULL, perhaps due to OOM,
a NULL pointer is passed into poptReadDefaultConfig()
which in turns SEGVs when trying to dereference it.

This was found using https://github.com/sahlberg/malloc-fail-tester.git
$ ./test_malloc_failure.sh rsync -Pav crash crosh

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
44 hours agosyscall: fix a Y2038 bug by replacing Int32x32To64 with multiplication
Silent [Mon, 13 Jan 2025 14:01:06 +0000 (15:01 +0100)] 
syscall: fix a Y2038 bug by replacing Int32x32To64 with multiplication

Int32x32To64 macro internally truncates the arguments to int32,
while time_t is 64-bit on most/all modern platforms.
Therefore, usage of this macro creates a Year 2038 bug.

44 hours agoIgnore `directory has vanished` errors.
Jeremy Norris [Wed, 12 Mar 2025 15:09:57 +0000 (10:09 -0500)] 
Ignore `directory has vanished` errors.

44 hours agomake lots of global variables `const`
Max Kellermann [Tue, 25 Mar 2025 14:13:43 +0000 (15:13 +0100)] 
make lots of global variables `const`

This way, they can live in `.rodata` and the compiler is allowed to do
certain optimizations.

44 hours agoFix handling of objects with many xattrs on FreeBSD
Peter Eriksson [Tue, 13 May 2025 12:01:01 +0000 (14:01 +0200)] 
Fix handling of objects with many xattrs on FreeBSD

44 hours agochore: gitignore MacOS debug symbols
Rahul Mehta [Thu, 22 May 2025 07:47:36 +0000 (03:47 -0400)] 
chore: gitignore MacOS debug symbols

44 hours agoAllow `ls(1)` to fail in test setup
Emily [Tue, 5 Aug 2025 14:55:24 +0000 (15:55 +0100)] 
Allow `ls(1)` to fail in test setup

This can happen when the tests are unable to `stat(2)` some files in
`/etc`, `/bin`, or `/`, due to Unix permissions or other sandboxing. We
still guard against serious errors, which use exit code 2.

44 hours agofixed remove multiple leading slashes
fbuescher [Wed, 11 Jun 2025 07:27:59 +0000 (09:27 +0200)] 
fixed remove multiple leading slashes

44 hours agobool is a keyword in C23
Michal Ruprich [Fri, 17 Jan 2025 11:37:57 +0000 (12:37 +0100)] 
bool is a keyword in C23

44 hours agoconfigure.ac: check for xattr support both in libc and in -lattr
Eli Schwartz [Tue, 22 Apr 2025 20:17:55 +0000 (16:17 -0400)] 
configure.ac: check for xattr support both in libc and in -lattr

In 2015, the attr/xattr.h header was fully removed from upstream attr.

In 2020, rsync started preferring the standard header, if it exists:
https://github.com/RsyncProject/rsync/pull/22

But the fix was incomplete. We still looked for the getxattr function in
-lattr, and used it if -lattr exists. This was the case even if the
system libc was sufficient to provide the needed functions. Result:
overlinking to -lattr, if it happened to be installed for any other
reason.

```
checking whether to support extended attributes... Using Linux xattrs
checking for getxattr in -lattr... yes
```

Instead, use a different autoconf macro that first checks if the
function is available for use without any libraries (e.g. it is in
libc).

Result:

```
checking whether to support extended attributes... Using Linux xattrs
checking for library containing getxattr... none required
```

Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
44 hours agofeat: add compress threads to man page
Ethan Halsall [Sat, 24 Dec 2022 23:43:09 +0000 (17:43 -0600)] 
feat: add compress threads to man page

44 hours agofeat: validate compress threads option
Ethan Halsall [Sat, 24 Dec 2022 23:42:47 +0000 (17:42 -0600)] 
feat: validate compress threads option

44 hours agofeat: add threads to zstd compression
Ethan Halsall [Fri, 23 Dec 2022 22:22:44 +0000 (16:22 -0600)] 
feat: add threads to zstd compression

44 hours agoFix flaky hardlinks test
Arnaud Rebillout [Thu, 6 Mar 2025 03:54:05 +0000 (10:54 +0700)] 
Fix flaky hardlinks test

The test was added in dc34990, it turns out that it's flaky. It failed
once on the Debian build infra, cf. [1].

The problem is that the command `rsync -aH '$fromdir/sym' '$todir'`
updates the mod time of `$todir`, so there might be a diff between the
output of `rsync_ls_lR $fromdir` and `rsync_ls_lR $todir`, if ever rsync
runs 1 second (or more) after the directories were created.

To clarify: it's easy to make the test fails 100% of the times with this
change:

```
 makepath "$fromdir/sym" "$todir"
+sleep 5
 checkit "$RSYNC -aH '$fromdir/sym' '$todir'" "$fromdir" "$todir"
```

With the fix proposed here, we don't use `checkit` anymore, instead we
just run the rsync command, then a simple `diff` to compare the two
directories. This is exactly what the other `-H` test just above does.

In case there's some doubts, `diff` fails if `sym` is missing:

```
$ mkdir -p foo/sym bar
$ diff foo bar || echo KO!
Only in foo: sym
KO!
```

I tested that, after this commit, the test still catches the `-H`
regression in rsync 3.4.0.

Fixes: https://github.com/RsyncProject/rsync/issues/735
[1]: https://buildd.debian.org/status/fetch.php?pkg=rsync&arch=ppc64el&ver=3.4.1%2Bds1-1&stamp=1741147156&raw=0

44 hours agoFix --open-noatime option not working on files
Krzysztof Płocharz [Mon, 27 Jan 2025 16:20:47 +0000 (17:20 +0100)] 
Fix --open-noatime option not working on files

atime of source files could sometimes be overwritten
even though --open-noatime option was used.

To fix that, optional O_NOATIME flag was added
to do_open_nofollow which is also used to open regular
files since fix:
  "fixed symlink race condition in sender"
Previously optional O_NOATIME flag was only in do_open.

45 hours agoMake the build reproducible
Chris Lamb [Tue, 12 Aug 2025 19:23:59 +0000 (20:23 +0100)] 
Make the build reproducible

From https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1093201:
Whilst working on the Reproducible Builds effort [0], we noticed that
rsync could not be built reproducibly.

This is because the date in the manual page can vary depending on
whether there is a .git directory and the modification time of version.h
and Mafile, which might get modified when patching via quilt.

A patch is attached that makes this use SOURCE_DATE_EPOCH, which
will always be reliable.

6 months agoTest on ubuntu-latest.
Wayne Davison [Tue, 11 Feb 2025 21:37:12 +0000 (13:37 -0800)] 
Test on ubuntu-latest.

7 months agopopt: remove obsolete findme.c & findme.h
Alan Coopersmith [Wed, 15 Jan 2025 21:17:38 +0000 (13:17 -0800)] 
popt: remove obsolete findme.c & findme.h

popt 1.14 merged these into popt.c but the import into rsync
missed removing them.

Fixes: https://github.com/RsyncProject/rsync/issues/710
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
7 months agoUpdate MAINTAINER_TZ_OFFSET on release.
Wayne Davison [Thu, 16 Jan 2025 07:24:26 +0000 (23:24 -0800)] 
Update MAINTAINER_TZ_OFFSET on release.

This also fixes a string with \s that wasn't a r'...' string.

7 months agoFix python deprecation warning.
Wayne Davison [Thu, 16 Jan 2025 06:36:29 +0000 (22:36 -0800)] 
Fix python deprecation warning.

7 months agoDon't edit copyright year values anymore.
Wayne Davison [Thu, 16 Jan 2025 06:29:17 +0000 (22:29 -0800)] 
Don't edit copyright year values anymore.

7 months agoImprove interior dashes in long options.
Wayne Davison [Thu, 16 Jan 2025 06:19:33 +0000 (22:19 -0800)] 
Improve interior dashes in long options.

Improve the backslash-adding code in md-convert to affect dashes in the
interior of long options.  Perhaps fixes #686.

7 months agoStart 3.4.2dev going.
Wayne Davison [Thu, 16 Jan 2025 06:01:42 +0000 (22:01 -0800)] 
Start 3.4.2dev going.

7 months agofixed build error on ia64 NonStop
Andrew Tridgell [Wed, 15 Jan 2025 21:17:30 +0000 (08:17 +1100)] 
fixed build error on ia64 NonStop

it treats missing prototype as an error, not warning

7 months agoPreparing for release of 3.4.1 [buildall] v3.4.1
Andrew Tridgell [Wed, 15 Jan 2025 20:49:23 +0000 (07:49 +1100)] 
Preparing for release of 3.4.1 [buildall]

7 months agoupdate NEWS.md for 3.4.1
Andrew Tridgell [Wed, 15 Jan 2025 20:37:28 +0000 (07:37 +1100)] 
update NEWS.md for 3.4.1

7 months agopopt: remove dependency on alloca
Andrew Tridgell [Wed, 15 Jan 2025 20:09:12 +0000 (07:09 +1100)] 
popt: remove dependency on alloca

7 months agoFix build on ancient glibc without openat(AT_FDCWD
Natanael Copa [Wed, 15 Jan 2025 14:59:17 +0000 (15:59 +0100)] 
Fix build on ancient glibc without openat(AT_FDCWD

Fixes: https://github.com/RsyncProject/rsync/issues/701
7 months agoTest send a single directory with -H enabled
Rodrigo OSORIO [Wed, 15 Jan 2025 09:32:48 +0000 (10:32 +0100)] 
Test send a single directory with -H enabled

Ensure this still working after 3.4.0 breakage

https://github.com/RsyncProject/rsync/issues/702

7 months agoFix use-after-free in generator
Natanael Copa [Wed, 15 Jan 2025 14:48:04 +0000 (15:48 +0100)] 
Fix use-after-free in generator

full_fname() will free the return value in the next call so we need to
duplicate it before passing it to rsyserr.

Fixes: https://github.com/RsyncProject/rsync/issues/704
7 months agoFix FLAG_GOT_DIR_FLIST collission with FLAG_HLINKED
Natanael Copa [Wed, 15 Jan 2025 14:10:24 +0000 (15:10 +0100)] 
Fix FLAG_GOT_DIR_FLIST collission with FLAG_HLINKED

fixes commit 688f5c379a43 (Refuse a duplicate dirlist.)

Fixes: https://github.com/RsyncProject/rsync/issues/702
Fixes: https://github.com/RsyncProject/rsync/issues/697
7 months agoupdate maintainer address
Andrew Tridgell [Tue, 14 Jan 2025 21:20:12 +0000 (08:20 +1100)] 
update maintainer address

use rsync.project@gmail.com

7 months agoForce rsync group when uploading files.
Wayne Davison [Tue, 14 Jan 2025 21:09:33 +0000 (13:09 -0800)] 
Force rsync group when uploading files.

7 months agoPreparing for release of 3.4.0 [buildall] v3.4.0
Andrew Tridgell [Tue, 14 Jan 2025 18:53:23 +0000 (05:53 +1100)] 
Preparing for release of 3.4.0 [buildall]

7 months agopackaging: adjust release script
Andrew Tridgell [Tue, 14 Jan 2025 18:50:22 +0000 (05:50 +1100)] 
packaging: adjust release script

remove auto-edit of NEWS.md

7 months agoNEWS: update protocol version table
Andrew Tridgell [Tue, 14 Jan 2025 18:41:07 +0000 (05:41 +1100)] 
NEWS: update protocol version table

7 months agoupdate NEWS for 3.4.0
Andrew Tridgell [Tue, 17 Dec 2024 22:20:33 +0000 (09:20 +1100)] 
update NEWS for 3.4.0

7 months agochange version to 3.4.0
Andrew Tridgell [Tue, 17 Dec 2024 22:08:24 +0000 (09:08 +1100)] 
change version to 3.4.0

7 months agoraise protocol version to 32
Andrew Tridgell [Tue, 10 Dec 2024 02:34:01 +0000 (13:34 +1100)] 
raise protocol version to 32

make it easier to spot unpatched servers

7 months agofixed symlink race condition in sender
Andrew Tridgell [Tue, 17 Dec 2024 21:59:42 +0000 (08:59 +1100)] 
fixed symlink race condition in sender

when we open a file that we don't expect to be a symlink use
O_NOFOLLOW to prevent a race condition where an attacker could change
a file between being a normal file and a symlink

7 months agomake --safe-links stricter
Andrew Tridgell [Sat, 23 Nov 2024 04:15:53 +0000 (15:15 +1100)] 
make --safe-links stricter

when --safe-links is used also reject links where a '../' component is
included in the destination as other than the leading part of the
filename

7 months agorange check dir_ndx before use
Andrew Tridgell [Tue, 26 Nov 2024 05:12:45 +0000 (16:12 +1100)] 
range check dir_ndx before use

7 months agoRefuse a duplicate dirlist.
Wayne Davison [Thu, 14 Nov 2024 23:46:50 +0000 (15:46 -0800)] 
Refuse a duplicate dirlist.

7 months agodisallow ../ elements in relpath for secure_relative_open
Andrew Tridgell [Mon, 25 Nov 2024 22:16:31 +0000 (09:16 +1100)] 
disallow ../ elements in relpath for secure_relative_open

7 months agoreceiver: use secure_relative_open() for basis file
Andrew Tridgell [Sat, 23 Nov 2024 01:28:13 +0000 (12:28 +1100)] 
receiver: use secure_relative_open() for basis file

this prevents attacks where the basis file is manipulated by a
malicious sender to gain information about files outside the
destination tree

7 months agoadded secure_relative_open()
Andrew Tridgell [Sat, 23 Nov 2024 01:26:10 +0000 (12:26 +1100)] 
added secure_relative_open()

this is an open that enforces no symlink following for all path
components in a relative path

7 months agorefuse fuzzy options when fuzzy not selected
Andrew Tridgell [Sat, 23 Nov 2024 00:08:03 +0000 (11:08 +1100)] 
refuse fuzzy options when fuzzy not selected

this prevents a malicious server providing a file to compare to when
the user has not given the fuzzy option

7 months agoprevent information leak off the stack
Andrew Tridgell [Wed, 13 Nov 2024 22:57:08 +0000 (09:57 +1100)] 
prevent information leak off the stack

prevent leak of uninitialised stack data in hash_search

8 months agohlink: Fix function pointer cast in qsort()
Charalampos Mitrodimas [Wed, 20 Nov 2024 12:55:50 +0000 (14:55 +0200)] 
hlink: Fix function pointer cast in qsort()

Replace unsafe generic function pointer cast with proper type cast for
qsort() comparison function. This fixes a potential type mismatch
warning without changing the behavior.

Signed-off-by: Charalampos Mitrodimas <charmitro@posteo.net>
8 months agoadded security email address to README.md
Andrew Tridgell [Sat, 14 Dec 2024 03:23:30 +0000 (14:23 +1100)] 
added security email address to README.md

9 months agofix typo in manual page
Frederic Grabowski [Fri, 10 May 2024 08:49:56 +0000 (10:49 +0200)] 
fix typo in manual page

9 months agoWhen not using the builtin zlib, link it before linking libcrypto, as libcrypto depen...
Romain Geissler [Sun, 10 Mar 2024 22:41:43 +0000 (22:41 +0000)] 
When not using the builtin zlib, link it before linking libcrypto, as libcrypto depends on zlib.

This prevents "undefined symbol" errors which might arise from libcrypto.a if linking openssl statically.

9 months agoAllow basic connectivity check via rrsync
Colin Watson [Fri, 29 Mar 2024 01:24:32 +0000 (01:24 +0000)] 
Allow basic connectivity check via rrsync

rsbackup (https://github.com/ewxrjk/rsbackup) uses "ssh <host> true" to
check that the host in question is reachable.  I like to configure my
backed-up hosts to force the backup system to go via `rrsync`, but I
always have to add a local tweak to allow `SSH_ORIGINAL_COMMAND=true` to
work.  I think this would be safe enough to include in rrsync.

9 months agoIntroduce PTR_SUB
Rose [Wed, 3 May 2023 13:52:18 +0000 (09:52 -0400)] 
Introduce PTR_SUB

This is more intuitive than adding a negative number.

9 months agorrsync: fix wrong parameter name in manpage SYNOPSIS
Samuel Henrique [Fri, 29 Dec 2023 15:23:27 +0000 (15:23 +0000)] 
rrsync: fix wrong parameter name in manpage SYNOPSIS

Replace ¨rw¨ with ¨ro¨.

Reported on Debian by Adriano Rafael Gomes <adrianorg@debian.org>

9 months agoFix warning about conflicting lseek/lseek64 prototypes
Holger Hoffstätte [Mon, 4 Sep 2023 12:07:14 +0000 (14:07 +0200)] 
Fix warning about conflicting lseek/lseek64 prototypes

Clang rightfully complains about conflicting prototypes, as both lseek() variants
are redefined:

  syscall.c:394:10: warning: a function declaration without a prototype is deprecated
  in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting
  with a previous declaration [-Wdeprecated-non-prototype]
        off64_t lseek64();
                ^
/usr/include/unistd.h:350:18: note: conflicting prototype is here
extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence)
                 ^
1 warning generated.

The point of the #ifdef is to build for the configured OFF_T; there is
no reason to redefine lseek/lseek64, which should have been found
via configure.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
9 months agoFix warning about missing bomb(..) prototype
Holger Hoffstätte [Mon, 4 Sep 2023 12:05:21 +0000 (14:05 +0200)] 
Fix warning about missing bomb(..) prototype

Clang rightfully complains about invoking bomb(..) without a proper prototype:
  lib/pool_alloc.c:171:16: warning: passing arguments to a function without a prototype
  is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                (*pool->bomb)(bomb_msg, __FILE__, __LINE__);
                             ^
1 warning generated.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
9 months agoFix __m128i_u / __m256i_u alignment
Holger Hoffstätte [Mon, 4 Sep 2023 12:00:20 +0000 (14:00 +0200)] 
Fix __m128i_u / __m256i_u alignment

Building with clang-16 complains with:
./simd-checksum-x86_64.cpp:204:25: warning: passing 1-byte aligned argument to
  16-byte aligned parameter 1 of '_mm_store_si128' may result in an unaligned pointer
  access [-Walign-mismatch]

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
9 months agoMention latest NEWS.
Wayne Davison [Thu, 14 Nov 2024 19:59:12 +0000 (11:59 -0800)] 
Mention latest NEWS.

9 months agoAlways check old==new, even for missing array size.
Wayne Davison [Thu, 14 Nov 2024 19:53:40 +0000 (11:53 -0800)] 
Always check old==new, even for missing array size.

9 months agoImprove packaging/var-checker.
Wayne Davison [Thu, 14 Nov 2024 19:39:21 +0000 (11:39 -0800)] 
Improve packaging/var-checker.

Make var-checker compare the variable type of the extern vars to ensure
that they are all consistent. Fix the remaining issues.

9 months agoacls: correct type/size for orig_umask
Carlo Marcelo Arenas Belón [Sun, 19 May 2024 00:44:22 +0000 (17:44 -0700)] 
acls: correct type/size for orig_umask

Since 05278935 (- Call mkdir_defmode() instead of do_mkdir(). - Define
orig_umask in this file, not options.c. - Made orig_umask a mode_t, not an
int., 2006-02-24), the type for the global was changed, and therefore on
systems where sizeof(mode_t) != sizeof(int), writes or reads to them will
overflow to adjacent bytes.

Change the type to the one used everywhere else and avoid this problem.

While at it, silence again a warning that is being triggered by
Apple's clang 15.

9 months agoMention more NEWS.
Wayne Davison [Sat, 9 Nov 2024 19:05:16 +0000 (11:05 -0800)] 
Mention more NEWS.

9 months agoSome minor option/prompt tweaks.
Wayne Davison [Wed, 6 Nov 2024 01:34:09 +0000 (17:34 -0800)] 
Some minor option/prompt tweaks.

9 months agoMore helper script improvements.
Wayne Davison [Tue, 5 Nov 2024 21:25:34 +0000 (13:25 -0800)] 
More helper script improvements.

9 months agoAdd some info for making a release.
Wayne Davison [Tue, 5 Nov 2024 21:03:04 +0000 (13:03 -0800)] 
Add some info for making a release.

9 months agoAdd helper script for updating samba files.
Wayne Davison [Tue, 5 Nov 2024 20:42:42 +0000 (12:42 -0800)] 
Add helper script for updating samba files.

9 months agoDon't force zsh use.
Wayne Davison [Tue, 5 Nov 2024 19:20:28 +0000 (11:20 -0800)] 
Don't force zsh use.

9 months agoIndentation tweak.
Wayne Davison [Tue, 5 Nov 2024 19:20:17 +0000 (11:20 -0800)] 
Indentation tweak.

9 months agoUpdate to newer artifact version.
Wayne Davison [Tue, 5 Nov 2024 19:14:46 +0000 (11:14 -0800)] 
Update to newer artifact version.

9 months agoAnother cast when multiplying integers.
Wayne Davison [Tue, 5 Nov 2024 19:01:03 +0000 (11:01 -0800)] 
Another cast when multiplying integers.

9 months agoSome checksum buffer fixes.
Wayne Davison [Wed, 30 Oct 2024 05:55:29 +0000 (22:55 -0700)] 
Some checksum buffer fixes.

- Put sum2_array into sum_struct to hold an array of sum2 checksums
  that are each xfer_sum_len bytes.
- Remove sum2 buf from sum_buf.
- Add macro sum2_at() to access each sum2 array element.
- Throw an error if a sums header has an s2length larger than
  xfer_sum_len.

14 months agoadded apple silicon path details
vincent sgherzi [Fri, 19 Apr 2024 07:54:13 +0000 (00:54 -0700)] 
added apple silicon path details

16 months agoMore tweaks for Actions.
Wayne Davison [Wed, 10 Apr 2024 20:12:52 +0000 (13:12 -0700)] 
More tweaks for Actions.

- When a .github/workflows/*.yml file changes, skip running unaffected
  builds.
- We need git to be installed for git-version.h generation.

16 months agoSeparate the builds and make Cygwin always run.
Wayne Davison [Wed, 10 Apr 2024 20:02:34 +0000 (13:02 -0700)] 
Separate the builds and make Cygwin always run.

16 months agoWork around pkg install issue.
Wayne Davison [Wed, 10 Apr 2024 19:39:53 +0000 (12:39 -0700)] 
Work around pkg install issue.

The xxhash, lz4, and zstd libraries aren't getting installed on FreeBSD.
[buildall]

16 months agoGet fetch-depth:0 right.
Wayne Davison [Wed, 10 Apr 2024 19:30:05 +0000 (12:30 -0700)] 
Get fetch-depth:0 right.

16 months agoGet rid of gensend target & cached git version.
Wayne Davison [Wed, 10 Apr 2024 19:15:49 +0000 (12:15 -0700)] 
Get rid of gensend target & cached git version.

- Change the developer flow to not require updating the git-version repo
  that the builds used to download a git-version.h file. The Actions now
  do a full repo fetch so that the .h file can be generated via the git
  history.
- Get rid of the gensend Makefile target that was used for the above.
- Get rid of the pre-push git hook file that called "Make gensend".
- Change the FreeBSD build to save an artifact with its built binaries.

[buildall]

16 months agoGet the "dev" suffix right.
Wayne Davison [Wed, 10 Apr 2024 18:53:07 +0000 (11:53 -0700)] 
Get the "dev" suffix right.

16 months agoRemove duplicate paragraph.
Wayne Davison [Wed, 10 Apr 2024 18:51:59 +0000 (11:51 -0700)] 
Remove duplicate paragraph.

16 months agoCI: added Solaris build
Charalampos Mitrodimas [Mon, 8 Apr 2024 08:40:02 +0000 (11:40 +0300)] 
CI: added Solaris build

Signed-off-by: Charalampos Mitrodimas <charmitro@posteo.net>
16 months agoTweak maintainer messaging.
Wayne Davison [Mon, 8 Apr 2024 20:16:12 +0000 (13:16 -0700)] 
Tweak maintainer messaging.

16 months agoChanges for 3.3.1dev.
Wayne Davison [Mon, 8 Apr 2024 20:14:59 +0000 (13:14 -0700)] 
Changes for 3.3.1dev.

16 months agoCI: fixed rules for when to trigger
Andrew Tridgell [Mon, 8 Apr 2024 05:35:42 +0000 (15:35 +1000)] 
CI: fixed rules for when to trigger

16 months agosupport: added install_deps_ubuntu.sh
Andrew Tridgell [Mon, 8 Apr 2024 00:16:31 +0000 (10:16 +1000)] 
support: added install_deps_ubuntu.sh

convenient way to bootstrap quickly

16 months agocheck for stpcpy
Andrew Tridgell [Mon, 8 Apr 2024 03:40:58 +0000 (13:40 +1000)] 
check for stpcpy

needed for popt on macos

16 months agoupdate to popt 1.19
Andrew Tridgell [Mon, 8 Apr 2024 02:45:59 +0000 (12:45 +1000)] 
update to popt 1.19

16 months agoSilence unused var warning
Rose [Wed, 3 May 2023 13:50:31 +0000 (09:50 -0400)] 
Silence unused var warning

recv_ida_entries still needs to be called regardless, so we cannot take that out. Let's just quiet the compiler instead.

16 months agohint that a proxy can handle plain and ssl stream at the same time
Christian Hesse [Wed, 5 Apr 2023 11:08:02 +0000 (13:08 +0200)] 
hint that a proxy can handle plain and ssl stream at the same time

16 months agoCI: added FreeBSD build
Andrew Tridgell [Sat, 6 Apr 2024 21:11:31 +0000 (07:11 +1000)] 
CI: added FreeBSD build

16 months agoremoved old cirrus CI
Andrew Tridgell [Sat, 6 Apr 2024 21:11:47 +0000 (07:11 +1000)] 
removed old cirrus CI

16 months agoconfigure.ac: fix failing IPv6 check due to missing return type
Ivan Babrou [Tue, 2 Jan 2024 03:31:01 +0000 (19:31 -0800)] 
configure.ac: fix failing IPv6 check due to missing return type

Fixing this warning escalated to an error, resuting in no IPv6 support:

```
configure.sh:7679: checking whether to enable ipv6
configure.sh:7718: clang -o conftest -g -O2 -DHAVE_CONFIG_H -Wall -W   conftest.c  >&5
conftest.c:73:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
main()
^
int
1 error generated.
configure.sh:7718: $? = 1
configure.sh: program exited with status 1
```

16 months agoUpdate github links.
Wayne Davison [Sat, 6 Apr 2024 17:33:42 +0000 (10:33 -0700)] 
Update github links.

16 months agoPreparing for release of 3.3.0 [buildall] v3.3.0
Wayne Davison [Sat, 6 Apr 2024 16:30:21 +0000 (09:30 -0700)] 
Preparing for release of 3.3.0 [buildall]

16 months agoSome year updates.
Wayne Davison [Sat, 6 Apr 2024 16:21:44 +0000 (09:21 -0700)] 
Some year updates.

16 months agoMention latest changes in NEWS.
Wayne Davison [Sat, 6 Apr 2024 16:17:16 +0000 (09:17 -0700)] 
Mention latest changes in NEWS.

16 months agoexclude: fix crashes with fortified strlcpy()
Jiri Slaby [Fri, 18 Aug 2023 06:26:20 +0000 (08:26 +0200)] 
exclude: fix crashes with fortified strlcpy()

Fortified (-D_FORTIFY_SOURCE=2 for gcc) builds make strlcpy() crash when
its third parameter (size) is larger than the buffer:
  $ rsync -FFXHav '--filter=merge global-rsync-filter' Align-37-43/ xxx
  sending incremental file list
  *** buffer overflow detected ***: terminated

It's in the exclude code in setup_merge_file():
  strlcpy(y, save, MAXPATHLEN);

Note the 'y' pointer was incremented, so it no longer points to memory
with MAXPATHLEN "owned" bytes.

Fix it by remembering the number of copied bytes into the 'save' buffer
and use that instead of MAXPATHLEN which is clearly incorrect.

Fixes #511.

16 months agotypo in rsyncd.conf.5.md
Grant Gardner [Sun, 17 Mar 2024 03:00:16 +0000 (14:00 +1100)] 
typo in rsyncd.conf.5.md

2 years agoMake `--max-alloc=0` safer.
Wayne Davison [Tue, 27 Jun 2023 16:01:15 +0000 (09:01 -0700)] 
Make `--max-alloc=0` safer.

Always do size checking in my_alloc(), even for `--max-alloc=0`.