1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

smbd: check "store dos attributes" settings in the async dosmode code

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14957

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit ecf56c1d9b6b898ed4060e3bba341392ddcc9b5a)
This commit is contained in:
Ralph Boehme 2022-01-24 16:45:11 +01:00 committed by Jule Anger
parent 84504306f1
commit 16be7d7045

View File

@ -1784,6 +1784,14 @@ static struct tevent_req *vfswrap_get_dos_attributes_send(
.smb_fname = smb_fname,
};
if (!lp_store_dos_attributes(SNUM(dir_fsp->conn))) {
DBG_ERR("%s: \"smbd async dosmode\" enabled, but "
"\"store dos attributes\" is disabled\n",
dir_fsp->conn->connectpath);
tevent_req_nterror(req, NT_STATUS_NOT_IMPLEMENTED);
return tevent_req_post(req, ev);
}
subreq = SMB_VFS_GETXATTRAT_SEND(state,
ev,
dir_fsp,