]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change libmap.c:lm_init() to return a status value; 0 for success
authorMatthew N. Dodd <mdodd@FreeBSD.org>
Sat, 13 Sep 2003 21:43:08 +0000 (21:43 +0000)
committerMatthew N. Dodd <mdodd@FreeBSD.org>
Sat, 13 Sep 2003 21:43:08 +0000 (21:43 +0000)
commit4402996dea6d9df64ac8c395f31b5d90d364207b
tree919ac9ae9921903ef959120200906c83c32193b7
parentbe2c4e5415af82b1d0e782dcfcb21e61c9452a91
Change libmap.c:lm_init() to return a status value; 0 for success
(libmap available) and 1 for failure.  Assign this return to the
global 'libmap_disable' variable in rtld.c.

This totally prevents any libmap functions from being called after
lm_init() if no config file is present.
libexec/rtld-elf/libmap.c
libexec/rtld-elf/libmap.h
libexec/rtld-elf/rtld.c