From: Noah Friedman Date: Thu, 15 Mar 2012 16:52:50 +0000 (-0400) Subject: rpc.idmap: Hide global symbols from libidmap plugins X-Git-Tag: nfs-utils-1-2-5-rc4~14 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3ce15aeaa66a2f523c6fa92bfe818734bdedfcea;p=nfs-utils.git rpc.idmap: Hide global symbols from libidmap plugins This patch limits the visibility of the symbols in the nfs-utils conffile.c so that they are only visible to programs linked directly to it. This forces the objects dynamically loaded via libnfsidmap to use the functions defined in that shared library instead. Signed-off-by: Steve Dickson --- diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c index 2f1e235..5015e94 100644 --- a/support/nfs/conffile.c +++ b/support/nfs/conffile.c @@ -49,6 +49,8 @@ #include "conffile.h" #include "xlog.h" +#pragma GCC visibility push(hidden) + static void conf_load_defaults(void); static int conf_set(int , char *, char *, char *, char *, int , int );