mirror of git://sourceware.org/git/glibc.git
(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
|
else
|
||||||
{
|
{
|
||||||
size_t slen = strlen (dbs[cnt].db_filename);
|
char fname[] = _PATH_NSCD_XYZ_DB_TMP;
|
||||||
char fname[slen + 8];
|
|
||||||
strcpy (mempcpy (fname, dbs[cnt].db_filename, slen),
|
|
||||||
".XXXXXX");
|
|
||||||
fd = mkstemp (fname);
|
fd = mkstemp (fname);
|
||||||
|
|
||||||
/* We do not need the file name anymore after we
|
/* We do not need the file name anymore after we
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue