dovecot-2.2: lib: file_create_locked() wasn't deleting the temp ...
dovecot at dovecot.org
dovecot at dovecot.org
Sat May 23 20:54:09 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/350f11821be2
changeset: 18741:350f11821be2
user: Timo Sirainen <tss at iki.fi>
date: Sat May 23 16:51:52 2015 -0400
description:
lib: file_create_locked() wasn't deleting the temp file after successful link()
diffstat:
src/lib/file-create-locked.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 78bbfe4e4e8e -r 350f11821be2 src/lib/file-create-locked.c
--- a/src/lib/file-create-locked.c Sat May 23 16:41:34 2015 -0400
+++ b/src/lib/file-create-locked.c Sat May 23 16:51:52 2015 -0400
@@ -72,6 +72,8 @@
str_c(temp_path), path);
}
} else {
+ if (unlink(str_c(temp_path)) < 0)
+ i_error("unlink(%s) failed: %m", str_c(temp_path));
*fd_r = fd;
return 1;
}
More information about the dovecot-cvs
mailing list