]> git.proxmox.com Git - mirror_frr.git/commit
lib/module.c and callers of frrmod_load(): fix error messages
authorG. Paul Ziemba <p-fbsd-bugs@ziemba.us>
Fri, 3 Sep 2021 16:49:05 +0000 (09:49 -0700)
committerG. Paul Ziemba <p-fbsd-bugs@ziemba.us>
Tue, 14 Sep 2021 16:51:49 +0000 (09:51 -0700)
commit52fad8f6563080c64b5609f8b357ed47b1dfb78c
tree71f29fe8be8f7f7d68982c8e15abfdfbd08e3a18
parent53b08a373db2aadff166bba08c40cdd72101768a
lib/module.c and callers of frrmod_load(): fix error messages

    frrmod_load() attempts to dlopen() several possible paths
    (constructed from its basename argument) until one succeeds.

    Each dlopen() attempt may fail for a different reason, and
    the important one might not be the last one. Example:

dlopen(a/foo): file not found
dlopen(b/foo): symbol "bar" missing
dlopen(c/foo): file not found

    Previous code reported only the most recent error. Now frrmod_load()
    describes each dlopen() failure.

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
ldpd/ldpd.c
lib/libfrr.c
lib/module.c
lib/module.h
tests/lib/test_grpc.cpp