public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/vineet/arc-port-latest] sunrpc: Do not export getrpcport by default
@ 2020-07-09 16:35 Vineet Gupta
  0 siblings, 0 replies; only message in thread
From: Vineet Gupta @ 2020-07-09 16:35 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=afc3a2eb80617adaa8be75a7649c7ee2e1116a72

commit afc3a2eb80617adaa8be75a7649c7ee2e1116a72
Author: Florian Weimer <fweimer@redhat.com>
Date:   Mon Jul 6 19:19:24 2020 +0200

    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.

Diff:
---
 sunrpc/getrpcport.c | 5 +++++
 1 file changed, 5 insertions(+)

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-09 16:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09 16:35 [glibc/vineet/arc-port-latest] sunrpc: Do not export getrpcport by default Vineet Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).