diff options
author | J. Bruce Fields <bfields@fieldses.org> | 2005-10-13 16:54:27 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-10-19 02:19:41 -0400 |
commit | 8c233cf9c2ad6f49df753bdce84fddbf00bf6a75 (patch) | |
tree | c2d0e2d58e0fe1c2ab332802caa77046fcaac348 | |
parent | 747c5534c9a6da4aa87e7cdc2209ea98ea27f381 (diff) |
NFSv4: handle no acl attr
Stop handing garbage to userspace in the case where a weird server clears the
acl bit in the getattr return (despite the fact that they've already claimed
acl support.)
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | fs/nfs/nfs4xdr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index c5c75235c5b8..cd762648fa9a 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c | |||
@@ -3255,7 +3255,8 @@ static int decode_getacl(struct xdr_stream *xdr, struct rpc_rqst *req, | |||
3255 | if (attrlen <= *acl_len) | 3255 | if (attrlen <= *acl_len) |
3256 | xdr_read_pages(xdr, attrlen); | 3256 | xdr_read_pages(xdr, attrlen); |
3257 | *acl_len = attrlen; | 3257 | *acl_len = attrlen; |
3258 | } | 3258 | } else |
3259 | status = -EOPNOTSUPP; | ||
3259 | 3260 | ||
3260 | out: | 3261 | out: |
3261 | return status; | 3262 | return status; |