From a07343ee0da4f0974a23b673ae1b0d482c7426a1 Mon Sep 17 00:00:00 2001 From: Greg Banks Date: Thu, 22 Jun 2006 17:31:24 +1000 Subject: Detect presence of nfs4_set_debug() in libnfsidmap and don't bother calling it if it's missing. --- utils/idmapd/idmapd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/idmapd') diff --git a/utils/idmapd/idmapd.c b/utils/idmapd/idmapd.c index 158feaf..c8ce6b2 100644 --- a/utils/idmapd/idmapd.c +++ b/utils/idmapd/idmapd.c @@ -345,7 +345,9 @@ main(int argc, char **argv) errx(1, "Could not find group \"%s\"", nobodygroup); nobodygid = gr->gr_gid; +#ifdef HAVE_NFS4_SET_DEBUG nfs4_set_debug(verbose, idmapd_warnx); +#endif if (conf_path == NULL) conf_path = _PATH_IDMAPDCONF; if (nfs4_init_name_mapping(conf_path)) -- cgit