Ensure a successfull conversion via early exit also logs a message.
While at it, use smb_fname_str_dbg() to print the string which ensure any stream
component or twrp value is also printed.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
* The name has been resolved.
*/
- DBG_DEBUG("Conversion finished [%s] -> [%s]\n",
- state->orig_path, state->smb_fname->base_name);
-
done:
/* Add back the stream if one was stripped off originally. */
if (state->stream != NULL) {
goto fail;
}
}
+
+ DBG_DEBUG("Conversion finished [%s] -> [%s]\n",
+ state->orig_path, smb_fname_str_dbg(state->smb_fname));
+
TALLOC_FREE(state->dirpath);
*smb_fname_out = state->smb_fname;
return NT_STATUS_OK;