OP_GETATTR queries OWNER and OWNER_GROUP
This commit is contained in:
parent
741e8bf0bf
commit
79455f9855
5 changed files with 22 additions and 4 deletions
|
|
@ -1665,6 +1665,18 @@ static bool_t decode_file_attrs(
|
|||
if (!xdr_u_int32_t(xdr, &info->numlinks))
|
||||
return FALSE;
|
||||
}
|
||||
if (attrs->attrmask.arr[1] & FATTR4_WORD1_OWNER) {
|
||||
unsigned char *ptr = &info->owner[0];
|
||||
if (!xdr_bytes(xdr, &ptr, &info->owner_len,
|
||||
NFS4_OPAQUE_LIMIT))
|
||||
return FALSE;
|
||||
}
|
||||
if (attrs->attrmask.arr[1] & FATTR4_WORD1_OWNER_GROUP) {
|
||||
unsigned char *ptr = &info->owner_group[0];
|
||||
if (!xdr_bytes(xdr, &ptr, &info->owner_group_len,
|
||||
NFS4_OPAQUE_LIMIT))
|
||||
return FALSE;
|
||||
}
|
||||
if (attrs->attrmask.arr[1] & FATTR4_WORD1_SPACE_AVAIL) {
|
||||
if (!xdr_u_hyper(xdr, &info->space_avail))
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue