projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b38955
)
dtsession/SmGlobals: unlink mkstemp generated files.
author
Jon Trulson
<jon@radscan.com>
Sun, 28 Dec 2014 00:24:04 +0000
(17:24 -0700)
committer
Jon Trulson
<jon@radscan.com>
Sun, 28 Dec 2014 00:24:04 +0000
(17:24 -0700)
cde/programs/dtsession/SmGlobals.c
patch
|
blob
|
history
diff --git
a/cde/programs/dtsession/SmGlobals.c
b/cde/programs/dtsession/SmGlobals.c
index 16853ef92cef8d0f4c37a8687d309620babccdfd..8a0f68eddc1b700fcf8fbe0e1967b7f19730c6a2 100644
(file)
--- a/
cde/programs/dtsession/SmGlobals.c
+++ b/
cde/programs/dtsession/SmGlobals.c
@@
-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);