support ancient glibc

This commit is contained in:
ed 2021-07-22 19:04:59 +02:00
parent 15b5982211
commit 03efc6a169

View file

@ -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"):