/ Check-in [26a4e7e7]
Login
Overview
Comment:Fix for ticket #132: make the working directory the last choice for where to write temporary files, not the first choice. (CVS 712)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:26a4e7e7a3eee62c170ce264cb964a92bc7f52c9
User & Date: drh 2002-08-14 00:10:44
Context
2002-08-14
03:03
Disable sorting by indices if there is a COLLATE subclause in the ORDER BY clause. (CVS 713) check-in: 2438da79 user: drh tags: trunk
00:10
Fix for ticket #132: make the working directory the last choice for where to write temporary files, not the first choice. (CVS 712) check-in: 26a4e7e7 user: drh tags: trunk
00:08
Update documentation to better explain the typelessness of SQLite and to describe the distinction between text and numeric data. (CVS 711) check-in: 4ff0f578 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/os.c.

394
395
396
397
398
399
400
401
402
403
404

405
406
407
408
409
410
411
/*
** Create a temporary file name in zBuf.  zBuf must be big enough to
** hold at least SQLITE_TEMPNAME_SIZE characters.
*/
int sqliteOsTempFileName(char *zBuf){
#if OS_UNIX
  static const char *azDirs[] = {
     ".",
     "/var/tmp",
     "/usr/tmp",
     "/tmp",

  };
  static char zChars[] =
    "abcdefghijklmnopqrstuvwxyz"
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    "0123456789";
  int i, j;
  struct stat buf;







<



>







394
395
396
397
398
399
400

401
402
403
404
405
406
407
408
409
410
411
/*
** Create a temporary file name in zBuf.  zBuf must be big enough to
** hold at least SQLITE_TEMPNAME_SIZE characters.
*/
int sqliteOsTempFileName(char *zBuf){
#if OS_UNIX
  static const char *azDirs[] = {

     "/var/tmp",
     "/usr/tmp",
     "/tmp",
     ".",
  };
  static char zChars[] =
    "abcdefghijklmnopqrstuvwxyz"
    "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    "0123456789";
  int i, j;
  struct stat buf;