diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2009-12-18 16:31:34 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-12-20 10:22:58 -0500 |
commit | f69ac2f5a36948e1adf071074414c5d1907b89b7 (patch) | |
tree | 71fd91c4f6d644f118efe0e04c16413c44d15e00 /fs/nfsd | |
parent | 7663dacd926584093dfc350892792054692b6cb3 (diff) |
nfsd: fix "insecure" export option
A typo in 12045a6ee9908b "nfsd: let "insecure" flag vary by
pseudoflavor" reversed the sense of the "insecure" flag.
Reported-by: Michael Guntsche <mike@it-loops.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfsfh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsfh.c b/fs/nfsd/nfsfh.c index 1c12177b908c..55c8e63af0be 100644 --- a/fs/nfsd/nfsfh.c +++ b/fs/nfsd/nfsfh.c | |||
@@ -89,7 +89,7 @@ static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp, | |||
89 | int flags = nfsexp_flags(rqstp, exp); | 89 | int flags = nfsexp_flags(rqstp, exp); |
90 | 90 | ||
91 | /* Check if the request originated from a secure port. */ | 91 | /* Check if the request originated from a secure port. */ |
92 | if (!rqstp->rq_secure && (flags & NFSEXP_INSECURE_PORT)) { | 92 | if (!rqstp->rq_secure && !(flags & NFSEXP_INSECURE_PORT)) { |
93 | RPC_IFDEBUG(char buf[RPC_MAX_ADDRBUFLEN]); | 93 | RPC_IFDEBUG(char buf[RPC_MAX_ADDRBUFLEN]); |
94 | dprintk(KERN_WARNING | 94 | dprintk(KERN_WARNING |
95 | "nfsd: request from insecure port %s!\n", | 95 | "nfsd: request from insecure port %s!\n", |