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:
parent
d2932c22e0
commit
b565901a47
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user