1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

smbd: Simplify smbd_do_qfsinfo with direct struct initialization

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2024-06-27 12:50:50 +02:00 committed by Ralph Boehme
parent d2932c22e0
commit b565901a47

View File

@ -2368,14 +2368,11 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)bsize, (unsigned
/* we need to fake up a fsp here,
* because its not send in this call
*/
files_struct tmpfsp;
SMB_NTQUOTA_STRUCT quotas;
ZERO_STRUCT(tmpfsp);
ZERO_STRUCT(quotas);
tmpfsp.conn = conn;
tmpfsp.fnum = FNUM_FIELD_INVALID;
files_struct tmpfsp = {
.conn = conn,
.fnum = FNUM_FIELD_INVALID,
};
SMB_NTQUOTA_STRUCT quotas = {};
/* access check */
if (get_current_uid(conn) != 0) {