Use tmpdir for temporary files.
authorCarl Hetherington <cth@carlh.net>
Fri, 18 Jul 2014 12:13:20 +0000 (13:13 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 18 Jul 2014 12:13:20 +0000 (13:13 +0100)
src/certificate_chain.cc

index dbed590b001b55efc50dd10eb790b7b43abb2926..5d01790b0ac381aa9c43e7fb3b37d259135ba451 100644 (file)
@@ -159,7 +159,7 @@ public_key_digest (boost::filesystem::path private_key, boost::filesystem::path
 boost::filesystem::path
 dcp::make_certificate_chain (boost::filesystem::path openssl)
 {
-       boost::filesystem::path directory = boost::filesystem::unique_path ();
+       boost::filesystem::path directory = boost::filesystem::temp_directory_path() / boost::filesystem::unique_path ();
        boost::filesystem::create_directories (directory);
        
        boost::filesystem::path const cwd = boost::filesystem::current_path ();