svn commit: samba r19825 - in branches/SAMBA_3_0/source/utils: .

vlendec at samba.org vlendec at samba.org
Tue Nov 21 20:10:39 GMT 2006


Author: vlendec
Date: 2006-11-21 20:10:39 +0000 (Tue, 21 Nov 2006)
New Revision: 19825

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19825

Log:
To create a key, smbd also needs read privs assigned
Modified:
   branches/SAMBA_3_0/source/utils/net_rpc_registry.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_rpc_registry.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_rpc_registry.c	2006-11-21 19:47:48 UTC (rev 19824)
+++ branches/SAMBA_3_0/source/utils/net_rpc_registry.c	2006-11-21 20:10:39 UTC (rev 19825)
@@ -596,7 +596,8 @@
 		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;



More information about the samba-cvs mailing list