]> granicus.if.org Git - sudo/commit
Don't memcpy() the preserved_fds TAILQ as the pointers into the
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 26 Jul 2014 12:06:18 +0000 (06:06 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 26 Jul 2014 12:06:18 +0000 (06:06 -0600)
commit6f77ffd7c76e1a3ff52c5f6f296cbe59a38d0758
treef2bea610d287930727d9f903222b99458277181b
parent32a837623e29175abc947d8d1a336f480f2b0732
Don't memcpy() the preserved_fds TAILQ as the pointers into the
head will be wrong.  All we need to do is save the old command
details and restore them after calling run_command().  Fixes a hang
with sudoedit when debugging is enabled.
src/sudo_edit.c