DEBUG(MH_INFO_DEBUG, ("Entering with smb_fname->base_name '%s'\n",
smb_fname->base_name));
- copystatus = copy_smb_filename(ctx, smb_fname, clientFname);
- if (!NT_STATUS_IS_OK(copystatus))
- {
+ clientFname = cp_smb_filename(ctx, smb_fname);
+ if (clientFname == NULL) {
DEBUG(MH_ERR_DEBUG, ("alloc_get_client_smb_fname "
"NTERR\n"));
- errno = map_errno_from_nt_status(copystatus);
+ errno = ENOMEM;
status = -1;
goto err;
}
DEBUG(MH_INFO_DEBUG, ("Fake stat'ing '%s'\n", statPath));
if (statFn(statPath, &fakeStat,
- lp_fake_dir_create_times(SNUM(handle->conn))))
+ lp_fake_directory_create_times(SNUM(handle->conn))))
{
/* This can fail for legitimate reasons - i.e. the
* fakeStat directory doesn't exist, which is okay
out:
DEBUG(MH_INFO_DEBUG, ("Leaving with fsp->fsp_name->st.st_ex_mtime "
"%s",
- ctime(&(fsp->fsp_name->st.st_ex_mtime.tv_sec))));
+ fsp->fsp_name != NULL ?
+ ctime(&(fsp->fsp_name->st.st_ex_mtime.tv_sec)) :
+ "0"));
return status;
}