diff options
| author | Mi Jinlong <mijinlong@cn.fujitsu.com> | 2011-08-03 12:52:48 -0400 |
|---|---|---|
| committer | Steve Dickson <steved@redhat.com> | 2011-08-03 13:41:12 -0400 |
| commit | ab5977afefc805a0be172662fe03207fad8769ad (patch) | |
| tree | 9d193a7f2ea42020fbd4ae9f19d052d80798af57 /support/include | |
| parent | bdaecae8ac3ff2c4f1b643c9226699f5a8295a45 (diff) | |
| download | nfs-utils-ab5977afefc805a0be172662fe03207fad8769ad.tar.gz nfs-utils-ab5977afefc805a0be172662fe03207fad8769ad.tar.xz nfs-utils-ab5977afefc805a0be172662fe03207fad8769ad.zip | |
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>
Diffstat (limited to 'support/include')
| -rw-r--r-- | support/include/rpcmisc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/support/include/rpcmisc.h b/support/include/rpcmisc.h index 0b06457..b806227 100644 --- a/support/include/rpcmisc.h +++ b/support/include/rpcmisc.h @@ -53,6 +53,7 @@ void rpc_init(char *name, int prog, int vers, void rpc_dispatch(struct svc_req *rq, SVCXPRT *xprt, struct rpc_dtable *dtable, int nvers, void *argp, void *resp); +int getservport(u_long number, const char *proto); extern int _rpcpmstart; extern int _rpcfdtype; |
