nfs4: Map NFS4ERR_WRONG_CRED to EPERM
authorWeston Andros Adamson <dros@netapp.com>
Tue, 13 Aug 2013 20:37:38 +0000 (16:37 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 5 Sep 2013 14:51:22 +0000 (10:51 -0400)
Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c

index e3cdfe346ebc1f73a6a38707cb2de0fc1f47a1b6..cb56102ad40e7a2ce272ec3ce3929f84e8c1ec38 100644 (file)
@@ -152,6 +152,7 @@ static int nfs4_map_errors(int err)
        case -NFS4ERR_RECALLCONFLICT:
                return -EREMOTEIO;
        case -NFS4ERR_WRONGSEC:
+       case -NFS4ERR_WRONG_CRED:
                return -EPERM;
        case -NFS4ERR_BADOWNER:
        case -NFS4ERR_BADNAME: