more bugs (4.2bsd)

Michael A. Thompson thompson at dalcs.UUCP
Tue Jan 10 09:10:55 AEST 1984


<*>									<*>
	I have discovered a bug in more (sorry about the pun, could't help
myself) as distributed in 4.2BSD. As distributed if more is in a pipe line and
the user does a shell escape the escaped command takes it's input from the file
being piped to more. The fix is as follows:
11a12,13
> **	modified by Michael A. Thompson, Dal. U. fix so shell escape uses ter-
> **		 minal for stdin.
1247a1250,1251
> 	    if (!isatty(0))
> 		freopen(ttyname(1), "r", stdin);
--
Signed:			  Michael A. Thompson
	     		(I'll be punished for this)
Net address:	  ...{utcsrgv,dartvax}!dalcs!thompson
Where in the world:	 Dalhousie University
			 Halifax, Nova Scotia



More information about the Comp.bugs.4bsd.ucb-fixes mailing list