support ancient glibc
This commit is contained in:
parent
15b5982211
commit
03efc6a169
@ -1014,6 +1014,7 @@ def sendfile_kern(lower, upper, f, s):
|
|||||||
|
|
||||||
|
|
||||||
def statdir(logger, scandir, lstat, top):
|
def statdir(logger, scandir, lstat, top):
|
||||||
|
lstat = lstat and os.supports_follow_symlinks
|
||||||
try:
|
try:
|
||||||
btop = fsenc(top)
|
btop = fsenc(top)
|
||||||
if scandir and hasattr(os, "scandir"):
|
if scandir and hasattr(os, "scandir"):
|
||||||
|
Loading…
Reference in New Issue
Block a user