diff options
author | rgrimes <rgrimes@FreeBSD.org> | 1995-06-11 19:33:05 +0000 |
---|---|---|
committer | rgrimes <rgrimes@FreeBSD.org> | 1995-06-11 19:33:05 +0000 |
commit | 1b1ee5553889e207087539ddafa5dfd4e28bd585 (patch) | |
tree | ba998dfb4fcad03e00a5cbf58e2a0ad648bab6e6 /sbin/mountd | |
parent | b1a97daa1e06ab0de3071f979965878fd056292b (diff) | |
download | FreeBSD-src-1b1ee5553889e207087539ddafa5dfd4e28bd585.zip FreeBSD-src-1b1ee5553889e207087539ddafa5dfd4e28bd585.tar.gz |
Merge RELENG_2_0_5 into HEAD
Diffstat (limited to 'sbin/mountd')
-rw-r--r-- | sbin/mountd/mountd.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index 0446087..4434244 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -43,7 +43,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "From: @(#)mountd.c 8.8 (Berkeley) 2/20/94";*/ static const char rcsid[] = - "$Id: mountd.c,v 1.6 1995/05/21 19:31:09 phk Exp $"; + "$Id: mountd.c,v 1.7.2.1 1995/06/08 04:34:11 davidg Exp $"; #endif /*not lint*/ #include <sys/param.h> @@ -236,7 +236,7 @@ main(argc, argv) int argc; char **argv; { - SVCXPRT *transp; + SVCXPRT *udptransp, *tcptransp; int c; struct vfsconf *vfc; @@ -295,13 +295,16 @@ main(argc, argv) fclose(pidfile); } } - if ((transp = svcudp_create(RPC_ANYSOCK)) == NULL) { + if ((udptransp = svcudp_create(RPC_ANYSOCK)) == NULL || + (tcptransp = svctcp_create(RPC_ANYSOCK, 0, 0)) == NULL) { syslog(LOG_ERR, "Can't create socket"); exit(1); } pmap_unset(RPCPROG_MNT, RPCMNT_VER1); - if (!svc_register(transp, RPCPROG_MNT, RPCMNT_VER1, mntsrv, - IPPROTO_UDP)) { + if (!svc_register(udptransp, RPCPROG_MNT, RPCMNT_VER1, mntsrv, + IPPROTO_UDP) || + !svc_register(tcptransp, RPCPROG_MNT, RPCMNT_VER1, mntsrv, + IPPROTO_TCP)) { syslog(LOG_ERR, "Can't register mount"); exit(1); } |