changeset 22483:2a7fb92d36eb

lib-index: mail_index_use_existing_permissions() - Ignore with INDEX=MEMORY
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 11 Sep 2017 12:59:27 +0300
parents c5387cdc3964
children 71589abee915
files src/lib-index/mail-index.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index.c	Mon Sep 11 12:58:28 2017 +0300
+++ b/src/lib-index/mail-index.c	Mon Sep 11 12:59:27 2017 +0300
@@ -108,6 +108,9 @@
 {
 	struct stat st;
 
+	if (MAIL_INDEX_IS_IN_MEMORY(index))
+		return FALSE;
+
 	if (stat(index->dir, &st) < 0) {
 		if (errno != ENOENT)
 			i_error("stat(%s) failed: %m", index->dir);