diff options
author | bde <bde@FreeBSD.org> | 1996-05-01 03:13:45 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-05-01 03:13:45 +0000 |
commit | 95dda376acc12dd4d856457ceb22c16b1a5f22f7 (patch) | |
tree | bed64fe33e3fd6ab10cdffc65db55e64375ce117 /sbin | |
parent | 422674387f0088c25d666f95e5143474ce1b421a (diff) | |
download | FreeBSD-src-95dda376acc12dd4d856457ceb22c16b1a5f22f7.zip FreeBSD-src-95dda376acc12dd4d856457ceb22c16b1a5f22f7.tar.gz |
Default to udp if neither udp nor tcp is specified. The previous revision
was broken. It forced udp in all cases except the extremely unusual case
argc == 0.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/nfsd/nfsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/nfsd/nfsd.c b/sbin/nfsd/nfsd.c index 96249cf..6985445 100644 --- a/sbin/nfsd/nfsd.c +++ b/sbin/nfsd/nfsd.c @@ -229,7 +229,8 @@ main(argc, argv, envp) case '?': usage(); }; - if(argc) udpflag = 1; + if (!tcpflag && !udpflag) + udpflag = 1; argv += optind; argc -= optind; |