From e7d7fad999cba0bff770f6d4ea0775a56af388a9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 18 Jul 2014 13:13:20 +0100 Subject: Use tmpdir for temporary files. --- src/certificate_chain.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/certificate_chain.cc b/src/certificate_chain.cc index dbed590b..5d01790b 100644 --- a/src/certificate_chain.cc +++ b/src/certificate_chain.cc @@ -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 (); -- cgit v1.2.3