mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +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…
Add table
Add a link
Reference in a new issue