Skip to content

Commit

Permalink
NFS4: nfs4_opendata_access should return errno
Browse files Browse the repository at this point in the history
Return errno - not an NFS4ERR_. This worked because NFS4ERR_ACCESS == EACCES.

Signed-off-by: Weston Andros Adamson <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
westonandrosadamson authored and Trond Myklebust committed Nov 2, 2012
1 parent f9b1ef5 commit 998f40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1749,7 +1749,7 @@ static int nfs4_opendata_access(struct rpc_cred *cred,

/* even though OPEN succeeded, access is denied. Close the file */
nfs4_close_state(state, fmode);
return -NFS4ERR_ACCESS;
return -EACCES;
}

/*
Expand Down

0 comments on commit 998f40b

Please sign in to comment.