1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

make sure we start 4 servers on udp if called with

no arguments, like the man page promises.

ok deraadt@, blambert@

From tcuji@pwns.ms
This commit is contained in:
thib 2008-03-13 16:16:42 +00:00
parent d247ef039a
commit 95d3793a9f

View File

@ -1,4 +1,4 @@
/* $OpenBSD: nfsd.c,v 1.27 2007/05/27 21:14:41 thib Exp $ */
/* $OpenBSD: nfsd.c,v 1.28 2008/03/13 16:16:42 thib Exp $ */
/* $NetBSD: nfsd.c,v 1.19 1996/02/18 23:18:56 mycroft Exp $ */
/*
@ -43,7 +43,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
#else
static const char rcsid[] = "$OpenBSD: nfsd.c,v 1.27 2007/05/27 21:14:41 thib Exp $";
static const char rcsid[] = "$OpenBSD: nfsd.c,v 1.28 2008/03/13 16:16:42 thib Exp $";
#endif
#endif /* not lint */
@ -125,6 +125,8 @@ main(int argc, char *argv[])
const char *errstr = NULL;
socklen_t len;
if (argc == 1)
udpflag = 1;
while ((ch = getopt(argc, argv, "n:rtu")) != -1)
switch (ch) {
case 'n':