diff src/lib-storage/index/dbox-common/dbox-storage.c @ 15118:02d00843dd79

lib-storage: Cleanups to mailbox mkdir() related functions.
author Timo Sirainen <tss@iki.fi>
date Wed, 26 Sep 2012 17:11:22 +0300
parents 6e90fc8dfa25
children e3175ee39483
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-common/dbox-storage.c	Wed Sep 26 02:31:33 2012 +0300
+++ b/src/lib-storage/index/dbox-common/dbox-storage.c	Wed Sep 26 17:11:22 2012 +0300
@@ -285,7 +285,7 @@
 
 int dbox_verify_alt_storage(struct mailbox_list *list)
 {
-	const char *alt_path, *error;
+	const char *alt_path;
 	struct stat st;
 
 	alt_path = mailbox_list_get_root_path(list, MAILBOX_LIST_PATH_TYPE_ALT_DIR);
@@ -303,11 +303,7 @@
 	/* try to create the alt directory. if it fails, it means alt
 	   storage isn't mounted. */
 	if (mailbox_list_mkdir_root(list, alt_path,
-				    MAILBOX_LIST_PATH_TYPE_ALT_DIR,
-				    &error) < 0) {
-		i_error("Couldn't create dbox alt root dir %s: %s",
-			alt_path, error);
+				    MAILBOX_LIST_PATH_TYPE_ALT_DIR) < 0)
 		return -1;
-	}
 	return 0;
 }