From: Petr Lampa

There is a small bug in the sfio-1999 which manifests itself when sendmail
is delivering to file (.forward -> /var/mail/user) and user quota
is exceeded. The problem is in sfio/src/lib/sfio/sfputr.c (puts), it doesn't
check for an error from _sfflsbuf() (in macro SFWPEEK()) - if an error occurs, 
it starts endless loop.

RCS file: src/lib/sfio/sfputr.c,v
--- sfputr.c	1999/11/26 20:03:06	1.1.1.1
+++ sfputr.c	2000/10/08 16:03:35
@@ -24,6 +24,7 @@
 	for(w = 0; (*s || rc >= 0); )
 	{	SFWPEEK(f,ps,p);
 
+		if(p == -1) return -1;
 		if(p == 0 || (f->flags&SF_WHOLE) )
 		{	n = strlen(s);
 			if(p >= (n + (rc < 0 ? 0 : 1)) )

-- 
Department of Computer Science and Engineering  E-mail: lampa@fee.vutbr.cz
Faculty of El. Engineering and Comp. Science    Phone: (+420 5) 4114-1225
Brno University of Technology                   Fax:  (+420 5) 4114-1270
Bozetechova 2, 612 66 Brno, Czech Republic      Web: http://www.fee.vutbr.cz/

