From: Jon Trulson Date: Sun, 28 Dec 2014 00:24:04 +0000 (-0700) Subject: dtsession/SmGlobals: unlink mkstemp generated files. X-Git-Tag: 2.2.3~60^2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=93783917ab7c8b9f7688b04ac05894a5d38f3700;p=oweals%2Fcde.git dtsession/SmGlobals: unlink mkstemp generated files. --- diff --git a/cde/programs/dtsession/SmGlobals.c b/cde/programs/dtsession/SmGlobals.c index 16853ef9..8a0f68ed 100644 --- 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);