]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When doing lm_add(), check for duplicates.
authorKonstantin Belousov <kib@FreeBSD.org>
Wed, 26 Sep 2018 21:27:08 +0000 (21:27 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Wed, 26 Sep 2018 21:27:08 +0000 (21:27 +0000)
commit6c30676522be1ee98e5331dcab10288ba8d37f09
tree22f2fbf8ecbd3bcf39a5c4fa92ba76508333c035
parentac4031d8056a1abd8f1cda7e9a6ddb50287eb83b
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