diff options
author | Gregor Beck <gbeck@sernet.de> | 2010-09-20 15:24:03 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-09-22 06:30:00 +0200 |
commit | 44d10d05464b16082d318b0e7001432484013a29 (patch) | |
tree | b08581e557047d1f3132b0f724b099a7f3893a5a /source3 | |
parent | 47313afe97973e1293af2f1ab0d08ecaedb74e1e (diff) | |
download | samba-44d10d05464b16082d318b0e7001432484013a29.tar.gz samba-44d10d05464b16082d318b0e7001432484013a29.tar.bz2 samba-44d10d05464b16082d318b0e7001432484013a29.zip |
s3-net: let rpccli_winreg_Connect optionally return WERROR
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_rpc_registry.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c index d97696845a..76e8555a3f 100644 --- a/source3/utils/net_rpc_registry.c +++ b/source3/utils/net_rpc_registry.c @@ -33,7 +33,7 @@ static NTSTATUS rpccli_winreg_Connect(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t reg_type, uint32_t access_mask, - struct policy_handle *reg_hnd) + struct policy_handle *reg_hnd, WERROR *werr) { ZERO_STRUCTP(reg_hnd); @@ -41,23 +41,23 @@ static NTSTATUS rpccli_winreg_Connect(struct rpc_pipe_client *cli, TALLOC_CTX *m { case HKEY_CLASSES_ROOT: return rpccli_winreg_OpenHKCR( cli, mem_ctx, NULL, - access_mask, reg_hnd, NULL); + access_mask, reg_hnd, werr); case HKEY_LOCAL_MACHINE: return rpccli_winreg_OpenHKLM( cli, mem_ctx, NULL, - access_mask, reg_hnd, NULL); + access_mask, reg_hnd, werr); case HKEY_USERS: return rpccli_winreg_OpenHKU( cli, mem_ctx, NULL, - access_mask, reg_hnd, NULL); + access_mask, reg_hnd, werr); case HKEY_CURRENT_USER: return rpccli_winreg_OpenHKCU( cli, mem_ctx, NULL, - access_mask, reg_hnd, NULL); + access_mask, reg_hnd, werr); case HKEY_PERFORMANCE_DATA: return rpccli_winreg_OpenHKPD( cli, mem_ctx, NULL, - access_mask, reg_hnd, NULL); + access_mask, reg_hnd, werr); default: /* fall through to end of function */ @@ -136,7 +136,7 @@ static NTSTATUS registry_openkey(TALLOC_CTX *mem_ctx, } status = rpccli_winreg_Connect(pipe_hnd, mem_ctx, hive, access_mask, - hive_hnd); + hive_hnd, NULL); if (!(NT_STATUS_IS_OK(status))) { return status; } @@ -702,7 +702,7 @@ static NTSTATUS rpc_registry_createkey_internal(struct net_context *c, status = rpccli_winreg_Connect(pipe_hnd, mem_ctx, hive, SEC_FLAG_MAXIMUM_ALLOWED, - &hive_hnd); + &hive_hnd, NULL); if (!(NT_STATUS_IS_OK(status))) { return status; } @@ -774,7 +774,7 @@ static NTSTATUS rpc_registry_deletekey_internal(struct net_context *c, status = rpccli_winreg_Connect(pipe_hnd, mem_ctx, hive, SEC_FLAG_MAXIMUM_ALLOWED, - &hive_hnd); + &hive_hnd, NULL); if (!(NT_STATUS_IS_OK(status))) { return status; } |