From owner-cvs-sbin Sat Apr 13 11:15:33 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA11386 for cvs-sbin-outgoing; Sat, 13 Apr 1996 11:15:33 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA11375 Sat, 13 Apr 1996 11:15:25 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id EAA14571; Sun, 14 Apr 1996 04:14:11 +1000 Date: Sun, 14 Apr 1996 04:14:11 +1000 From: Bruce Evans Message-Id: <199604131814.EAA14571@godzilla.zeta.org.au> To: joerg_wunsch@uriah.heep.sax.de, scrappy@ki.net Subject: Re: cvs commit: src/sbin/nfsd nfsd.c Cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org, mark@grondar.za, scrappy@freefall.freebsd.org Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> Unless otherwise specified, four servers for UDP transport are started. I think this says that 4 servers for UDP transport are started _if UDP service is enabled_. Now UDP is always enabled unless nfsd is execed in an unusual way to get argc == 0. Bruce *** nfsd.c~ Sat Apr 13 20:31:54 1996 --- nfsd.c Sat Apr 13 20:37:20 1996 *************** *** 195,198 **** --- 195,200 ---- #define USAGE "[-rtu] [-n num_servers]" #endif + if (argc <= 1) + udpflag = 1; while ((ch = getopt(argc, argv, GETOPT)) != EOF) switch (ch) { *************** *** 230,234 **** usage(); }; - if(argc) udpflag = 1; argv += optind; argc -= optind; --- 232,235 ----