From 9b9ddecf0adc07dce55e8dcf776e05adb7c0d3a0 Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Fri, 5 Sep 2014 10:02:59 +0200 Subject: [PATCH] Replace getenv("TEMP") by RDTempFile() in RDParsePost --- lib/rdweb.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/rdweb.cpp b/lib/rdweb.cpp index ede0d81d..5999d128 100644 --- a/lib/rdweb.cpp +++ b/lib/rdweb.cpp @@ -783,13 +783,7 @@ bool RDParsePost(std::map *vars) // // Initialize Temp Directory Path // - if(getenv("TMPDIR")!=NULL) { - tempdir=getenv("TMPDIR"); - } - else { - tempdir="/tmp"; - } - tempdir+="/rivendellXXXXXX"; + tempdir = RDTempDir() + "/rivendellXXXXXX"; // // Get message part separator