summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-07-06 19:19:24 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-07-07 20:19:57 +0200
commitafc3a2eb80617adaa8be75a7649c7ee2e1116a72 (patch)
tree84d576530b5b78111008c87a66fdd5c0cdef4849 /sunrpc
parented6fc7daed8858ae971e3d9c165ec45816759dbd (diff)
downloadglibc-afc3a2eb80617adaa8be75a7649c7ee2e1116a72.tar.gz
glibc-afc3a2eb80617adaa8be75a7649c7ee2e1116a72.tar.xz
glibc-afc3a2eb80617adaa8be75a7649c7ee2e1116a72.zip
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.
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/getrpcport.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sunrpc/getrpcport.c b/sunrpc/getrpcport.c
index 7d4b23865f..5dd635735c 100644
--- a/sunrpc/getrpcport.c
+++ b/sunrpc/getrpcport.c
@@ -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