aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-02-28 15:22:13 +0100
committerFlorian Weimer <fweimer@redhat.com>2017-02-28 15:36:16 +0100
commit37fb019cb02656d0ce0b8d40d56fe8c42f0d1658 (patch)
tree08df71d901ec8907c0b560c49d80e875cfcb8608 /sunrpc/Makefile
parentb31737bdf94a1d9eb4108d10c4d38241b6fe788b (diff)
downloadglibc-37fb019cb02656d0ce0b8d40d56fe8c42f0d1658.zip
glibc-37fb019cb02656d0ce0b8d40d56fe8c42f0d1658.tar.gz
glibc-37fb019cb02656d0ce0b8d40d56fe8c42f0d1658.tar.bz2
sunrpc: Do not unregister services if not registered [BZ #5010]
The change in commit 718946816cf60374f9d8f674d3ed649fdb33205a has no effect because of two bugs which cancel each other out: The svc_is_mapped condition is inverted, and svc_is_mapped always returns false because the check is performed after the service has already been unregistered. As a result, pmap_unset is called unconditionally, as before.
Diffstat (limited to 'sunrpc/Makefile')
-rw-r--r--sunrpc/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/sunrpc/Makefile b/sunrpc/Makefile
index daf8a28..0249e10 100644
--- a/sunrpc/Makefile
+++ b/sunrpc/Makefile
@@ -98,6 +98,7 @@ xtests := tst-getmyaddr
ifeq ($(have-thread-library),yes)
xtests += thrsvc
+tests += tst-svc_register
endif
ifeq ($(run-built-tests),yes)
@@ -156,6 +157,8 @@ $(objpfx)tst-getmyaddr: $(common-objpfx)linkobj/libc.so
$(objpfx)tst-xdrmem: $(common-objpfx)linkobj/libc.so
$(objpfx)tst-xdrmem2: $(common-objpfx)linkobj/libc.so
$(objpfx)tst-udp-error: $(common-objpfx)linkobj/libc.so
+$(objpfx)tst-svc_register: \
+ $(common-objpfx)linkobj/libc.so $(shared-thread-library)
$(objpfx)rpcgen: $(addprefix $(objpfx),$(rpcgen-objs))