The Samba-Bugzilla – Attachment 2077 Details for
Bug 3985
msdfs broken with netbios aliases
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
look (text/plain), 1.33 KB, created by
Jeremy Allison
on 2006-08-02 10:58:35 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2006-08-02 10:58:35 UTC
Size:
1.33 KB
patch
obsolete
>Index: smbd/msdfs.c >=================================================================== >--- smbd/msdfs.c (revision 17375) >+++ smbd/msdfs.c (working copy) >@@ -505,13 +505,10 @@ > parse_dfs_path(pathname, &dp); > > /* Verify hostname in path */ >- if ( !strequal(get_local_machine_name(), dp.hostname) ) { >- /* Hostname mismatch, check if one of our IP addresses */ >- if (!ismyip(*interpret_addr2(dp.hostname))) { >- DEBUG(3, ("get_referred_path: Invalid hostname %s in path %s\n", >- dp.hostname, pathname)); >- return False; >- } >+ if (!is_myname_or_ipaddr(dp.hostname)) { >+ DEBUG(3, ("get_referred_path: Invalid hostname %s in path %s\n", >+ dp.hostname, pathname)); >+ return False; > } > > pstrcpy(jucn->service_name, dp.servicename); >@@ -878,13 +875,10 @@ > parse_dfs_path(pathname,&dp); > > /* check if path is dfs : validate first token */ >- if ( !strequal(get_local_machine_name(),dp.hostname) ) { >- /* Hostname mismatch, check if one of our IP addresses */ >- if (!ismyip(*interpret_addr2(dp.hostname))) { >- DEBUG(4,("create_junction: Invalid hostname %s in dfs path %s\n", >- dp.hostname, pathname)); >- return False; >- } >+ if (!is_myname_or_ipaddr(dp.hostname)) { >+ DEBUG(4,("create_junction: Invalid hostname %s in dfs path %s\n", >+ dp.hostname, pathname)); >+ return False; > } > > /* Check for a non-DFS share */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 3985
: 2077