Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/os_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -3258,9 +3258,17 @@ int sqlite3_win_test_unc_locking = 0;
/*
** Return true if the string passed as the only argument is likely
** to be a UNC path. In other words, if it starts with "\\".
** A local DOS-device drive path ("\\?\X:\...") also starts with "\\",
** but is not a UNC path.
*/
static int winIsUNCPath(const char *zFile){
if( zFile[0]=='\\' && zFile[1]=='\\' ){
if( winIsLongPathPrefix(zFile)
&& winIsDriveLetterAndColon(zFile+4)
&& winIsDirSep(zFile[6])
){
return sqlite3_win_test_unc_locking;
}
return 1;
}
return sqlite3_win_test_unc_locking;
Expand Down