]> granicus.if.org Git - sudo/commit
When relocating preserved fds, start with the highest ones first
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 15 Jan 2014 03:20:26 +0000 (20:20 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 15 Jan 2014 03:20:26 +0000 (20:20 -0700)
commitca3190d92b4915a344b8153b8c4040b016644dab
tree3a66acbeca441bbacb4220a4575a96842a310b8d
parent8212a01f037bcd4ed62452c8df92ce94471c5ddb
When relocating preserved fds, start with the highest ones first
to avoid moving fds around more than we have to.  Now uses a bitmap
to keep track of which fds are being preserved.  Fixes a bug where
the debugging fd could be relocated to the same fd as the error
backchannel temporarily, resulting in debugging output being printed
to the backchannel if util@debug was enabled.

--HG--
branch : 1.8
src/preserve_fds.c