Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!ncar!boulder!ccncsu!longs.LANCE.ColoState.Edu!steved From: steved@longs.LANCE.ColoState.Edu (Steve Dempsey) Newsgroups: comp.mail.mh Subject: Re: inc loses mail when file system full Keywords: ferror() Message-ID: <1982@ccncsu.ColoState.EDU> Date: 1 Jun 89 17:58:03 GMT References: <2750@helios.ee.lbl.gov> <1959@ccncsu.ColoState.EDU> Sender: news@ccncsu.ColoState.EDU Organization: Colorado State University, Fort Collins, CO 80523 Lines: 18 > Humm... Steve Dempsey's fix to inc seems overly complex. My fix for > 6.5's inc (which should work with the 6.6 version) is to check the > status of ferror() and fclose(); appended is a context diff. > > Craig [diff deleted] I stand corrected. This is much simpler and works just as well. It seems to me, however, that any such errors should be detected on read or write long before closing the file. And why was this fix not included in 6.6? Steve Dempsey, Center for Computer Assisted Engineering Colorado State University, Fort Collins, CO 80523 +1 303 491 0630 INET: steved@longs.LANCE.ColoState.Edu, dempsey@handel.CS.ColoState.Edu