Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!triceratops.cis.ohio-state.edu!karl From: karl@triceratops.cis.ohio-state.edu (Karl Kleinpaste) Newsgroups: comp.bugs.4bsd Subject: Re: rshd depends on risky assumption Message-ID: Date: 23 Aug 89 16:11:44 GMT References: <10803@smoke.BRL.MIL> Sender: news@tut.cis.ohio-state.edu Organization: OSU Lines: 9 gwyn@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