From: Eric Snow Date: Mon, 27 Sep 2021 16:52:19 +0000 (-0600) Subject: Do not check isabs() on Windows. (gh-28584) X-Git-Tag: v3.11.0a1~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16b5bc68964c6126845f4cdd54b24996e71ae0ba;p=thirdparty%2FPython%2Fcpython.git Do not check isabs() on Windows. (gh-28584) I missed this in gh-28550. https://bugs.python.org/issue45211 --- diff --git a/Python/fileutils.c b/Python/fileutils.c index 2492d0567d84..ecfdc5758eb8 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));