]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-86009: Fix solaris detection in `_USE_CP_SENDFILE` check (GH-124289)
authorJakub Kulík <Kulikjak@gmail.com>
Tue, 24 Sep 2024 20:23:17 +0000 (22:23 +0200)
committerGitHub <noreply@github.com>
Tue, 24 Sep 2024 20:23:17 +0000 (22:23 +0200)
Lib/shutil.py

index 89c12b76b61dfca2c670f6e5e030fa5cb28770dc..dab3ca5ee91245ce25777b7de1a2d64b276970c0 100644 (file)
@@ -48,7 +48,7 @@ COPY_BUFSIZE = 1024 * 1024 if _WINDOWS else 64 * 1024
 # This should never be removed, see rationale in:
 # https://bugs.python.org/issue43743#msg393429
 _USE_CP_SENDFILE = (hasattr(os, "sendfile")
-                    and sys.platform.startswith(("linux", "android", "solaris")))
+                    and sys.platform.startswith(("linux", "android", "sunos")))
 _HAS_FCOPYFILE = posix and hasattr(posix, "_fcopyfile")  # macOS
 
 # CMD defaults in Windows 10