summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nfsd
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-05-01 03:13:45 +0000
committerbde <bde@FreeBSD.org>1996-05-01 03:13:45 +0000
commit95dda376acc12dd4d856457ceb22c16b1a5f22f7 (patch)
treebed64fe33e3fd6ab10cdffc65db55e64375ce117 /usr.sbin/nfsd
parent422674387f0088c25d666f95e5143474ce1b421a (diff)
downloadFreeBSD-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 'usr.sbin/nfsd')
-rw-r--r--usr.sbin/nfsd/nfsd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/nfsd/nfsd.c b/usr.sbin/nfsd/nfsd.c
index 96249cf..6985445 100644
--- a/usr.sbin/nfsd/nfsd.c
+++ b/usr.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;
OpenPOWER on IntegriCloud