We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1f0659 commit ffaaf93Copy full SHA for ffaaf93
port/cpl_vsil.cpp
@@ -647,8 +647,12 @@ int VSIMkdirRecursive(const char *pszPathname, long mode)
647
if (!pszPathname)
648
return -1;
649
650
- const std::string osPathnameOri(VSIFileManager::GetHandler(pszPathname)
651
- ->GetCanonicalFilename(pszPathname));
+ std::string osPathnameOri(pszPathname);
+ if (cpl::starts_with(osPathnameOri, "/vsimem/"))
652
+ {
653
+ osPathnameOri = VSIFileManager::GetHandler(pszPathname)
654
+ ->GetCanonicalFilename(osPathnameOri);
655
+ }
656
// Limit to avoid performance issues such as in
657
// https://issues.oss-fuzz.com/issues/471096341
658
constexpr size_t CPL_MAX_PATH = 4096;
0 commit comments