mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3:smbd: allow info class SMB_QUERY_FS_ATTRIBUTE_INFO to return partial data
Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>
This commit is contained in:
parent
ec46f6b919
commit
270d29a743
@ -3267,6 +3267,12 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)st.st_ex_dev, (u
|
||||
STR_UNICODE);
|
||||
SIVAL(pdata,8,len);
|
||||
data_len = 12 + len;
|
||||
if (max_data_bytes >= 16 && data_len > max_data_bytes) {
|
||||
/* the client only requested a portion of the
|
||||
file system name */
|
||||
data_len = max_data_bytes;
|
||||
status = STATUS_BUFFER_OVERFLOW;
|
||||
}
|
||||
break;
|
||||
|
||||
case SMB_QUERY_FS_LABEL_INFO:
|
||||
|
Loading…
Reference in New Issue
Block a user