summaryrefslogtreecommitdiff
path: root/Documentation/RelNotes/1.7.8.6.txt
diff options
context:
space:
mode:
authorLibravatar Thomas Rast <trast@inf.ethz.ch>2013-07-16 11:27:37 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-07-17 12:52:16 -0700
commita11c39646c14600d588ca55fcfe3c244b66047c7 (patch)
tree5c5a678b24661d57c5ab1890096cb35129d6862a /Documentation/RelNotes/1.7.8.6.txt
parentdaemon/shell: refactor redirection of 0/1/2 from /dev/null (diff)
downloadtgif-a11c39646c14600d588ca55fcfe3c244b66047c7.tar.xz
git: ensure 0/1/2 are open in main()
Not having an open FD in the 0--2 range can lead to strange results, for example, a subsequent open() may return 2 (stderr) and then a die() would clobber this file. git-daemon and git-shell already guarded against this, but apparently users also manage to trip over it in other git commands. So we call sanitize_stdfds() during main git startup. Since these FDs are inherited, this covers all use of 'git foo ...', and all internal C commands when called directly. It does not fix shell/perl commands called directly. Signed-off-by: Thomas Rast <trast@inf.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.7.8.6.txt')
0 files changed, 0 insertions, 0 deletions