diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-03-13 16:16:43 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2008-03-13 16:16:43 +0000 |
commit | 0b6dc0494efbf5769608b3a15718e115fb89d4e4 (patch) | |
tree | cfb12ebfe8ceea98615a706a0d385fe6d7d8404d /sbin | |
parent | 58ed0bbbeda3d1a22dd7b8e9ac11899b4aba5eb9 (diff) |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/nfsd/nfsd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/nfsd/nfsd.c b/sbin/nfsd/nfsd.c index 14286e1159b..ad323a385f3 100644 --- a/sbin/nfsd/nfsd.c +++ b/sbin/nfsd/nfsd.c @@ -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': |