aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mountd
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1996-08-29 14:20:57 +0000
committerBill Paul <wpaul@FreeBSD.org>1996-08-29 14:20:57 +0000
commit273804e22c7d425eb44e634bedffcd7fa95e88e4 (patch)
treee75168ec9d86b10436538f7cb2d49c0205ba7949 /usr.sbin/mountd
parent7a7e6baf3e0c4ce94ecc044ec8273fb4cf10fa76 (diff)
Notes
Diffstat (limited to 'usr.sbin/mountd')
-rw-r--r--usr.sbin/mountd/mountd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/mountd/mountd.c b/usr.sbin/mountd/mountd.c
index f1e2e1f4dbb15..cb331865879cb 100644
--- a/usr.sbin/mountd/mountd.c
+++ b/usr.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.9 1995/06/27 11:06:19 dfr Exp $";
+ "$Id: mountd.c,v 1.10 1995/11/17 23:22:34 joerg Exp $";
#endif /*not lint*/
#include <sys/param.h>
@@ -1404,7 +1404,8 @@ get_host(cp, grp, tgrp)
*/
checkgrp = tgrp;
while (checkgrp) {
- if (checkgrp->gr_ptr.gt_hostent != NULL &&
+ if (checkgrp->gr_type == GT_HOST &&
+ checkgrp->gr_ptr.gt_hostent != NULL &&
!strcmp(checkgrp->gr_ptr.gt_hostent->h_name, hp->h_name)) {
grp->gr_type = GT_IGNORE;
return(0);