}
#if defined(HAVE_OFD_LOCKS)
- fsp->use_ofd_locks = true;
+ fsp->fsp_flags.use_ofd_locks = true;
if (lp_parm_bool(SNUM(conn),
"smbd",
"force process locks",
false)) {
- fsp->use_ofd_locks = false;
+ fsp->fsp_flags.use_ofd_locks = false;
}
#endif
fsp->fh->ref_count = 1;
* few NULL checks, so make sure it's initialized with something. to
* be safe until an audit can be done.
*/
- fsp->fsp_name = synthetic_smb_fname(fsp, "", NULL, NULL, 0);
+ fsp->fsp_name = synthetic_smb_fname(fsp,
+ "",
+ NULL,
+ NULL,
+ 0,
+ 0);
if (fsp->fsp_name == NULL) {
file_free(NULL, fsp);
return NT_STATUS_NO_MEMORY;
fsp->file_id = vfs_file_id_from_sbuf(conn, &fsp->fsp_name->st);
fsp->access_mask = FILE_LIST_DIRECTORY;
- fsp->is_directory = true;
+ fsp->fsp_flags.is_directory = true;
*_fsp = fsp;
return NT_STATUS_OK;
}
if (req->chain_fsp != NULL) {
- if (req->chain_fsp->closing) {
+ if (req->chain_fsp->fsp_flags.closing) {
return NULL;
}
return req->chain_fsp;
return NULL;
}
- if (fsp->closing) {
+ if (fsp->fsp_flags.closing) {
return NULL;
}
return NULL;
}
- if (fsp->closing) {
+ if (fsp->fsp_flags.closing) {
return NULL;
}
struct files_struct *fsp;
if (smb2req->compat_chain_fsp != NULL) {
- if (smb2req->compat_chain_fsp->closing) {
+ if (smb2req->compat_chain_fsp->fsp_flags.closing) {
return NULL;
}
return smb2req->compat_chain_fsp;
to->fsp_flags.can_write =
CAN_WRITE(from->conn) &&
((access_mask & (FILE_WRITE_DATA | FILE_APPEND_DATA)) != 0);
- to->modified = from->modified;
- to->is_directory = from->is_directory;
- to->aio_write_behind = from->aio_write_behind;
+ to->fsp_flags.modified = from->fsp_flags.modified;
+ to->fsp_flags.is_directory = from->fsp_flags.is_directory;
+ to->fsp_flags.aio_write_behind = from->fsp_flags.aio_write_behind;
return fsp_set_smb_fname(to, from->fsp_name);
}