From 43f9b2521d4cb9126df17f0ed553dc4362e5f2d9 Mon Sep 17 00:00:00 2001 From: Jacques Vidrine Date: Thu, 24 Apr 2003 19:57:31 +0000 Subject: [PATCH] Don't complain about missing NSS methods when built statically. It is annoying and not very useful. Sponsored by: DARPA, Network Associates Laboratories --- lib/libc/net/nsdispatch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libc/net/nsdispatch.c b/lib/libc/net/nsdispatch.c index 60a3eba3c07f..926107711cd0 100644 --- a/lib/libc/net/nsdispatch.c +++ b/lib/libc/net/nsdispatch.c @@ -549,7 +549,9 @@ nss_method_lookup(const char *source, const char *database, return (match->method); } } - nss_log(LOG_DEBUG, "%s, %s, %s, not found", source, database, method); + if (is_dynamic()) + nss_log(LOG_DEBUG, "%s, %s, %s, not found", source, database, + method); *mdata = NULL; return (NULL); }