Re: [PATCH v4 15/15] daemon: opt-out on features that require posix
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Oct 21, 2010, 20:39 UTC
- Message-ID
- <20101021203926.GB12685@burratino>
- In-Reply-To
- <AANLkTikJXaqDH6vJzPna7txssMO67SxmVy_Nvu2SW46W@mail.gmail.com>
Erik Faye-Lund wrote:
> I understand that it might be beneficial in the --detach code-path, > but how can stdint, stdout or stderr be closed in this code-path?
Maybe "git daemon >&- 2>&-"?
In some situations involving setuid programs, this kind of thing can be a security problem (since fd 1 is not taken, the first open() uses that fd, so output intended for stdout goes to that file).