dovecot: nfs_safe_link() was used wrong
dovecot at dovecot.org
dovecot at dovecot.org
Sun Nov 18 08:01:59 EET 2007
details: http://hg.dovecot.org/dovecot/rev/8470d0845fc2
changeset: 6828:8470d0845fc2
user: Timo Sirainen <tss at iki.fi>
date: Sun Nov 18 08:01:54 2007 +0200
description:
nfs_safe_link() was used wrong
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
src/lib-storage/index/dbox/dbox-index.c | 4 +++-
diffs (21 lines):
diff -r e3af6e0e55ae -r 8470d0845fc2 src/lib-storage/index/dbox/dbox-index.c
--- a/src/lib-storage/index/dbox/dbox-index.c Sun Nov 18 01:45:29 2007 +0200
+++ b/src/lib-storage/index/dbox/dbox-index.c Sun Nov 18 08:01:54 2007 +0200
@@ -7,6 +7,7 @@
#include "istream.h"
#include "ostream.h"
#include "write-full.h"
+#include "nfs-workarounds.h"
#include "safe-mkstemp.h"
#include "dbox-storage.h"
#include "dbox-file.h"
@@ -611,7 +612,8 @@ static int dbox_index_recreate(struct db
ret = -1;
}
} else {
- if (nfs_safe_link(str_c(temp_path), index->path) < 0 &&
+ if (nfs_safe_link(str_c(temp_path), index->path,
+ TRUE) < 0 &&
errno != EEXIST) {
mail_storage_set_critical(storage,
"link(%s, %s) failed: %m",
More information about the dovecot-cvs
mailing list