]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
sunrpc: Do not export getrpcport by default
authorFlorian Weimer <fweimer@redhat.com>
Mon, 6 Jul 2020 17:19:24 +0000 (19:19 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 7 Jul 2020 18:19:57 +0000 (20:19 +0200)
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.

sunrpc/getrpcport.c

index 7d4b23865f039c5ae5a01f3ac6597209d63d0835..5dd635735c83b72ee7effb5581c6af1599a62e3f 100644 (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