Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.sbin/nfsd Pull up revision 1.31 (requested by soren):



details:   https://anonhg.NetBSD.org/src/rev/b2f9f1109405
branches:  netbsd-1-4
changeset: 469523:b2f9f1109405
user:      he <he%NetBSD.org@localhost>
date:      Wed Sep 29 07:15:26 1999 +0000

description:
Pull up revision 1.31 (requested by soren):
  Serve UDP requests by default if neither UDP nor TCP is specified,
  as already documented in the man page.  Fixes PR#7358.

diffstat:

 usr.sbin/nfsd/nfsd.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r e17ec4e0231e -r b2f9f1109405 usr.sbin/nfsd/nfsd.c
--- a/usr.sbin/nfsd/nfsd.c      Tue Sep 28 04:49:26 1999 +0000
+++ b/usr.sbin/nfsd/nfsd.c      Wed Sep 29 07:15:26 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfsd.c,v 1.28 1999/03/26 07:15:23 lukem Exp $  */
+/*     $NetBSD: nfsd.c,v 1.28.2.1 1999/09/29 07:15:26 he Exp $ */
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)nfsd.c     8.9 (Berkeley) 3/29/95";
 #else
-__RCSID("$NetBSD: nfsd.c,v 1.28 1999/03/26 07:15:23 lukem Exp $");
+__RCSID("$NetBSD: nfsd.c,v 1.28.2.1 1999/09/29 07:15:26 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -222,6 +222,12 @@
                }
        }
 
+       /*
+        * If none of TCP or UDP are specified, default to UDP only.
+        */
+       if (tcpflag == 0 && udpflag == 0)
+               udpflag = 1;
+
        if (debug == 0) {
                daemon(0, 0);
                (void)signal(SIGHUP, SIG_IGN);



Home | Main Index | Thread Index | Old Index