(nscd_init): Non-persistent database files are created with the _PATH_NSCD_XYZ_DB_TMP path.

This commit is contained in:
Ulrich Drepper 2004-10-15 21:12:15 +00:00
parent b3cce3d5e8
commit a8a589676c

View File

@ -319,10 +319,7 @@ cannot create read-only descriptor for \"%s\"; no mmap"),
}
else
{
size_t slen = strlen (dbs[cnt].db_filename);
char fname[slen + 8];
strcpy (mempcpy (fname, dbs[cnt].db_filename, slen),
".XXXXXX");
char fname[] = _PATH_NSCD_XYZ_DB_TMP;
fd = mkstemp (fname);
/* We do not need the file name anymore after we