提交 f69ac2f5 编写于 作者: J J. Bruce Fields

nfsd: fix "insecure" export option

A typo in 12045a6e "nfsd: let "insecure" flag vary by
pseudoflavor" reversed the sense of the "insecure" flag.
Reported-by: NMichael Guntsche <mike@it-loops.com>
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
上级 7663dacd
......@@ -89,7 +89,7 @@ static __be32 nfsd_setuser_and_check_port(struct svc_rqst *rqstp,
int flags = nfsexp_flags(rqstp, exp);
/* Check if the request originated from a secure port. */
if (!rqstp->rq_secure && (flags & NFSEXP_INSECURE_PORT)) {
if (!rqstp->rq_secure && !(flags & NFSEXP_INSECURE_PORT)) {
RPC_IFDEBUG(char buf[RPC_MAX_ADDRBUFLEN]);
dprintk(KERN_WARNING
"nfsd: request from insecure port %s!\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册