rshd depends on risky assumption
Doug Gwyn
gwyn at smoke.BRL.MIL
Fri Aug 25 03:29:23 AEST 1989
In article <KARL.89Aug23121144 at triceratops.cis.ohio-state.edu> karl at triceratops.cis.ohio-state.edu (Karl Kleinpaste) writes:
-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.
If it were, then the code would be horribly wrong!
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list