Subject: Re: /dev/std{in, out, err}
To: None <jim@reptiles.org>
From: Gordon W. Ross <gwr@mc.com>
List: port-sun3
Date: 11/30/1995 17:19:10
> From: jim@reptiles.org (Jim Mercer)
> Date: Thu, 30 Nov 1995 15:58:19 -0500 (EST)

> > Ummmm, there's nothing wrong with compress, and working around the
> > problem is a potential security issue that I don't want to think about.
> > IMO, the code in compress is correct to ensure that these files are not
> > irregular in any way.
> > 
> > BTW, I think putting /dev/std* in fdesc, when they work perfectly well
> > as simple device nodes, is a bit foolish.
> 
> my solution to hte problem was to put them back as device nodes and
> not mount fdesc.

Yeah, the devices nodes are better if you want things like compress
to be able to use that non-portable-hack of comparing with /dev/std*

Here is a fix for /dev/MAKEDEV to make /dev/std* when you run
MAKEDEV fd:

*** MAKEDEV.~1~	Wed Nov 22 07:29:52 1995
--- MAKEDEV	Thu Nov 30 17:09:18 1995
***************
*** 105,110 ****
--- 105,113 ----
  	;;
  
  fd)
+ 	mk stdin	c 23 0
+ 	mk stdout	c 23 1
+ 	mk stderr	c 23 2
  	mkdir fd >/dev/null 2>&1
  	i=0 ; while [ $i != 64 ]
  	do