Subject: Re: Warning message: Why do I care?
To: Roland Dowdeswell <elric@imrryr.org>
From: Steven M. Bellovin <smb@research.att.com>
List: current-users
Date: 08/01/2002 14:18:20
In message <20020801181537.BF1BB1798A@arioch.imrryr.org>, Roland Dowdeswell wri
tes:
>
>On 1028224954 seconds since the Beginning of the UNIX epoch
>"Steven M. Bellovin" wrote:
>>
>>In message <20020801135402.K2158@styx.org>, ww@styx.org writes:
>
>>> close(1);
>>> fd = open("somefile", O_WRONLY);
>>>
>>>-w
>>>
>>You could use dup2(). But I suspect there's a lot of code around that
>>does it your way.
>
>The problem is that the relevant standards dictate that method does
>work in that way, and so programs that rely on that behaviour are
>not doing anything wrong.
Yes, I agree.
--Steve Bellovin, http://www.research.att.com/~smb (me)
http://www.wilyhacker.com ("Firewalls" book)