]> granicus.if.org Git - sudo/commit
When emulating DSO_NEXT with shl_get() we need to skip the program's
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 11 Feb 2014 14:43:13 +0000 (07:43 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 11 Feb 2014 14:43:13 +0000 (07:43 -0700)
commit02d86aafe8164b38956e3bacad1d3a3364bd4e66
treeba4aea05dfb05d0ddff73af4c188c0e901e16a82
parent151f001d81c723204ff443ce2d1745673405ac47
When emulating DSO_NEXT with shl_get() we need to skip the program's
handle.  This used to be documented as being index -2 but now it
seems to be index 0.  As this is not guaranteed we need to look up
the real handle value for PROG_HANDLE and skip it when interating
through all the DSOs.  Fixes infinite recursion on HP-UX in the
getenv() replacement.
common/sudo_dso.c