dovecot-2.2: lib: file_create_locked() no longer logs an error i...
dovecot at dovecot.org
dovecot at dovecot.org
Sat May 23 23:23:25 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/f98aad82ddda
changeset: 18742:f98aad82ddda
user: Timo Sirainen <tss at iki.fi>
date: Sat May 23 19:21:10 2015 -0400
description:
lib: file_create_locked() no longer logs an error if temp file is deleted under it.
diffstat:
src/lib/file-create-locked.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 350f11821be2 -r f98aad82ddda src/lib/file-create-locked.c
--- a/src/lib/file-create-locked.c Sat May 23 16:51:52 2015 -0400
+++ b/src/lib/file-create-locked.c Sat May 23 19:21:10 2015 -0400
@@ -72,14 +72,14 @@
str_c(temp_path), path);
}
} else {
- if (unlink(str_c(temp_path)) < 0)
+ if (unlink(str_c(temp_path)) < 0 && errno != ENOENT)
i_error("unlink(%s) failed: %m", str_c(temp_path));
*fd_r = fd;
return 1;
}
orig_errno = errno;
i_close_fd(&fd);
- if (unlink(str_c(temp_path)) < 0)
+ if (unlink(str_c(temp_path)) < 0 && errno != ENOENT)
i_error("unlink(%s) failed: %m", str_c(temp_path));
errno = orig_errno;
return ret;
More information about the dovecot-cvs
mailing list