dovecot-2.2: lib-fs: Added username and session_id to struct fs ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 9 12:57:41 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/27d269bbbdf0
changeset: 17613:27d269bbbdf0
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jul 09 15:55:59 2014 +0300
description:
lib-fs: Added username and session_id to struct fs directly.

diffstat:

 src/lib-fs/fs-api-private.h |  2 ++
 src/lib-fs/fs-api.c         |  4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diffs (33 lines):

diff -r 3f84f9cb7460 -r 27d269bbbdf0 src/lib-fs/fs-api-private.h
--- a/src/lib-fs/fs-api-private.h	Wed Jul 09 15:24:21 2014 +0300
+++ b/src/lib-fs/fs-api-private.h	Wed Jul 09 15:55:59 2014 +0300
@@ -59,6 +59,8 @@
 	struct fs_vfuncs v;
 	char *temp_path_prefix;
 
+	char *username, *session_id;
+
 	struct fs_settings set;
 	string_t *last_error;
 
diff -r 3f84f9cb7460 -r 27d269bbbdf0 src/lib-fs/fs-api.c
--- a/src/lib-fs/fs-api.c	Wed Jul 09 15:24:21 2014 +0300
+++ b/src/lib-fs/fs-api.c	Wed Jul 09 15:55:59 2014 +0300
@@ -35,6 +35,8 @@
 		fs_deinit(&fs);
 		return -1;
 	}
+	fs->username = i_strdup(set->username);
+	fs->session_id = i_strdup(set->session_id);
 	*fs_r = fs;
 	return 0;
 }
@@ -142,6 +144,8 @@
 			fs->name, fs->files_open_count);
 	}
 
+	i_free(fs->username);
+	i_free(fs->session_id);
 	i_free(fs->temp_path_prefix);
 	T_BEGIN {
 		fs->v.deinit(fs);


More information about the dovecot-cvs mailing list