diff options
author | msmith <msmith@FreeBSD.org> | 1997-04-23 11:03:10 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1997-04-23 11:03:10 +0000 |
commit | 2190adec411378f2e4ad1aa5e82989febfbfae3d (patch) | |
tree | ae126c78d45e995967a42431bf68073820b974de /sbin | |
parent | cfbf7a33747da2481c859397b19a68568ebeb3de (diff) | |
download | FreeBSD-src-2190adec411378f2e4ad1aa5e82989febfbfae3d.zip FreeBSD-src-2190adec411378f2e4ad1aa5e82989febfbfae3d.tar.gz |
Don't call getnetbyname() on a netmask. On a system with a slow net
connection, a large set of network exports could take many minutes to
time out, giving the appearance of a total hang during boot.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mountd/mountd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index 3a45237..10c43a1 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -43,7 +43,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95"; */ static const char rcsid[] = - "$Id: mountd.c,v 1.18 1997/04/09 20:17:15 guido Exp $"; + "$Id: mountd.c,v 1.19 1997/04/22 10:37:27 dfr Exp $"; #endif /*not lint*/ #include <sys/param.h> @@ -1707,7 +1707,7 @@ get_net(cp, net, maskflg) struct in_addr inetaddr, inetaddr2; char *name; - if (np = getnetbyname(cp)) + if (!maskflg && (np = getnetbyname(cp))) inetaddr = inet_makeaddr(np->n_net, 0); else if (isdigit(*cp)) { if ((netaddr = inet_network(cp)) == -1) |