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:
parent
4b38955b01
commit
93783917ab
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue