]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When doing lm_add(), check for duplicates.
authorkib <kib@FreeBSD.org>
Wed, 26 Sep 2018 21:27:08 +0000 (21:27 +0000)
committerkib <kib@FreeBSD.org>
Wed, 26 Sep 2018 21:27:08 +0000 (21:27 +0000)
commit9593a6d4aa5220db979a16291e04d3070d7fc1a0
tree22f2fbf8ecbd3bcf39a5c4fa92ba76508333c035
parentc62dd85a5cdeb4acaa91f58057f448aed9d54628
When doing lm_add(), check for duplicates.

This is useful when lm_find() moves the match to the global mapping,
since lm_find() could be called with a same path more than once.

Reported and tested by: Andreas Longwitz <longwitz@incore.de>
Sponsored by: The FreeBSD Foundation
Approved by: re (gjb)
MFC after: 1 week
libexec/rtld-elf/libmap.c