diff options
author | Luke Leighton <lkcl@samba.org> | 1998-09-25 21:01:52 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-09-25 21:01:52 +0000 |
commit | aa38f39d67fade4dfd7badb7a9b39c833a1dd1ca (patch) | |
tree | 03d0c3703be8859d0d4c81af56e7473487eb9bed /source/nmbd | |
parent | 78b5c15121caa18f401cd7aa45d831ef93a5f7c2 (diff) | |
download | samba-aa38f39d67fade4dfd7badb7a9b39c833a1dd1ca.tar.gz |
added rpcclient program
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd_synclists.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/nmbd/nmbd_synclists.c b/source/nmbd/nmbd_synclists.c index dee64d501b2..b6f54dccec0 100644 --- a/source/nmbd/nmbd_synclists.c +++ b/source/nmbd/nmbd_synclists.c @@ -32,6 +32,7 @@ #include "smb.h" extern int DEBUGLEVEL; +extern pstring scope; struct sync_record { struct sync_record *next, *prev; @@ -69,13 +70,18 @@ static void sync_child(char *name, int nm_type, extern fstring local_machine; static struct cli_state cli; uint32 local_type = local ? SV_TYPE_LOCAL_LIST_ONLY : 0; + struct nmb_name called, calling; if (!cli_initialise(&cli) || !cli_connect(&cli, name, &ip)) { fclose(fp); return; } - if (!cli_session_request(&cli, name, nm_type, local_machine)) { + make_nmb_name(&calling, local_machine, 0x0 , scope); + make_nmb_name(&called , name , nm_type, scope); + + if (!cli_session_request(&cli, &calling, &called)) + { cli_shutdown(&cli); fclose(fp); return; |