summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-09-27 16:52:19 (GMT)
committerGitHub <noreply@github.com>2021-09-27 16:52:19 (GMT)
commit16b5bc68964c6126845f4cdd54b24996e71ae0ba (patch)
tree055386f148783482b5f411bbd24d6e4999f8f017 /Python/fileutils.c
parentae7839bbe817329dd015f9195da308a0f3fbd3e2 (diff)
downloadcpython-16b5bc68964c6126845f4cdd54b24996e71ae0ba.zip
cpython-16b5bc68964c6126845f4cdd54b24996e71ae0ba.tar.gz
cpython-16b5bc68964c6126845f4cdd54b24996e71ae0ba.tar.bz2
Do not check isabs() on Windows. (gh-28584)
I missed this in gh-28550. https://bugs.python.org/issue45211
Diffstat (limited to 'Python/fileutils.c')
-rw-r--r--Python/fileutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/fileutils.c b/Python/fileutils.c
index 2492d05..ecfdc57 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -2138,7 +2138,9 @@ wchar_t *
_Py_join_relfile(const wchar_t *dirname, const wchar_t *relfile)
{
assert(dirname != NULL && relfile != NULL);
+#ifndef MS_WINDOWS
assert(!_Py_isabs(relfile));
+#endif
size_t maxlen = wcslen(dirname) + 1 + wcslen(relfile);
size_t bufsize = maxlen + 1;
wchar_t *filename = PyMem_RawMalloc(bufsize * sizeof(wchar_t));