Mercurial > dovecot > original-hg > dovecot-2.2
changeset 6774:532b29891022 HEAD
Log error if safe_mkstemp() fails
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 11 Nov 2007 17:01:44 +0200 |
parents | b2b1da3f85b4 |
children | b6135e6a5ff2 |
files | src/plugins/acl/acl-backend-vfile-acllist.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/acl/acl-backend-vfile-acllist.c Sun Nov 11 17:01:34 2007 +0200 +++ b/src/plugins/acl/acl-backend-vfile-acllist.c Sun Nov 11 17:01:44 2007 +0200 @@ -201,8 +201,10 @@ to use locking, because even if multiple processes are rebuilding the file at the same time the result should be the same. */ fd = safe_mkstemp(path, mode, (uid_t)-1, gid); - if (fd == -1) + if (fd == -1) { + i_error("safe_mkstemp(%s) failed: %m", str_c(path)); return -1; + } output = o_stream_create_fd_file(fd, 0, FALSE); ret = 0;