mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +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:
@ -258,7 +258,6 @@ static NTSTATUS vfswrap_get_dfs_referrals(struct vfs_handle_struct *handle,
|
|||||||
pathnamep,
|
pathnamep,
|
||||||
handle->conn->sconn->remote_address,
|
handle->conn->sconn->remote_address,
|
||||||
handle->conn->sconn->local_address,
|
handle->conn->sconn->local_address,
|
||||||
!handle->conn->sconn->using_smb2,
|
|
||||||
junction, &consumedcnt, &self_referral);
|
junction, &consumedcnt, &self_referral);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
struct smb_filename connectpath_fname = {
|
struct smb_filename connectpath_fname = {
|
||||||
|
@ -90,7 +90,6 @@ WERROR _dfs_Add(struct pipes_struct *p, struct dfs_Add *r)
|
|||||||
r->in.path,
|
r->in.path,
|
||||||
remote_address,
|
remote_address,
|
||||||
local_address,
|
local_address,
|
||||||
true, /*allow_broken_path */
|
|
||||||
jn, &consumedcnt, &self_ref);
|
jn, &consumedcnt, &self_ref);
|
||||||
if(!NT_STATUS_IS_OK(status)) {
|
if(!NT_STATUS_IS_OK(status)) {
|
||||||
return ntstatus_to_werror(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,
|
r->in.dfs_entry_path,
|
||||||
remote_address,
|
remote_address,
|
||||||
local_address,
|
local_address,
|
||||||
true, /*allow_broken_path */
|
|
||||||
jn, &consumedcnt, &self_ref);
|
jn, &consumedcnt, &self_ref);
|
||||||
if(!NT_STATUS_IS_OK(status)) {
|
if(!NT_STATUS_IS_OK(status)) {
|
||||||
return WERR_NERR_DFSNOSUCHVOLUME;
|
return WERR_NERR_DFSNOSUCHVOLUME;
|
||||||
@ -417,7 +415,6 @@ WERROR _dfs_GetInfo(struct pipes_struct *p, struct dfs_GetInfo *r)
|
|||||||
r->in.dfs_entry_path,
|
r->in.dfs_entry_path,
|
||||||
remote_address,
|
remote_address,
|
||||||
local_address,
|
local_address,
|
||||||
true, /*allow_broken_path */
|
|
||||||
jn, &consumedcnt, &self_ref);
|
jn, &consumedcnt, &self_ref);
|
||||||
if(!NT_STATUS_IS_OK(status) ||
|
if(!NT_STATUS_IS_OK(status) ||
|
||||||
consumedcnt < strlen(r->in.dfs_entry_path)) {
|
consumedcnt < strlen(r->in.dfs_entry_path)) {
|
||||||
|
@ -1212,7 +1212,6 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
|
|||||||
const char *dfs_path,
|
const char *dfs_path,
|
||||||
const struct tsocket_address *remote_address,
|
const struct tsocket_address *remote_address,
|
||||||
const struct tsocket_address *local_address,
|
const struct tsocket_address *local_address,
|
||||||
bool allow_broken_path,
|
|
||||||
struct junction_map *jucn,
|
struct junction_map *jucn,
|
||||||
size_t *consumedcntp,
|
size_t *consumedcntp,
|
||||||
bool *self_referralp)
|
bool *self_referralp)
|
||||||
|
@ -524,7 +524,6 @@ NTSTATUS get_referred_path(TALLOC_CTX *ctx,
|
|||||||
const char *dfs_path,
|
const char *dfs_path,
|
||||||
const struct tsocket_address *remote_address,
|
const struct tsocket_address *remote_address,
|
||||||
const struct tsocket_address *local_address,
|
const struct tsocket_address *local_address,
|
||||||
bool allow_broken_path,
|
|
||||||
struct junction_map *jucn,
|
struct junction_map *jucn,
|
||||||
size_t *consumedcntp,
|
size_t *consumedcntp,
|
||||||
bool *self_referralp);
|
bool *self_referralp);
|
||||||
|
Reference in New Issue
Block a user