summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-03-25 19:59:07 +0000
committeralfred <alfred@FreeBSD.org>2001-03-25 19:59:07 +0000
commit2009fd4382a919bf28f461c803fbd51c50c9d097 (patch)
treecc7217e675cd3f532cf5fc08cc10afc046c00b70 /usr.sbin/mountd
parent57d69411fce6e28baee6f833c31098e8b9f6b550 (diff)
downloadFreeBSD-src-2009fd4382a919bf28f461c803fbd51c50c9d097.zip
FreeBSD-src-2009fd4382a919bf28f461c803fbd51c50c9d097.tar.gz
Replace pmap_unset() with rpcb_unset() which fixes the unregistering.
Submitted by: Martin Blapp <mb@imp.ch>
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index 9c5dc97..16d2ece 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.sbin/mountd/mountd.c
@@ -2506,7 +2506,7 @@ int sig;
{
close(mountdlockfd);
unlink(MOUNTDLOCK);
- pmap_unset(RPCPROG_MNT, 1);
- pmap_unset(RPCPROG_MNT, 3);
+ rpcb_unset(RPCPROG_MNT, RPCMNT_VER1, NULL);
+ rpcb_unset(RPCPROG_MNT, RPCMNT_VER3, NULL);
exit (0);
}
OpenPOWER on IntegriCloud