https://github.com/RsyncProject/rsync/pull/707 From 4e9b6476325eb08931025d719cfc3ff2c94d2b23 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 15 Jan 2025 15:59:17 +0100 Subject: [PATCH] Fix build on ancient glibc without openat(AT_FDCWD Fixes: https://github.com/RsyncProject/rsync/issues/701 --- syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syscall.c b/syscall.c index 8cea2900..34a9bba0 100644 --- a/syscall.c +++ b/syscall.c @@ -734,7 +734,7 @@ int secure_relative_open(const char *basedir, const char *relpath, int flags, mo return -1; } -#if !defined(O_NOFOLLOW) || !defined(O_DIRECTORY) +#if !defined(O_NOFOLLOW) || !defined(O_DIRECTORY) || !defined(AT_FDCWD) // really old system, all we can do is live with the risks if (!basedir) { return open(relpath, flags, mode);