Eventually this will allow us to remove fsp->deferred_close
from the fsp struct (and also source3/lib/tevent_wait.[ch]).
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
return NT_STATUS_ACCESS_DENIED;
}
+ if (src_fsp->closing) {
+ DBG_INFO("copy chunk src handle with closing in progress.\n");
+ return NT_STATUS_ACCESS_DENIED;
+ }
+
+ if (dst_fsp->closing) {
+ DBG_INFO("copy chunk dst handle with closing in progress.\n");
+ return NT_STATUS_ACCESS_DENIED;
+ }
+
if (src_fsp->is_directory) {
DBG_INFO("copy chunk no read on src directory handle (%s).\n",
smb_fname_str_dbg(src_fsp->fsp_name));
if (req->chain_fsp->deferred_close) {
return NULL;
}
+ if (req->chain_fsp->closing) {
+ return NULL;
+ }
return req->chain_fsp;
}
return NULL;
}
+ if (fsp->closing) {
+ return NULL;
+ }
+
req->chain_fsp = fsp;
return fsp;
}
return NULL;
}
+ if (fsp->closing) {
+ return NULL;
+ }
+
return fsp;
}
if (smb2req->compat_chain_fsp->deferred_close) {
return NULL;
}
+ if (smb2req->compat_chain_fsp->closing) {
+ return NULL;
+ }
return smb2req->compat_chain_fsp;
}