1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

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);