mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
vol: use correct file name base for temporary file
Inconsistent use of temporary file name bases resulted in the temporary files never being deleted. Change-Id: I0be59282488bb2db0f1b7b5200df5bd6ac285711 Reviewed-on: http://gerrit.openafs.org/3705 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
parent
089a3f5e8b
commit
01fc5d0577
@ -1166,7 +1166,7 @@ GetInodeSummary(struct SalvInfo *salvinfo, FILE *inodeFile, VolumeId singleVolum
|
||||
tdir = (tmpdir ? tmpdir : part);
|
||||
#ifdef AFS_NT40_ENV
|
||||
(void)_putenv("TMP="); /* If "TMP" is set, then that overrides tdir. */
|
||||
(void)strcpy(summaryFileName, _tempnam(tdir, "salvage.temp"));
|
||||
(void)strcpy(summaryFileName, _tempnam(tdir, "salvage.temp."));
|
||||
#else
|
||||
(void)afs_snprintf(summaryFileName, sizeof summaryFileName,
|
||||
"%s" OS_DIRSEP "salvage.temp.%d", tdir, getpid());
|
||||
|
Loading…
Reference in New Issue
Block a user