changeset 15400:5552ac605201

lib-fs: Added a temp_dir setting that the caller can specify.
author Timo Sirainen <tss@iki.fi>
date Mon, 26 Nov 2012 23:03:09 +0200
parents 39578785ee92
children 22cfb7b347a8
files src/lib-fs/fs-api.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-fs/fs-api.h	Mon Nov 26 23:02:51 2012 +0200
+++ b/src/lib-fs/fs-api.h	Mon Nov 26 23:03:09 2012 +0200
@@ -52,6 +52,10 @@
 struct fs_settings {
 	/* Dovecot instance's base_dir */
 	const char *base_dir;
+	/* Directory where temporary files can be created at any time
+	   (e.g. /tmp or mail_temp_dir) */
+	const char *temp_dir;
+
 	/* Automatically try to rmdir() directories up to this path when
 	   deleting files. */
 	const char *root_path;