diff src/lib-index/mail-index.c @ 4071:cd3d26cf124a HEAD

Renamed safe-open.* to nfs-workarounds.*, safe_open() to nfs_safe_open() and added a new global NFS_ESTALE_RETRY_COUNT which everyone uses instead of defining their own.
author Timo Sirainen <tss@iki.fi>
date Sun, 26 Feb 2006 12:15:39 +0200
parents 96ae9c096bde
children 7e6acdd8d18d
line wrap: on
line diff
--- a/src/lib-index/mail-index.c	Sun Feb 26 12:04:59 2006 +0200
+++ b/src/lib-index/mail-index.c	Sun Feb 26 12:15:39 2006 +0200
@@ -5,7 +5,7 @@
 #include "buffer.h"
 #include "hash.h"
 #include "mmap-util.h"
-#include "safe-open.h"
+#include "nfs-workarounds.h"
 #include "read-full.h"
 #include "write-full.h"
 #include "mail-index-private.h"
@@ -1194,7 +1194,7 @@
         /* Note that our caller must close index->fd by itself.
            mail_index_reopen() for example wants to revert back to old
            index file if opening the new one fails. */
-	index->fd = safe_open(index->filepath, O_RDWR);
+	index->fd = nfs_safe_open(index->filepath, O_RDWR);
 	index->readonly = FALSE;
 
 	if (index->fd == -1 && errno == EACCES) {