dovecot-2.2: lib-dict: Fixed race condition in mkdir()ing dict f...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Oct 6 19:12:35 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/721089f22ae4
changeset: 17897:721089f22ae4
user: Timo Sirainen <tss at iki.fi>
date: Mon Oct 06 22:12:01 2014 +0300
description:
lib-dict: Fixed race condition in mkdir()ing dict file's parent directory.
diffstat:
src/lib-dict/dict-file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 3e9fda96a205 -r 721089f22ae4 src/lib-dict/dict-file.c
--- a/src/lib-dict/dict-file.c Mon Oct 06 21:15:31 2014 +0300
+++ b/src/lib-dict/dict-file.c Mon Oct 06 22:12:01 2014 +0300
@@ -445,7 +445,7 @@
mode = st.st_mode;
}
- if (mkdir_parents(path, mode) < 0) {
+ if (mkdir_parents(path, mode) < 0 && errno != EEXIST) {
i_error("mkdir_parents(%s) failed: %m", path);
return -1;
}
More information about the dovecot-cvs
mailing list