summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-09-27 21:37:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:14:52 -0500
commit95e4091596324e3f36ed95cdb13a6e179cb9de08 (patch)
tree2a5acf0cdc35b24c9301033b0cb2fcea1eb357c7
parent2326b147d03102cb7077aa7c8246b6515060284a (diff)
downloadsamba-95e4091596324e3f36ed95cdb13a6e179cb9de08.tar.gz
samba-95e4091596324e3f36ed95cdb13a6e179cb9de08.tar.bz2
samba-95e4091596324e3f36ed95cdb13a6e179cb9de08.zip
r18964: fix 'net rpc registry save' to use the new wnireg client code
(This used to be commit f2747daafc2f1cd515570c676b2660ab6fcba740)
-rw-r--r--source3/utils/net_rpc_registry.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index 36a925ae13..57d1f14d06 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -1,7 +1,8 @@
/*
Samba Unix/Linux SMB client library
Distributed SMB/CIFS Server Management Utility
- Copyright (C) Gerald (Jerry) Carter 2005
+
+ Copyright (C) Gerald (Jerry) Carter 2005-2006
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -210,6 +211,7 @@ static NTSTATUS rpc_registry_save_internal(const DOM_SID *domain_sid,
POLICY_HND pol_hive, pol_key;
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
struct winreg_String subkeyname;
+ struct winreg_String filename;
if (argc != 2 ) {
d_printf("Usage: net rpc backup <path> <file> \n");
@@ -237,18 +239,11 @@ static NTSTATUS rpc_registry_save_internal(const DOM_SID *domain_sid,
return werror_to_ntstatus(result);
}
-#if 0 /* IDL not implemented */
- /* original call was: rpccli_reg_save_key(pipe_hnd, mem_ctx, &pol_key, argv[1] ); */
-
- status = rpccli_winreg_SaveKey( cli, mem_ctx );
+ filename.name = argv[1];
+ status = rpccli_winreg_SaveKey( pipe_hnd, mem_ctx, &pol_key, &filename, NULL );
if ( !W_ERROR_IS_OK(result) ) {
d_fprintf(stderr, "Unable to save [%s] to %s:%s\n", argv[0], cli->desthost, argv[1]);
}
-#else
- d_printf("Call not implemented.\n");
- status = NT_STATUS_NOT_IMPLEMENTED;
-#endif
-
/* cleanup */