From b2866b1318f2fa521ff93ec5ed58413b9145385a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 21 Nov 2006 20:10:39 +0000 Subject: r19825: To create a key, smbd also needs read privs assigned --- source/utils/net_rpc_registry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/utils/net_rpc_registry.c') diff --git a/source/utils/net_rpc_registry.c b/source/utils/net_rpc_registry.c index 5d399b4b967..8bdea0ffd4c 100644 --- a/source/utils/net_rpc_registry.c +++ b/source/utils/net_rpc_registry.c @@ -596,7 +596,8 @@ static NTSTATUS rpc_registry_createkey_internal(const DOM_SID *domain_sid, return NT_STATUS_INVALID_PARAMETER; } - status = rpccli_winreg_Connect(pipe_hnd, mem_ctx, hive, REG_KEY_WRITE, + status = rpccli_winreg_Connect(pipe_hnd, mem_ctx, hive, + REG_KEY_READ|REG_KEY_WRITE, &hive_hnd); if (!(NT_STATUS_IS_OK(status))) { return status; -- cgit v1.2.1