Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Remove a redundant directory separator character from the temporary filenames generated on windows. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
b5f0d70362be0312f58a7c1857a1165d |
| User & Date: | drh 2017-08-23 17:38:15.539 |
Context
|
2017-08-23
| ||
| 18:53 | (cherry-pick): Remove a redundant directory separator character from the temporary filenames generated on windows. (cherry-pick): Change the file_mkfolder() implementation to assume that the folder already exists and only go about creating it and its path if it does not previously exit. check-in: adacbfbcfb user: jan.nijtmans tags: branch-2.3 | |
| 17:53 | Change the file_mkfolder() implementation to assume that the folder already exists and only go about creating it and its path if it does not previously exit. check-in: 92ea61837e user: drh tags: trunk | |
| 17:38 | Remove a redundant directory separator character from the temporary filenames generated on windows. check-in: b5f0d70362 user: drh tags: trunk | |
| 17:29 | Add the test-tempname command for testing the file_tempname() routine. check-in: f1d23f04c0 user: drh tags: trunk | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 |
char zRand[16];
#if defined(_WIN32)
wchar_t zTmpPath[MAX_PATH];
if( GetTempPathW(MAX_PATH, zTmpPath) ){
azDirs[0] = fossil_path_to_utf8(zTmpPath);
}
azDirs[1] = fossil_getenv("TEMP");
azDirs[2] = fossil_getenv("TMP");
#else
azDirs[0] = fossil_getenv("TMPDIR");
#endif
| > > > > | 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 |
char zRand[16];
#if defined(_WIN32)
wchar_t zTmpPath[MAX_PATH];
if( GetTempPathW(MAX_PATH, zTmpPath) ){
azDirs[0] = fossil_path_to_utf8(zTmpPath);
/* Removing trailing \ from the temp path */
z = (char*)azDirs[0];
i = (int)strlen(z)-1;
if( i>0 && z[i]=='\\' ) z[i] = 0;
}
azDirs[1] = fossil_getenv("TEMP");
azDirs[2] = fossil_getenv("TMP");
#else
azDirs[0] = fossil_getenv("TMPDIR");
#endif
|
| ︙ | ︙ |