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:
parent
84504306f1
commit
16be7d7045
@ -1784,6 +1784,14 @@ static struct tevent_req *vfswrap_get_dos_attributes_send(
|
|||||||
.smb_fname = smb_fname,
|
.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,
|
subreq = SMB_VFS_GETXATTRAT_SEND(state,
|
||||||
ev,
|
ev,
|
||||||
dir_fsp,
|
dir_fsp,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user