A few small bugs in 4.2bsd learn...

dan at rna.UUCP dan at rna.UUCP
Sun Feb 19 09:46:34 AEST 1984


Subject: Few bugs with learn
Index:	/usr/src/usr.bin/learn/copy.c 4.2BSD

Description:
	1) Typing EOT to learn causes learn to loop on error from stdin.
	2) learn scripts files, eqn, vi cannot startup at all.
Repeat-By:
	(above)
Fix:
	1) In the file, copy.c, add clearerr(stdin)...

*** copy.c.org	Tue Apr 26 03:04:22 1983
--- copy.c	Sat Feb 18 18:11:11 1984
***************
*** 34,35
  			if (fin == stdin) {
  				fprintf(stderr, "Type \"bye\" if you want to leave learn.\n");

--- 34,36 -----
  			if (fin == stdin) {
+ 				clearerr(stdin);
  				fprintf(stderr, "Type \"bye\" if you want to leave learn.\n");


	2) chmod 755 /usr/lib/learn/files/Init /usr/lib/learn/eqn/Init \
			/usr/lib/learn/vi/Init

					Cheers,
					Dan Ts'o
					...cmcl2!rna!dan



More information about the Comp.unix.wizards mailing list