X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fcache.c;h=3853bb68cb661b4d4b779935f9ddaecd75639a37;hp=c264e142803dedbbcfa67aaf42a05e72b60acdc3;hb=ffe1b3f8483c96e85409e5ea5ed69ab98128a3a1;hpb=768ab6039b53d767158c50bcc5fceb2ec2516a8a diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index c264e14..3853bb6 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -826,6 +826,7 @@ lookup_export(char *dom, char *path, struct addrinfo *ai) #ifdef HAVE_NFS_PLUGIN_H #include +#include #include /* @@ -1090,6 +1091,7 @@ static struct exportent *lookup_junction(char *dom, const char *pathname, struct addrinfo *ai) { struct exportent *exp; + struct link_map *map; void *handle; handle = dlopen("libnfsjunct.so", RTLD_NOW); @@ -1097,6 +1099,11 @@ static struct exportent *lookup_junction(char *dom, const char *pathname, xlog(D_GENERAL, "%s: dlopen: %s", __func__, dlerror()); return NULL; } + + if (dlinfo(handle, RTLD_DI_LINKMAP, &map) == 0) + xlog(D_GENERAL, "%s: loaded plug-in %s", + __func__, map->l_name); + (void)dlerror(); /* Clear any error */ exp = invoke_junction_ops(handle, dom, pathname, ai);