From owner-cvs-sbin Sat Apr 13 12:52:36 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA23360 for cvs-sbin-outgoing; Sat, 13 Apr 1996 12:52:36 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA23338 Sat, 13 Apr 1996 12:52:11 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id VAA03794; Sat, 13 Apr 1996 21:52:02 +0200 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id VAA20280; Sat, 13 Apr 1996 21:52:02 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id VAA21609; Sat, 13 Apr 1996 21:04:50 +0200 (MET DST) From: J Wunsch Message-Id: <199604131904.VAA21609@uriah.heep.sax.de> Subject: Re: cvs commit: src/sbin/nfsd nfsd.c To: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org Date: Sat, 13 Apr 1996 21:04:48 +0200 (MET DST) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199604131814.EAA14571@godzilla.zeta.org.au> from "Bruce Evans" at Apr 14, 96 04:14:11 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Bruce Evans wrote: > Now UDP is always enabled unless nfsd is execed in an unusual way to > get argc == 0. Wouldn't this be more explanatory: Index: nfsd.c =================================================================== RCS file: /home/ncvs/src/sbin/nfsd/nfsd.c,v retrieving revision 1.8 diff -u -u -r1.8 nfsd.c --- nfsd.c 1996/04/13 06:08:24 1.8 +++ nfsd.c 1996/04/13 19:02:48 @@ -229,7 +229,8 @@ case '?': usage(); }; - if(argc) udpflag = 1; + if (!tcpflag && !udpflag) + udpflag = 1; /* Default to UDP instead of do nothing. */ argv += optind; argc -= optind; -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)