From df07daea1421c80ecf308a6daf3ab3fa7d4cfd65 Mon Sep 17 00:00:00 2001 From: hjl Date: Thu, 9 Nov 2000 22:16:34 +0000 Subject: 2000-11-09 H.J. Lu * 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". --- support/nfs/rpcmisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support/nfs/rpcmisc.c') 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, -- cgit