1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Make sure temporary file names in windows have a full 15 characters of

random text at the end. (CVS 1059)

FossilOrigin-Name: 6ccb92b14f2e6e01bb60dac10331fa7be0b4525e
This commit is contained in:
drh
2003-07-22 00:39:13 +00:00
parent 7b58daeafe
commit 4d87325d61
3 changed files with 8 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
C Fix\sthe\sLIMIT\sclause\sso\sthat\sit\sapplies\sto\sthe\sentire\squery\sin\sa\scompound\nquery.\s\sPrior\sto\sthis\schange\sLIMITs\son\scompound\squeries\sdid\snot\swork\sat\nall.\s\sTicket\s#393.\s(CVS\s1058) C Make\ssure\stemporary\sfile\snames\sin\swindows\shave\sa\sfull\s15\scharacters\sof\nrandom\stext\sat\sthe\send.\s(CVS\s1059)
D 2003-07-20T01:16:47 D 2003-07-22T00:39:14
F Makefile.in 9ad23ed4ca97f9670c4496432e3fbd4b3760ebde F Makefile.in 9ad23ed4ca97f9670c4496432e3fbd4b3760ebde
F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906 F Makefile.linux-gcc b86a99c493a5bfb402d1d9178dcdc4bd4b32f906
F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd F README f1de682fbbd94899d50aca13d387d1b3fd3be2dd
@@ -35,7 +35,7 @@ F src/hash.h cd0433998bc1a3759d244e1637fe5a3c13b53bf8
F src/insert.c fc4c26a0bb505fb802babfb9a7b7a1d4be2e3061 F src/insert.c fc4c26a0bb505fb802babfb9a7b7a1d4be2e3061
F src/main.c 8053b3a76e4e77c769b324a2f1cc99a0265d0ec4 F src/main.c 8053b3a76e4e77c769b324a2f1cc99a0265d0ec4
F src/md5.c fe4f9c9c6f71dfc26af8da63e4d04489b1430565 F src/md5.c fe4f9c9c6f71dfc26af8da63e4d04489b1430565
F src/os.c 0d5252d60c1b0f21a343b18248d3dfcafb94e621 F src/os.c 2f24ede4d3464ac38d24d113e0d44d3c7d460be4
F src/os.h 9e5bbddff123187295e3d00d49af06192cd1cd49 F src/os.h 9e5bbddff123187295e3d00d49af06192cd1cd49
F src/pager.c 9512e789dbd5acaf91e74c4665e03c2734d3da25 F src/pager.c 9512e789dbd5acaf91e74c4665e03c2734d3da25
F src/pager.h 5da62c83443f26b1792cfd72c96c422f91aadd31 F src/pager.h 5da62c83443f26b1792cfd72c96c422f91aadd31
@@ -168,7 +168,7 @@ F www/speed.tcl 2f6b1155b99d39adb185f900456d1d592c4832b3
F www/sqlite.tcl 3c83b08cf9f18aa2d69453ff441a36c40e431604 F www/sqlite.tcl 3c83b08cf9f18aa2d69453ff441a36c40e431604
F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331 F www/tclsqlite.tcl 1db15abeb446aad0caf0b95b8b9579720e4ea331
F www/vdbe.tcl 9b9095d4495f37697fd1935d10e14c6015e80aa1 F www/vdbe.tcl 9b9095d4495f37697fd1935d10e14c6015e80aa1
P c35e50717678703763c696e3e9b265add2ca6454 P 543479e3aed77976a0c689cf40811bf88353f706
R b4eed2ab716bec174fb746f718cb9bae R 4b5c7a99f11b5b97ce8b005695a09544
U drh U drh
Z 22959393424831715116c486cae1faab Z 3eaafec342ab59e94ea1fdb3d5b75ad3

View File

@@ -1 +1 @@
543479e3aed77976a0c689cf40811bf88353f706 6ccb92b14f2e6e01bb60dac10331fa7be0b4525e

View File

@@ -647,7 +647,7 @@ int sqliteOsTempFileName(char *zBuf){
sprintf(zBuf, "%s\\"TEMP_FILE_PREFIX, zTempPath); sprintf(zBuf, "%s\\"TEMP_FILE_PREFIX, zTempPath);
j = strlen(zBuf); j = strlen(zBuf);
for(i=0; i<15; i++){ for(i=0; i<15; i++){
int n = sqliteRandomByte() % sizeof(zChars); int n = sqliteRandomByte() % (sizeof(zChars) - 1);
zBuf[j++] = zChars[n]; zBuf[j++] = zChars[n];
} }
zBuf[j] = 0; zBuf[j] = 0;