From 03efc6a1690bab3a1dde5c6713518d5e0e7426ee Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 22 Jul 2021 19:04:59 +0200 Subject: [PATCH] support ancient glibc --- copyparty/util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/copyparty/util.py b/copyparty/util.py index 29e1efa4..f9883afa 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -1014,6 +1014,7 @@ def sendfile_kern(lower, upper, f, s): def statdir(logger, scandir, lstat, top): + lstat = lstat and os.supports_follow_symlinks try: btop = fsenc(top) if scandir and hasattr(os, "scandir"):