From: Jiří Škrábal Date: Wed, 20 Jul 2005 09:59:08 +0000 (+0000) Subject: - 'get to file end' condition added when reading file X-Git-Tag: merge_for_1_3_dst~6 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=0eaf45c898744c6c02956e8d2f7e70a7069b3b6f;p=jra1mw.git - 'get to file end' condition added when reading file --- diff --git a/org.glite.lb.common/src/lb_maildir.c b/org.glite.lb.common/src/lb_maildir.c index be4e180..6711663 100644 --- a/org.glite.lb.common/src/lb_maildir.c +++ b/org.glite.lb.common/src/lb_maildir.c @@ -241,6 +241,7 @@ int edg_wll_MaildirTransStart( snprintf(lbm_errdesc, MAX_ERR_LEN, "Can't read file '%s'", newfname); goto err; } + if ( ct == 0 ) break; bufuse += ct; } while ( ct == toread ); close(fhnd);