dtsession/SmGlobals: unlink mkstemp generated files.

This commit is contained in:
Jon Trulson
2014-12-27 17:24:04 -07:00
parent 4b38955b01
commit 93783917ab

View File

@@ -1124,6 +1124,8 @@ SetSavePath(
else
{
close(tfd);
unlink(tmpName);
MoveDirectory(smGD.etcPath, tmpName, False);
strncpy(savedTmpDir, tmpName, len - 1);
@@ -1189,6 +1191,8 @@ SetSavePath(
else
{
close(tfd);
unlink(tmpName);
MoveDirectory (smGD.etcPath, tmpName, False);
strcpy (savedTmpDir, tmpName);