From a80482157632584ee03df58ed1eef3cefd95bbcb Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 5 Nov 2013 14:10:05 -0500 Subject: mountd: Use protocol bit fields to turn protocols off. Convert the current code to used the NFSCTL_XXX macros to turn off the TCP listener. Signed-off-by: Steve Dickson --- utils/mountd/mountd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index 993b6e6..f918472 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -755,7 +755,7 @@ main(int argc, char **argv) nfs_version &= ~NFSVERSBIT(vers); break; case 'n': - _rpcfdtype = SOCK_DGRAM; + NFSCTL_TCPUNSET(_rpcprotobits); break; case 'r': reverse_resolve = 1; -- cgit