summaryrefslogtreecommitdiffstats
path: root/source/rpcclient/rpcclient.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-24 23:40:20 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-24 23:40:20 +0000
commit45e92258e7df84c21d23c0be7e1d85457ccac551 (patch)
treee940058ff3a11ecbd415c66a9d118aab4fefe770 /source/rpcclient/rpcclient.c
parent7cacf8bd026f1ee274f1d352c68cf79cf4f3b499 (diff)
downloadsamba-45e92258e7df84c21d23c0be7e1d85457ccac551.tar.gz
samba-45e92258e7df84c21d23c0be7e1d85457ccac551.tar.xz
samba-45e92258e7df84c21d23c0be7e1d85457ccac551.zip
registry API moved over to new format. reg_connect() is the top-level
function, which takes \\server_name. tested a _few_ functions. found that regcreatekey receives a Fault PDU.
Diffstat (limited to 'source/rpcclient/rpcclient.c')
-rw-r--r--source/rpcclient/rpcclient.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/rpcclient/rpcclient.c b/source/rpcclient/rpcclient.c
index 6891d4435b3..da20431b6c1 100644
--- a/source/rpcclient/rpcclient.c
+++ b/source/rpcclient/rpcclient.c
@@ -903,6 +903,7 @@ static char *complete_regenum(char *text, int state)
if (state == 0)
{
+ fstring srv_name;
if (cmd_argc >= 2 && cmd_argv != NULL && cmd_argv[1] != NULL)
{
char *sep;
@@ -914,8 +915,12 @@ static char *complete_regenum(char *text, int state)
}
}
+ fstrcpy(srv_name, "\\\\");
+ fstrcat(srv_name, cli_info.dest_host);
+ strupper(srv_name);
+
/* Iterate all keys / values */
- if (!msrpc_reg_enum_key(smb_cli, full_keyname,
+ if (!msrpc_reg_enum_key(srv_name, full_keyname,
reg_init, reg_key_list, reg_val_list))
{
return NULL;