summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-09-29 19:31:06 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-09-29 19:31:06 +0000
commit0aa399de21a159e78ce44967fc47af06b89f4ac8 (patch)
tree7147daf008a0e58682d55b1cfa91e81cbcd49598
parentd3619e5a45c6599104268c6777ae0b70083ab332 (diff)
Don't ignore a line w/ a bogus hostname, just ignore the bogus hostname...
-rw-r--r--sbin/mountd/mountd.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c
index b60ad61341d..14789336d54 100644
--- a/sbin/mountd/mountd.c
+++ b/sbin/mountd/mountd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mountd.c,v 1.21 1997/09/13 12:24:49 deraadt Exp $ */
+/* $OpenBSD: mountd.c,v 1.22 1997/09/29 19:31:05 millert Exp $ */
/* $NetBSD: mountd.c,v 1.31 1996/02/18 11:57:53 fvdl Exp $ */
/*
@@ -857,14 +857,18 @@ get_exportlist()
}
if (netgrp) {
if (get_host(hst, grp, tgrp)) {
- syslog(LOG_ERR, "Bad netgroup %s", cp);
- getexp_err(ep, tgrp);
- endnetgrent();
- goto nextline;
+ syslog(LOG_ERR,
+ "Unknown host (%s) in netgroup %s",
+ hst, cp);
+ has_host = FALSE;
+ continue;
}
} else if (get_host(cp, grp, tgrp)) {
- getexp_err(ep, tgrp);
- goto nextline;
+ syslog(LOG_ERR,
+ "Unknown host (%s) in line %s",
+ cp, line);
+ has_host = FALSE;
+ continue;
}
has_host = TRUE;
} while (netgrp && getnetgrent((const char **)&hst,