Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!think!caip!ut-sally!ut-ngp!rsm From: rsm@ut-ngp.UUCP (Robert S. Maier) Newsgroups: net.unix-wizards Subject: Ferror bug on a Sun client? Message-ID: <3610@ut-ngp.UUCP> Date: Thu, 3-Jul-86 22:59:02 EDT Article-I.D.: ut-ngp.3610 Posted: Thu Jul 3 22:59:02 1986 Date-Received: Sat, 5-Jul-86 04:54:30 EDT Organization: Dept. of Math., Univ. of Texas at Austin. Lines: 41 We have had considerable trouble with /usr/ucb/mail (also known as Mail) on a diskless Sun 2/50 which is a client of a diskful server. Messages typed in are not sent, although the headers are. Moreover, after one types ^D (i.e., EOF) to end the message the system responds with "read: I/O error". This happens only on the client; never on the server. I think I have traced this to the following piece of code in Mail's send.c: /* * Prepend a header in front of the collected stuff * and return the new file. */ FILE * infix(hp, fi) struct header *hp; FILE *fi; { ...... c = getc(fi); while (c != EOF) { putc(c, nfo); c = getc(fi); } if (ferror(fi)) { perror("read"); return(fi); } Can anyone suggest why 'ferror' should return an error condition on the keyboard input stream if the program is run on the client, but never on the server? Has anyone ever encountered a similar problem? Robert Maier ARPA: rsm@carl.ma.utexas.edu / rsm@ngp.utexas.edu Dept. of Math. UUCP: ..{ihnp4, allegra, seismo!ut-sally}!ut-ngp!rsm Univ. of Texas AT&T: (512)471-7711