[dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.54,1.55 mbox-rewrite.c,1.43,1.44

cras at procontrol.fi cras at procontrol.fi
Wed Dec 18 17:15:43 EET 2002


Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv3676/src/lib-index/mbox

Modified Files:
	mbox-index.c mbox-rewrite.c 
Log Message:
Marked all non-trivial buffer modifications with @UNSAFE tag. Several
cleanups and a couple of minor bugfixes.



Index: mbox-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- mbox-index.c	8 Dec 2002 05:23:08 -0000	1.54
+++ mbox-index.c	18 Dec 2002 15:15:41 -0000	1.55
@@ -119,7 +119,8 @@
 	mbox_file_close_stream(index);
 
 	if (index->mbox_fd != -1) {
-		close(index->mbox_fd);
+		if (close(index->mbox_fd) < 0)
+			i_error("close(mbox) failed: %m");
 		index->mbox_fd = -1;
 	}
 }

Index: mbox-rewrite.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-rewrite.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- mbox-rewrite.c	8 Dec 2002 05:23:08 -0000	1.43
+++ mbox-rewrite.c	18 Dec 2002 15:15:41 -0000	1.44
@@ -199,7 +199,7 @@
 static const char *strip_chars(const char *value, size_t value_len,
 			       const char *list)
 {
-	/* leave only unknown flags, very likely none */
+	/* @UNSAFE: leave only unknown flags, very likely none */
 	char *ret, *p;
 	size_t i;
 




More information about the dovecot-cvs mailing list