}
static NTSTATUS reopen_from_procfd(struct files_struct *fsp,
- struct smb_filename *smb_fname,
int flags,
mode_t mode)
{
if (!fsp->fsp_flags.is_pathref) {
DBG_ERR("[%s] is not a pathref\n",
- smb_fname_str_dbg(smb_fname));
+ fsp_str_dbg(fsp));
#ifdef DEVELOPER
smb_panic("Not a pathref");
#endif
* below under the share mode lock.
*/
status = reopen_from_procfd(fsp,
- smb_fname,
local_flags & ~O_TRUNC,
unx_mode);
if (NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED))
flags |= O_DIRECTORY;
#endif
- status = reopen_from_procfd(fsp, smb_dname, flags, 0);
+ status = reopen_from_procfd(fsp, flags, 0);
if (NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) {
bool __unused_file_created = false;