diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-04-07 20:49:28 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-04-19 16:54:53 -0400 |
commit | 78ea323be6380a9313e87fe241809e912e8ae401 (patch) | |
tree | 6ea9a772ab677012c52a08c6b32e366d7bf129d4 /fs/nfs | |
parent | 441092415770ddec648800701895913c4bfd60c1 (diff) |
NFSv4: Don't use cred->cr_ops->cr_name in nfs4_proc_setclientid()
With the recent change to generic creds, we can no longer use
cred->cr_ops->cr_name to distinguish between RPCSEC_GSS principals and
AUTH_SYS/AUTH_NULL identities. Replace it with the rpc_authops->au_name
instead...
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index a1069325b876..dbc09271af02 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -2885,7 +2885,7 @@ int nfs4_proc_setclientid(struct nfs_client *clp, u32 program, unsigned short po | |||
2885 | RPC_DISPLAY_ADDR), | 2885 | RPC_DISPLAY_ADDR), |
2886 | rpc_peeraddr2str(clp->cl_rpcclient, | 2886 | rpc_peeraddr2str(clp->cl_rpcclient, |
2887 | RPC_DISPLAY_PROTO), | 2887 | RPC_DISPLAY_PROTO), |
2888 | cred->cr_ops->cr_name, | 2888 | clp->cl_rpcclient->cl_auth->au_ops->au_name, |
2889 | clp->cl_id_uniquifier); | 2889 | clp->cl_id_uniquifier); |
2890 | setclientid.sc_netid_len = scnprintf(setclientid.sc_netid, | 2890 | setclientid.sc_netid_len = scnprintf(setclientid.sc_netid, |
2891 | sizeof(setclientid.sc_netid), | 2891 | sizeof(setclientid.sc_netid), |