SUNRPC: don't map EKEYEXPIRED to EACCES in call_refreshresult
authorAndy Adamson <andros@netapp.com>
Wed, 14 Aug 2013 15:59:13 +0000 (11:59 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 3 Sep 2013 19:25:08 +0000 (15:25 -0400)
commitf1ff0c27fd9987c59d707cd1a6b6c1fc3ae0a250
tree5463eb4ba08b6737a13e47352531ecdff7351f17
parent280ebcf97ce4b252c72af74ff3149ab5a5c9e680
SUNRPC: don't map EKEYEXPIRED to EACCES in call_refreshresult

The NFS layer needs to know when a key has expired.
This change also returns -EKEYEXPIRED to the application, and the informative
"Key has expired" error message is displayed. The user then knows that
credential renewal is required.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c