2005-05-23 Ulrich Drepper <drepper@redhat.com>
commit7cfcf20b10c97faaf764f5c7784c4f2fa7922c5f
authorJakub Jelinek <jakub@redhat.com>
Mon, 23 May 2005 17:53:19 +0000 (23 17:53 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 23 May 2005 17:53:19 +0000 (23 17:53 +0000)
tree149a19f5f50b1433df714885fd986cdaefbee919
parente975f7ef2955c34c381d84b2494b47018c3461ab
2005-05-23  Ulrich Drepper  <drepper@redhat.com>

* sunrpc/pm_getport.c (__get_socket): New function.
(pmap_getport): Use it to open a non-reserved socket to the portmapper
for TCP.
* include/rpc/pmap_clnt.h (__get_socket): Declare.
* sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an
non-reserved socket for the portmapper.
Based on a patch by Steve Dickson <steved@redhat.com>.

* sunrpc/bindrsvprt.c (bindresvport): Try harder to find a port.
If we tried looking at the usual range without success extend the
range to even lower ports.
ChangeLog
include/rpc/pmap_clnt.h
sunrpc/bindrsvprt.c
sunrpc/pm_getmaps.c
sunrpc/pm_getport.c