return NT_STATUS_NO_MEMORY;
}
- status = smbd_calculate_access_mask(conn,
- conn->cwd_fsp,
- smb_fname,
+ status = smbd_calculate_access_mask_fsp(fsp,
false,
access_mask,
&access_mask);
if (!NT_STATUS_IS_OK(status)) {
- DEBUG(10, ("open_fake_file: smbd_calculate_access_mask "
+ DBG_DEBUG("smbd_calculate_access_mask_fsp "
"on service[%s] file[%s] returned %s\n",
lp_servicename(talloc_tos(), lp_sub, SNUM(conn)),
smb_fname_str_dbg(smb_fname),
- nt_errstr(status)));
+ nt_errstr(status));
file_free(req, fsp);
return status;
}