mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
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>
This commit is contained in:
parent
747c5534c9
commit
8c233cf9c2
1 changed files with 2 additions and 1 deletions
|
@ -3255,7 +3255,8 @@ static int decode_getacl(struct xdr_stream *xdr, struct rpc_rqst *req,
|
||||||
if (attrlen <= *acl_len)
|
if (attrlen <= *acl_len)
|
||||||
xdr_read_pages(xdr, attrlen);
|
xdr_read_pages(xdr, attrlen);
|
||||||
*acl_len = attrlen;
|
*acl_len = attrlen;
|
||||||
}
|
} else
|
||||||
|
status = -EOPNOTSUPP;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue