summaryrefslogtreecommitdiffstats
path: root/support/nfs/rpcmisc.c
diff options
context:
space:
mode:
authorhjl <hjl>2000-11-09 22:16:34 +0000
committerhjl <hjl>2000-11-09 22:16:34 +0000
commitdf07daea1421c80ecf308a6daf3ab3fa7d4cfd65 (patch)
tree73fdbe507a42412c684c7c2f864e501039abde5f /support/nfs/rpcmisc.c
parentd193f2779b79780c54636d1bc1d655ba0d3c80d7 (diff)
downloadnfs-utils-df07daea1421c80ecf308a6daf3ab3fa7d4cfd65.tar.gz
nfs-utils-df07daea1421c80ecf308a6daf3ab3fa7d4cfd65.tar.xz
nfs-utils-df07daea1421c80ecf308a6daf3ab3fa7d4cfd65.zip
2000-11-09 H.J. Lu <hjl@lucon.org>
* etc/redhat/nfs.init (start): Pass --no-tcp to mountd if TCP is not supported by kernel. * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0. * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp". (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp". * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
Diffstat (limited to 'support/nfs/rpcmisc.c')
-rw-r--r--support/nfs/rpcmisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/nfs/rpcmisc.c b/support/nfs/rpcmisc.c
index 457d642..4bb4ec8 100644
--- a/support/nfs/rpcmisc.c
+++ b/support/nfs/rpcmisc.c
@@ -50,9 +50,9 @@ rpc_init(char *name, int prog, int vers, void (*dispatch)(), int defport,
asize = sizeof(saddr);
sock = 0;
- _rpcfdtype = 0;
if (getsockname(0, (struct sockaddr *) &saddr, &asize) == 0) {
int ssize = sizeof (int);
+ _rpcfdtype = 0;
if (saddr.sin_family != AF_INET)
xlog(L_FATAL, "init: stdin is bound to non-inet addr");
if (getsockopt(0, SOL_SOCKET, SO_TYPE,