summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-06-01 01:26:51 +0100
committerCarl Hetherington <cth@carlh.net>2017-06-01 01:26:51 +0100
commit769ce034cbb2f95f01dba3d22f7bd554ecb14f3e (patch)
treefd11f6f0a3c116ebc3fe29464d971f911256f9bb /src
parent9df90fa5776dc4e96157de844c632f8b84c78cb3 (diff)
Create ZIP files for emails in temporary directories.
Diffstat (limited to 'src')
-rw-r--r--src/lib/cinema_kdms.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/cinema_kdms.cc b/src/lib/cinema_kdms.cc
index 1ec854620..2b6a51e41 100644
--- a/src/lib/cinema_kdms.cc
+++ b/src/lib/cinema_kdms.cc
@@ -208,7 +208,8 @@ CinemaKDMs::email (
name_values['c'] = i.cinema->name;
- boost::filesystem::path zip_file = boost::filesystem::temp_directory_path();
+ boost::filesystem::path zip_file = boost::filesystem::temp_directory_path() / boost::filesystem::unique_path();
+ boost::filesystem::create_directories (zip_file);
zip_file /= container_name_format.get(name_values, ".zip");
i.make_zip_file (zip_file, filename_format, name_values);