1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3: smbd: Remove allow_broken_path from get_referred_path() and it's callers.

It no longer looks at this bool, we must already have a
canonicalized path here.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2022-08-10 21:40:47 -07:00
parent 9d65f1c221
commit 32f6eb2e98
4 changed files with 0 additions and 6 deletions

View File

@ -258,7 +258,6 @@ static NTSTATUS vfswrap_get_dfs_referrals(struct vfs_handle_struct *handle,
pathnamep,
handle->conn->sconn->remote_address,
handle->conn->sconn->local_address,
!handle->conn->sconn->using_smb2,
junction, &consumedcnt, &self_referral);
if (!NT_STATUS_IS_OK(status)) {
struct smb_filename connectpath_fname = {

View File

@ -90,7 +90,6 @@ WERROR _dfs_Add(struct pipes_struct *p, struct dfs_Add *r)
r->in.path,
remote_address,
local_address,
true, /*allow_broken_path */
jn, &consumedcnt, &self_ref);
if(!NT_STATUS_IS_OK(status)) {
return ntstatus_to_werror(status);
@ -172,7 +171,6 @@ WERROR _dfs_Remove(struct pipes_struct *p, struct dfs_Remove *r)
r->in.dfs_entry_path,
remote_address,
local_address,
true, /*allow_broken_path */
jn, &consumedcnt, &self_ref);
if(!NT_STATUS_IS_OK(status)) {
return WERR_NERR_DFSNOSUCHVOLUME;
@ -417,7 +415,6 @@ WERROR _dfs_GetInfo(struct pipes_struct *p, struct dfs_GetInfo *r)
r->in.dfs_entry_path,
remote_address,
local_address,
true, /*allow_broken_path */
jn, &consumedcnt, &self_ref);
if(!NT_STATUS_IS_OK(status) ||
consumedcnt < strlen(r->in.dfs_entry_path)) {

View File

@ -1212,7 +1212,6 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
const char *dfs_path,
const struct tsocket_address *remote_address,
const struct tsocket_address *local_address,
bool allow_broken_path,
struct junction_map *jucn,
size_t *consumedcntp,
bool *self_referralp)

View File

@ -524,7 +524,6 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
const char *dfs_path,
const struct tsocket_address *remote_address,
const struct tsocket_address *local_address,
bool allow_broken_path,
struct junction_map *jucn,
size_t *consumedcntp,
bool *self_referralp);