dovecot-2.1-pigeonhole: lib-sievestorage: Fixed a few potential ...
pigeonhole at rename-it.nl
pigeonhole at rename-it.nl
Thu Mar 28 23:12:10 EET 2013
details: http://hg.rename-it.nl/dovecot-2.1-pigeonhole/rev/b086291b9b9a
changeset: 1679:b086291b9b9a
user: Stephan Bosch <stephan at rename-it.nl>
date: Thu Mar 28 22:12:03 2013 +0100
description:
lib-sievestorage: Fixed a few potential problems in script save code.
diffstat:
src/lib-sievestorage/sieve-storage-save.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 3ba1c379a6b8 -r b086291b9b9a src/lib-sievestorage/sieve-storage-save.c
--- a/src/lib-sievestorage/sieve-storage-save.c Thu Mar 28 21:31:59 2013 +0100
+++ b/src/lib-sievestorage/sieve-storage-save.c Thu Mar 28 22:12:03 2013 +0100
@@ -202,7 +202,7 @@
ctx = p_new(pool, struct sieve_save_context, 1);
ctx->pool = pool;
ctx->storage = storage;
- ctx->scriptname = scriptname;
+ ctx->scriptname = p_strdup(pool, scriptname);
ctx->scriptobject = NULL;
T_BEGIN {
@@ -305,7 +305,7 @@
if ( ctx->scriptobject == NULL ) {
if ( ctx->storage->error_code == SIEVE_ERROR_NOT_FOUND ) {
sieve_storage_set_critical(ctx->storage,
- "save: Temporary script file with name '%s' got lost, "
+ "save: Temporary script file '%s' got lost, "
"which should not happen (possibly deleted externally).",
ctx->tmp_path);
}
@@ -324,7 +324,7 @@
const char *scriptname;
int ret;
- ret = sieve_storage_get_active_scriptfile(ctx->storage, &scriptname);
+ ret = sieve_storage_get_active_scriptname(ctx->storage, &scriptname);
if ( ret > 0 ) {
/* Is the requested script active? */
result = ( strcmp(ctx->scriptname, scriptname) == 0 );
More information about the dovecot-cvs
mailing list