return NT_STATUS_ACCESS_DENIED;
}
- status = smbd_check_access_rights(conn, smb_fname, false,
- FILE_WRITE_ATTRIBUTES);
+ status = smbd_check_access_rights(conn,
+ conn->cwd_fsp,
+ smb_fname,
+ false,
+ FILE_WRITE_ATTRIBUTES);
if (NT_STATUS_IS_OK(status)) {
set_dosmode_ok = true;
}
path,
NULL,
&state->smb_fname->st,
+ state->smb_fname->twrp,
0);
if (tevent_req_nomem(smb_path, req)) {
return;
psmb_fname->base_name,
NULL,
&psmb_fname->st,
+ psmb_fname->twrp,
psmb_fname->flags);
if (smb_fname == NULL) {