Rev 5357: add some comments in http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/

Michael Adam ma at sernet.de
Sun Apr 15 21:28:52 GMT 2007


At http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/

------------------------------------------------------------
revno: 5357
revision-id: ma at sernet.de-20070415212850-d065eec3f15fccc9
parent: ma at sernet.de-20070413160501-13a5e31534a398b3
committer: Michael Adam <ma at sernet.de>
branch nick: SAMBA_3_0-registry.bzr
timestamp: Sun 2007-04-15 23:28:50 +0200
message:
  add some comments
modified:
  source/lib/util_reg.c          util_reg.c-20060711181331-c2d45d0e1f4a8648
=== modified file 'source/lib/util_reg.c'
--- a/source/lib/util_reg.c	2007-04-13 15:57:35 +0000
+++ b/source/lib/util_reg.c	2007-04-15 21:28:50 +0000
@@ -226,6 +226,10 @@
 	return WERR_OK;
 }
 
+/*
+ * create a fake token just with enough rights to
+ * locally access the registry.
+ */
 NT_USER_TOKEN *registry_create_admin_token(TALLOC_CTX *mem_ctx)
 {
 	NT_USER_TOKEN *token = NULL;
@@ -248,12 +252,19 @@
 	return token;
 }
 
+/*
+ * init the smbconf portion of the registry.
+ * for use in places where not the whole registry is needed,
+ * e.g. utils/net_conf.c and loadparm.c
+ */
 BOOL registry_init_regdb(void)
 {
 	BOOL ret = False;
 	int saved_errno = 0;
 	REGISTRY_HOOK smbconf_reg_hook = {KEY_SMBCONF, &smbconf_reg_ops};
 
+	DEBUG(10, ("registry_init_regdb called\n"));
+
 	if (!regdb_init()) {
 		saved_errno = errno;
 		DEBUG(1, ("Can't open the registry"));



More information about the samba-cvs mailing list