]> git.decadent.org.uk Git - nfs-utils.git/commit
rpc.mountd: let mountd consult /etc/services for port
authorMi Jinlong <mijinlong@cn.fujitsu.com>
Wed, 3 Aug 2011 16:52:48 +0000 (12:52 -0400)
committerLuk Claes <luk@debian.org>
Sun, 2 Oct 2011 14:16:46 +0000 (16:16 +0200)
commite1501725a9088533ce252e4cac789357db859d2e
treeea42c1e62307fc9d29838fdc1670626ca3a6fe66
parente438055d752ef4f34712afc30ef61b67f43d7c90
rpc.mountd: let mountd consult /etc/services for port

At RHEL, if user set port for mountd at /etc/services as
"mount   12345/tcp", mountd should be bind to 12345, but the
latest nfs-utils, mountd get a rand port, not 12345.

This patch make sure mountd be bind to the port which was set
at /etc/service.

Signed-off-by: Mi Jinlong <mijinlong@cn.fujitsu.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/include/rpcmisc.h
support/nfs/svc_create.c
support/nfs/svc_socket.c
utils/mountd/mountd.man
utils/statd/statd.man