aboutsummaryrefslogtreecommitdiff
path: root/src/os_win.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2019-11-22 00:42:01 +0000
committerdrh <drh@noemail.net>2019-11-22 00:42:01 +0000
commitc398c65bee850b6b8f24a44852872a27f114535d (patch)
tree400756f2c2735468faaa02daa969838df2854778 /src/os_win.c
parentcd30064bd502b9b42a4e0c0e04850f09cefa2617 (diff)
downloadsqlite-c398c65bee850b6b8f24a44852872a27f114535d.tar.gz
sqlite-c398c65bee850b6b8f24a44852872a27f114535d.zip
Revise the SQLITE_OPEN_NOFOLLOW so that it actually uses O_NOFOLLOW in the
open() system call. This backs out the SQLITE_ACCESS_SYMLINK value but adds the new SQLITE_OK_SYMLINK return code from the xFullPathname method of sqlite3_vfs when that routine resolves symbolic links. O_NOFOLLOW is always included in open() system calls for journal files. FossilOrigin-Name: 6a64fb6a2da6c98f1e87b55ad5689967e1db4eae2e08345471d95e28cd567e0f
Diffstat (limited to 'src/os_win.c')
-rw-r--r--src/os_win.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/os_win.c b/src/os_win.c
index 698d6556c..32758ab76 100644
--- a/src/os_win.c
+++ b/src/os_win.c
@@ -81,14 +81,6 @@
#endif
/*
-** This constant is needed by the winAccess function; therefore, define
-** it when it is missing from the SDK header files.
-*/
-#ifndef FILE_ATTRIBUTE_REPARSE_POINT
-# define FILE_ATTRIBUTE_REPARSE_POINT 0x00000400
-#endif
-
-/*
** Check to see if the GetVersionEx[AW] functions are deprecated on the
** target system. GetVersionEx was first deprecated in Win8.1.
*/
@@ -5480,10 +5472,6 @@ static int winAccess(
rc = attr!=INVALID_FILE_ATTRIBUTES &&
(attr & FILE_ATTRIBUTE_READONLY)==0;
break;
- case SQLITE_ACCESS_SYMLINK:
- rc = attr!=INVALID_FILE_ATTRIBUTES &&
- (attr & FILE_ATTRIBUTE_REPARSE_POINT)!=0;
- break;
default:
assert(!"Invalid flags argument");
}