Linux: Handle protected_regular in inplace writes (#241)
authorAchim Leitner <git@fjl.de>
Sun, 17 Oct 2021 20:00:24 +0000 (22:00 +0200)
committerGitHub <noreply@github.com>
Sun, 17 Oct 2021 20:00:24 +0000 (13:00 -0700)
commit84498104bfe2a4662221992951e71d2a2f5ceffc
tree59e4082ada8eec3803d530c6dd43249ebcc6bd04
parent378a0a634fa7dc71e2646b8eb88b46853fada463
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).
.cirrus.yml
.github/workflows/build.yml
receiver.c
testsuite/protected-regular.test [new file with mode: 0644]