(nscd_init): Non-persistent database files are created with the _PATH_NSCD_XYZ_DB_TMP path.
This commit is contained in:
parent
b3cce3d5e8
commit
a8a589676c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user