NTSTATUS status;
if (ucf_flags & UCF_DFS_PATHNAME) {
- status = resolve_dfspath_wcard(ctx,
+ status = dfs_redirect(ctx,
conn,
filename_in,
ucf_flags,
!conn->sconn->using_smb2,
&fname);
if (!NT_STATUS_IS_OK(status)) {
- DBG_DEBUG("resolve_dfspath "
+ DBG_DEBUG("dfs_redirect "
"failed for name %s with %s\n",
filename_in,
nt_errstr(status));
if (ucf_flags & UCF_DFS_PATHNAME) {
char *fname = NULL;
- status = resolve_dfspath_wcard(ctx, conn,
+ status = dfs_redirect(ctx, conn,
name_in,
ucf_flags,
!conn->sconn->using_smb2,
&fname);
if (!NT_STATUS_IS_OK(status)) {
- DEBUG(10,("filename_convert_internal: resolve_dfspath "
+ DEBUG(10,("filename_convert_internal: dfs_redirect "
"failed for name %s with %s\n",
name_in,
nt_errstr(status) ));
returned to the client.
*****************************************************************/
-static NTSTATUS dfs_redirect(TALLOC_CTX *ctx,
+NTSTATUS dfs_redirect(TALLOC_CTX *ctx,
connection_struct *conn,
const char *path_in,
uint32_t ucf_flags,
}
return jn;
}
-
-/******************************************************************************
- Core function to resolve a dfs pathname.
-******************************************************************************/
-
-NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx,
- connection_struct *conn,
- const char *name_in,
- uint32_t ucf_flags,
- bool allow_broken_path,
- char **pp_name_out)
-{
- NTSTATUS status = NT_STATUS_OK;
-
- status = dfs_redirect(ctx,
- conn,
- name_in,
- ucf_flags,
- allow_broken_path,
- pp_name_out);
- return status;
-}
struct junction_map *enum_msdfs_links(TALLOC_CTX *ctx,
struct auth_session_info *session_info,
size_t *p_num_jn);
-NTSTATUS resolve_dfspath_wcard(TALLOC_CTX *ctx,
- connection_struct *conn,
- const char *name_in,
- uint32_t ucf_flags,
- bool allow_broken_path,
- char **pp_name_out);
+NTSTATUS dfs_redirect(TALLOC_CTX *ctx,
+ connection_struct *conn,
+ const char *name_in,
+ uint32_t ucf_flags,
+ bool allow_broken_path,
+ char **pp_name_out);
struct connection_struct;
struct smb_filename;
struct conn_struct_tos {