[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-util.c, 1.3, 1.4

cras at procontrol.fi cras at procontrol.fi
Tue May 11 01:40:31 EEST 2004


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

Modified Files:
	maildir-util.c 
Log Message:
t_push/t_pop



Index: maildir-util.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-util.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- maildir-util.c	2 May 2004 20:32:16 -0000	1.3
+++ maildir-util.c	10 May 2004 22:40:29 -0000	1.4
@@ -22,16 +22,21 @@
 	if (fname == NULL)
 		return -2; /* expunged */
 
+	t_push();
 	if ((flags & MAILDIR_UIDLIST_REC_FLAG_NEW_DIR) != 0) {
 		/* probably in new/ dir */
 		path = t_strconcat(ibox->path, "/new/", fname, NULL);
 		ret = func(ibox, path, context);
-		if (ret != 0)
+		if (ret != 0) {
+			t_pop();
 			return ret;
+		}
 	}
 
 	path = t_strconcat(ibox->path, "/cur/", fname, NULL);
-	return func(ibox, path, context);
+	ret = func(ibox, path, context);
+	t_pop();
+	return ret;
 }
 
 int maildir_file_do(struct index_mailbox *ibox, uint32_t uid,



More information about the dovecot-cvs mailing list