mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
s3: Remove the smbd_server_conn ref from create_junction
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Sep 26 16:33:30 CEST 2011 on sn-devel-104
This commit is contained in:
parent
d2958fd064
commit
b35d80aa38
@ -362,7 +362,8 @@ WERROR _dfs_GetInfo(struct pipes_struct *p, struct dfs_GetInfo *r)
|
||||
return WERR_NOMEM;
|
||||
}
|
||||
|
||||
if(!create_junction(ctx, r->in.dfs_entry_path, jn)) {
|
||||
if(!create_junction(ctx, r->in.dfs_entry_path,
|
||||
!smbd_server_conn->using_smb2, jn)) {
|
||||
return WERR_DFS_NO_SUCH_SERVER;
|
||||
}
|
||||
|
||||
|
@ -1350,6 +1350,7 @@ int setup_dfs_referral(connection_struct *orig_conn,
|
||||
|
||||
bool create_junction(TALLOC_CTX *ctx,
|
||||
const char *dfs_path,
|
||||
bool allow_broken_path,
|
||||
struct junction_map *jucn)
|
||||
{
|
||||
int snum;
|
||||
@ -1360,8 +1361,8 @@ bool create_junction(TALLOC_CTX *ctx,
|
||||
if (!pdp) {
|
||||
return False;
|
||||
}
|
||||
status = parse_dfs_path(NULL, dfs_path, False,
|
||||
!smbd_server_conn->using_smb2, pdp, &dummy);
|
||||
status = parse_dfs_path(NULL, dfs_path, False, allow_broken_path,
|
||||
pdp, &dummy);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
return False;
|
||||
}
|
||||
|
@ -458,6 +458,7 @@ int setup_dfs_referral(connection_struct *orig_conn,
|
||||
char **ppdata, NTSTATUS *pstatus);
|
||||
bool create_junction(TALLOC_CTX *ctx,
|
||||
const char *dfs_path,
|
||||
bool allow_broken_path,
|
||||
struct junction_map *jucn);
|
||||
bool create_msdfs_link(const struct junction_map *jucn);
|
||||
bool remove_msdfs_link(const struct junction_map *jucn);
|
||||
|
Loading…
x
Reference in New Issue
Block a user