]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Do not check isabs() on Windows. (gh-28584)
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 27 Sep 2021 16:52:19 +0000 (10:52 -0600)
committerGitHub <noreply@github.com>
Mon, 27 Sep 2021 16:52:19 +0000 (10:52 -0600)
I missed this in gh-28550.

https://bugs.python.org/issue45211

Python/fileutils.c

index 2492d0567d84aa58b929d17f86cb175664dce6b7..ecfdc5758eb84fbcb7c95f4b8a51118cdcfddb84 100644 (file)
@@ -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));