summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmbclient.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-11-21 23:00:59 +0000
committerJeremy Allison <jra@samba.org>2001-11-21 23:00:59 +0000
commitf146325e7df80b26616225017ef6a60ff5f2e349 (patch)
treedc45a5b3308ee837158cce77f79ff696d4e004fa /source3/libsmb/libsmbclient.c
parent646f8ca3e822290897e6298dd16ad3b4be78c07a (diff)
downloadsamba-f146325e7df80b26616225017ef6a60ff5f2e349.tar.gz
samba-f146325e7df80b26616225017ef6a60ff5f2e349.tar.bz2
samba-f146325e7df80b26616225017ef6a60ff5f2e349.zip
W2K doesn't seem to respond to *#0 names in node status. Ensure name
lookup uses password server parameter when looking for PDCs. Jeremy. (This used to be commit 54c968913d6553c6d834b068234ab176917075eb)
Diffstat (limited to 'source3/libsmb/libsmbclient.c')
-rw-r--r--source3/libsmb/libsmbclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index af2daac3fc..ce00548518 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -1602,7 +1602,7 @@ int smbc_opendir(const char *fname)
/* find the name of the server ... */
- if (!name_status_find(0, rem_ip, server)) {
+ if (!name_status_find("*", 0, 0, rem_ip, server)) {
DEBUG(0, ("Could not get the name of local master browser for server %s\n", server));
errno = EINVAL;
@@ -1671,7 +1671,7 @@ int smbc_opendir(const char *fname)
*/
- if (!name_status_find(0, rem_ip, buserver)) {
+ if (!name_status_find("*", 0, 0, rem_ip, buserver)) {
DEBUG(0, ("Could not get name of local master browser %s\n", server));
errno = EPERM; /* FIXME, is this correct */