sunrpc: Do not export getrpcport by default

This function looks like an NSS function, but is actually a wrapper
around pmap_getport, so it should only be exported with
--enable-obsolete-rpc.
This commit is contained in:
Florian Weimer 2020-07-06 19:19:24 +02:00
parent ed6fc7daed
commit afc3a2eb80

View File

@ -66,3 +66,8 @@ getrpcport (const char *host, u_long prognum, u_long versnum, u_int proto)
return 0;
return pmap_getport (&addr, prognum, versnum, proto);
}
#ifdef SHARED
# ifndef EXPORT_RPC_SYMBOLS
compat_symbol (libc, getrpcport, getrpcport, GLIBC_2_0);
# endif
#endif