diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-29 19:46:57 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-29 19:46:57 +0000 |
commit | e302cb2b189f679bcf7efe60d5ae9fb4218c1411 (patch) | |
tree | d9988ec9a4a7d04690e1c6684640c7f5a6c5685a /source3/rpcclient/rpcclient.c | |
parent | dbc916a25128967c9a227f84c4fd032f5d5a129e (diff) | |
download | samba-e302cb2b189f679bcf7efe60d5ae9fb4218c1411.tar.gz samba-e302cb2b189f679bcf7efe60d5ae9fb4218c1411.tar.bz2 samba-e302cb2b189f679bcf7efe60d5ae9fb4218c1411.zip |
first attempt at getting \PIPE\NETLOGON working. it's pretty horrible.
(This used to be commit 44dd3efa6380544e9a515e91960f9271498cefaf)
Diffstat (limited to 'source3/rpcclient/rpcclient.c')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index aaf872683a..3951b8e564 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -49,9 +49,6 @@ static void cmd_set (struct client_info *info, int argc, char *argv[]); static struct user_credentials usr; -static struct cli_state smbcli; -struct cli_state *smb_cli = &smbcli; - static struct client_info cli_info; static char **cmd_argv = NULL; @@ -788,14 +785,14 @@ static BOOL process( struct client_info *info, char *cmd_str) fflush(out_hnd); #ifdef CLIX - line[0] = wait_keyboard(smb_cli); + line[0] = wait_keyboard(NULL); /* this might not be such a good idea... */ if ( line[0] == EOF) { break; } #else - wait_keyboard(smb_cli); + wait_keyboard(NULL); #endif /* and get a response */ @@ -1185,7 +1182,7 @@ static char *complete_printersenum(char *text, int state) { fstring srv_name; fstrcpy(srv_name, "\\\\"); - fstrcat(srv_name, smb_cli->desthost); + fstrcat(srv_name, cli_info.dest_host); strupper(srv_name); free_print1_array(num, ctr); @@ -1193,7 +1190,7 @@ static char *complete_printersenum(char *text, int state) num = 0; /* Iterate all users */ - if (!msrpc_spoolss_enum_printers(smb_cli, srv_name, + if (!msrpc_spoolss_enum_printers(srv_name, 1, &num, (void***)&ctr, NULL)) { @@ -1609,10 +1606,6 @@ static void cmd_set(struct client_info *info, int argc, char *argv[]) load_interfaces(); } - fstrcpy(cli_info.mach_acct, cli_info.myhostname); - strupper(cli_info.mach_acct); - fstrcat(cli_info.mach_acct, "$"); - if (cmd_str != NULL) { process(&cli_info, cmd_str); |