rshd depends on risky assumption

Karl Kleinpaste karl at triceratops.cis.ohio-state.edu
Thu Aug 24 02:11:44 AEST 1989


gwyn at smoke.brl.mil writes:
   The 4.3BSD rshd (normally in its child branch) unconditionally
   closes an FD named "f" in the source code without checking whether
   f = 0, 1, or 2.

It doesn't have to do so.  `f' is passed into doit() from main() as a
constant 0.

--Karl



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