From: Natanael Copa Date: Wed, 15 Jan 2025 14:59:17 +0000 (+0100) Subject: Fix build on ancient glibc without openat(AT_FDCWD X-Git-Tag: v3.4.1~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68e9add76a7b354354220f0b3fbf5c8d8da99230;p=thirdparty%2Frsync.git Fix build on ancient glibc without openat(AT_FDCWD Fixes: https://github.com/RsyncProject/rsync/issues/701 --- 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);