mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
smbd: do not cover up VFS failures to get quota
Now that the VFS follows the convention that get-quota returns error only on error condition, and success with zero quota if there is no quota assigned, reply with an error if failing to obtain a user's quota. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0124d3e6a5
commit
0e01ed06a4
@ -2512,12 +2512,7 @@ static void call_nt_transact_get_user_quota(connection_struct *conn,
|
||||
nt_status = vfs_get_ntquota(fsp, SMB_USER_QUOTA_TYPE,
|
||||
&sid, &qt);
|
||||
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||
ZERO_STRUCT(qt);
|
||||
/*
|
||||
* we have to return zero's in all fields
|
||||
* instead of returning an error here
|
||||
* --metze
|
||||
*/
|
||||
reply_nterror(req, nt_status);
|
||||
}
|
||||
|
||||
/* Realloc the size of parameters and data we will return */
|
||||
|
Loading…
Reference in New Issue
Block a user