evolution-exchange patch for bug #179545 (b.g.o bug #344196)

Jeffrey Stedfast <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches
Message-ID <[email protected]>

-- 
Jeffrey Stedfast
Evolution Hacker - Novell, Inc.
[email protected]  - www.novell.com

_______________________________________________
Evolution-patches mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/evolution-patches
bnc-179545.patch (text/x-patch, 706 B)
Index: camel/camel-stub-marshal.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/camel/camel-stub-marshal.c,v
retrieving revision 1.2.8.3
diff -u -r1.2.8.3 camel-stub-marshal.c
--- camel/camel-stub-marshal.c	15 Jun 2006 20:35:34 -0000	1.2.8.3
+++ camel/camel-stub-marshal.c	23 Jun 2006 14:25:45 -0000
@@ -90,9 +90,10 @@
 	ssize_t n;
 	
 	do {
-		if ((n = camel_read (marshal->fd, buf + nread, len - nread)) > 0)
-			nread += n;
-	} while (n && nread < len && errno != EINTR);
+		if ((n = camel_read (marshal->fd, buf + nread, len - nread)) <= 0)
+			break;
+		nread += n;
+	} while (nread < len);
 	
 	if (nread < len) {
 		close (marshal->fd);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.