diff options
author | ache <ache@FreeBSD.org> | 1997-02-13 21:45:20 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-02-13 21:45:20 +0000 |
commit | 715ca3161a03ef1f37cb52eb76b108d01629384d (patch) | |
tree | 7ded3ef94c3df5f6006630aedadaa04da37fa1cc /usr.sbin/sendmail | |
parent | 63b65b5399354391d3394bf76e4c180dcdf3bb07 (diff) | |
download | FreeBSD-src-715ca3161a03ef1f37cb52eb76b108d01629384d.zip FreeBSD-src-715ca3161a03ef1f37cb52eb76b108d01629384d.tar.gz |
clearerr() clears both EOF and error flags, so do it only for
error and not for EOF or loop test becomes while(1)
Should go into 2.2
Submitted by: Gregory Neil Shapiro <gshapiro@WPI.EDU>
Diffstat (limited to 'usr.sbin/sendmail')
-rw-r--r-- | usr.sbin/sendmail/src/collect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/sendmail/src/collect.c b/usr.sbin/sendmail/src/collect.c index dec7a84..7c5916b 100644 --- a/usr.sbin/sendmail/src/collect.c +++ b/usr.sbin/sendmail/src/collect.c @@ -199,7 +199,8 @@ collect(fp, smtpmode, requeueflag, hdrp, e) c = getc(fp); if (errno != EINTR) break; - clearerr(fp); + if (c != EOF) + clearerr(fp); } CollectProgress = TRUE; if (TrafficLogFile != NULL && !headeronly) |