Date: Sat, 13 Apr 1996 21:04:48 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sbin@freefall.freebsd.org Subject: Re: cvs commit: src/sbin/nfsd nfsd.c Message-ID: <199604131904.VAA21609@uriah.heep.sax.de> In-Reply-To: <199604131814.EAA14571@godzilla.zeta.org.au> from "Bruce Evans" at Apr 14, 96 04:14:11 am
next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604131904.VAA21609>