diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-03-01 20:06:31 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-03-01 20:06:31 +0000 |
commit | d3570eed67eb963596402c7f1f11342fafdb9b9a (patch) | |
tree | 68e78eeb685944e81b4810a74e78b609eb5686a0 /sbin | |
parent | b06e5b070ed12b3acbe35f81bcb1229f3fc49aa4 (diff) |
If an /etc/exports entry has a single host that cannot be looked
up, throw out the entire line. A previous change that only throws
out unknown hosts could leave the export host list null (ie:
everyone) if all the listed hosts are unknown.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mountd/mountd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index ab1731a1f3c..c96fc628a00 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mountd.c,v 1.23 1997/12/19 09:21:40 deraadt Exp $ */ +/* $OpenBSD: mountd.c,v 1.24 1998/03/01 20:06:30 millert Exp $ */ /* $NetBSD: mountd.c,v 1.31 1996/02/18 11:57:53 fvdl Exp $ */ /* @@ -886,6 +886,10 @@ get_exportlist() nextfield(&cp, &endcp); len = endcp - cp; } + if (has_host == FALSE && tgrp->gr_type == GT_NULL) { + getexp_err(ep, tgrp); + goto nextline; + } if (check_options(dirhead)) { getexp_err(ep, tgrp); goto nextline; |