summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@fys.uio.no>2005-01-16 03:54:12 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-16 03:54:12 -0800
commitbd24a6bdaf51aa627d7e0cf39509c2af1aae122f (patch)
tree9e45b431605f1d2a1fafa7a1990ddaf2b995f9ae
parent5aebf3140ea641fbe2505e0ee01d5bef1e992aa7 (diff)
[PATCH] RPC: fix crrefresh() operations for AUTH_NULL and AUTH_SYS
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--net/sunrpc/auth_null.c3
-rw-r--r--net/sunrpc/auth_unix.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/net/sunrpc/auth_null.c b/net/sunrpc/auth_null.c
index 868ac2b22e1a..f112f63e3705 100644
--- a/net/sunrpc/auth_null.c
+++ b/net/sunrpc/auth_null.c
@@ -100,7 +100,8 @@ nul_marshal(struct rpc_task *task, u32 *p, int ruid)
static int
nul_refresh(struct rpc_task *task)
{
- return task->tk_status = -EACCES;
+ task->tk_msg.rpc_cred->cr_flags |= RPCAUTH_CRED_UPTODATE;
+ return 0;
}
static u32 *
diff --git a/net/sunrpc/auth_unix.c b/net/sunrpc/auth_unix.c
index edbe8f85a00f..f49ed17fe3fb 100644
--- a/net/sunrpc/auth_unix.c
+++ b/net/sunrpc/auth_unix.c
@@ -187,7 +187,7 @@ static int
unx_refresh(struct rpc_task *task)
{
task->tk_msg.rpc_cred->cr_flags |= RPCAUTH_CRED_UPTODATE;
- return task->tk_status = -EACCES;
+ return 0;
}
static u32 *