From: dan Date: Tue, 5 Oct 2010 11:33:15 +0000 (+0000) Subject: Fix an assert() failing on OSX. X-Git-Tag: version-3.7.4~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0015739ae53e149dc5162218e92506ec9e928dee;p=thirdparty%2Fsqlite.git Fix an assert() failing on OSX. FossilOrigin-Name: dca8763872aa6244cb1a0f519167b360a6372d0d --- diff --git a/manifest b/manifest index 80563f1bcc..61ceddf76b 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Prevent\sbackcompat.test\sfrom\smistaking\sdirectories\sfor\sbinary\sexecutables. -D 2010-10-05T08:13:44 +C Fix\san\sassert()\sfailing\son\sOSX. +D 2010-10-05T11:33:15 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f F Makefile.in c599a15d268b1db2aeadea19df2adc3bf2eb6bee F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23 @@ -159,7 +159,7 @@ F src/os.c 22ac61d06e72a0dac900400147333b07b13d8e1d F src/os.h 9dbed8c2b9c1f2f2ebabc09e49829d4777c26bf9 F src/os_common.h a8f95b81eca8a1ab8593d23e94f8a35f35d4078f F src/os_os2.c 72d0b2e562952a2464308c4ce5f7913ac10bef3e -F src/os_unix.c dd62c4b204fdf8a3804e28c7b09bcea98359ca53 +F src/os_unix.c ae27ac760ad9c79f0fa3c96bfb31975c45aa704d F src/os_win.c 2f90f7bdec714fad51cd31b4ecad3cc1b4bb5aad F src/pager.c 4760042267a002216c208aeaa7fc6d0a85df94a5 F src/pager.h 8167a1e720d0b7a2790079007128e594010220ad @@ -872,7 +872,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e F tool/vdbe-compress.tcl d70ea6d8a19e3571d7ab8c9b75cba86d1173ff0f -P ece641eb8951c6314cedbdb3243f91cb199c3239 -R dc67a24b400f49df7bb254ce9f771e51 +P 717a1e50f005714b1d5233f80697db14cd8af659 +R d10845ef1e691a2ad01891e85e2d80d0 U dan -Z 587203dfa138eccd760d5a9e6f1cf6e1 +Z 652216f622ccc928c73ebb6c6f01edca diff --git a/manifest.uuid b/manifest.uuid index 8c81e26d1f..916a332936 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -717a1e50f005714b1d5233f80697db14cd8af659 \ No newline at end of file +dca8763872aa6244cb1a0f519167b360a6372d0d \ No newline at end of file diff --git a/src/os_unix.c b/src/os_unix.c index f1a65949f4..a28db0bf0c 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -4077,11 +4077,20 @@ static int fillInUnixFile( */ UNUSED_PARAMETER(isDelete); + /* Usually the path zFilename should not be a relative pathname. The + ** exception is when opening the proxy "conch" file in builds that + ** include the special Apple locking styles. + */ + assert( zFilename==0 || zFilename[0]=='/' +#if defined(__APPLE__) && SQLITE_ENABLE_LOCKING_STYLE + || pVfs->pAppData==(void*)&autolockIoFinder +#endif + ); + OSTRACE(("OPEN %-3d %s\n", h, zFilename)); pNew->h = h; pNew->dirfd = dirfd; pNew->fileFlags = 0; - assert( zFilename==0 || zFilename[0]=='/' ); /* Never a relative pathname */ pNew->zPath = zFilename; #if OS_VXWORKS