mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@@ -259,6 +259,12 @@ LPCSTR PlugSetPath(LPSTR pBuff, LPCSTR prefix, LPCSTR FileName, LPCSTR defpath)
|
||||
if (trace(2))
|
||||
htrc("prefix=%-.256s fn=%-.256s path=%-.256s\n", prefix, FileName, defpath);
|
||||
|
||||
if (strlen(FileName) >= _MAX_PATH)
|
||||
{
|
||||
*pBuff= 0; /* Hope this is treated as error of some kind*/
|
||||
return FileName;
|
||||
}
|
||||
|
||||
if (!strncmp(FileName, "//", 2) || !strncmp(FileName, "\\\\", 2)) {
|
||||
strcpy(pBuff, FileName); // Remote file
|
||||
return pBuff;
|
||||
|
Reference in New Issue
Block a user