From b211bc3747948baadf522565f77d78b2e716843d Mon Sep 17 00:00:00 2001 From: Antonio Huete Jimenez Date: Thu, 27 Nov 2014 21:26:37 +0100 Subject: [PATCH] mountd - Remove old pre-TIRPC code - Remove old pre-TIRPC code for getting transport handles. Taken from: FreeBSD SVN 98826 --- sbin/mountd/mountd.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index 097501b321..8540c7d06c 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -364,11 +364,6 @@ skip_v6: exit(1); } } - if ((udptransp = svcudp_create(RPC_ANYSOCK)) == NULL || - (tcptransp = svctcp_create(RPC_ANYSOCK, 0, 0)) == NULL) { - syslog(LOG_ERR, "can't create socket"); - exit(1); - } if (udpsock != -1 && udpconf != NULL) { bindresvport(udpsock, NULL); udptransp = svc_dg_create(udpsock, 0, 0); @@ -886,8 +881,8 @@ get_exportlist(void) /* * And delete exports that are in the kernel for all local - * file systems. - * XXX: Should know how to handle all local exportable file systems + * filesystems. + * XXX: Should know how to handle all local exportable filesystems * instead of just "ufs". */ num = getmntinfo(&fsp, MNT_NOWAIT); @@ -1720,7 +1715,7 @@ do_mount(struct exportlist *ep, struct grouplist *grp, int exflags, * Maybe I should just use the fsb->f_mntonname path instead * of looping back up the dirp to the mount point?? * Also, needs to know how to export all types of local - * exportable file systems and not just "ufs". + * exportable filesystems and not just "ufs". */ for (;;) { int r; -- 2.41.0