summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub KulĂ­k <Kulikjak@gmail.com>2024-09-24 20:23:17 (GMT)
committerGitHub <noreply@github.com>2024-09-24 20:23:17 (GMT)
commitb169cf394fe70dfbc7bbe22ae703be3b21845add (patch)
treed48df15f59faa1f04342e14dbe5d3e1608915699
parentf4997bb3ac961d6aaf07ce650cd074e28ce6ccd0 (diff)
downloadcpython-b169cf394fe70dfbc7bbe22ae703be3b21845add.zip
cpython-b169cf394fe70dfbc7bbe22ae703be3b21845add.tar.gz
cpython-b169cf394fe70dfbc7bbe22ae703be3b21845add.tar.bz2
gh-86009: Fix solaris detection in `_USE_CP_SENDFILE` check (GH-124289)
-rw-r--r--Lib/shutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index 89c12b7..dab3ca5 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -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