check_path_syntax_smb2() is now a simple wrapper around check_path_syntax().
Leave it alone for now to keep things separate when we add SMB3+POSIX parsing.
check_path_syntax_smb2_msdfs() is now no longer used.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
NTSTATUS check_path_syntax(char *path);
NTSTATUS check_path_syntax_posix(char *path);
-NTSTATUS check_path_syntax_smb2(char *path, bool dfs_path);
+NTSTATUS check_path_syntax_smb2(char *path);
NTSTATUS smb2_strip_dfs_path(const char *in_path, const char **out_path);
size_t srvstr_get_path(TALLOC_CTX *ctx,
const char *inbuf,
}
/* This also converts '\' to '/' */
- status = check_path_syntax_smb2(filename, is_dfs);
+ status = check_path_syntax_smb2(filename);
if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(filename);
return status;
}
/* convert '\\' into '/' */
- status = check_path_syntax_smb2(state->fname, is_dfs);
+ status = check_path_syntax_smb2(state->fname);
if (tevent_req_nterror(req, status)) {
return tevent_req_post(req, state->ev);
}
return check_path_syntax_internal(path, true);
}
+#if 0
/****************************************************************************
Check the path for an SMB2 DFS path.
SMB2 DFS paths look like hostname\share (followed by a possible \extrapath.
*remaining_path++ = '/';
return check_path_syntax(remaining_path);
}
+#endif
-NTSTATUS check_path_syntax_smb2(char *path, bool dfs_path)
+NTSTATUS check_path_syntax_smb2(char *path)
{
- if (dfs_path) {
- return check_path_syntax_smb2_msdfs(path);
- } else {
- return check_path_syntax(path);
- }
+ /*
+ * Now a simple wrapper around check_path_syntax().
+ * Leave it alone for now to keep things separate
+ * when we add SMB3+POSIX parsing.
+ */
+ return check_path_syntax(path);
}
/****************************************************************************
req->flags2 &= ~FLAGS2_DFS_PATHNAMES;
ucf_flags &= ~UCF_DFS_PATHNAME;
- status = check_path_syntax_smb2(newname, false);
+ status = check_path_syntax_smb2(newname);
if (!NT_STATUS_IS_OK(status)) {
return status;
}
req->flags2 &= ~FLAGS2_DFS_PATHNAMES;
ucf_flags &= ~UCF_DFS_PATHNAME;
- status = check_path_syntax_smb2(newname, false);
+ status = check_path_syntax_smb2(newname);
if (!NT_STATUS_IS_OK(status)) {
return status;
}