[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c, 1.77, 1.78

cras at dovecot.org cras at dovecot.org
Fri Jul 9 22:22:17 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv6660/lib-storage/index/maildir

Modified Files:
	maildir-storage.c 
Log Message:
Create all the missing paths up to maildir



Index: maildir-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -d -r1.77 -r1.78
--- maildir-storage.c	9 Jul 2004 19:16:27 -0000	1.77
+++ maildir-storage.c	9 Jul 2004 19:22:15 -0000	1.78
@@ -293,7 +293,7 @@
 		}
 	}
 
-	if (mkdir(dir, CREATE_MODE) < 0 && (errno != EEXIST || !verify)) {
+	if (mkdir_parents(dir, CREATE_MODE) < 0 && (errno != EEXIST || !verify)) {
 		if (errno != EEXIST && (!verify || errno != ENOENT)) {
 			mail_storage_set_critical(&storage->storage,
 						  "mkdir(%s) failed: %m", dir);



More information about the dovecot-cvs mailing list