Move content of comment.
authorMichael Adam <obnox@samba.org>
Tue, 8 Jan 2008 23:25:27 +0000 (00:25 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 9 Jan 2008 00:47:10 +0000 (01:47 +0100)
Michael
(This used to be commit ed4dd00c5ae8e4995ace9326f915ae4bd15d96b3)

source3/lib/util_reg_smbconf.c

index 472fef7a2d377bea59cef87ebbae4acf715f874a..5fb862ac354da3f0adc1866f8aa61cf5a6c0d5cf 100644 (file)
@@ -26,16 +26,16 @@ extern REGISTRY_OPS smbconf_reg_ops;
 
 /*
  * create a fake token just with enough rights to
- * locally access the registry.
+ * locally access the registry:
+ *
+ * - builtin administrators sid
+ * - disk operators privilege
  */
 NT_USER_TOKEN *registry_create_admin_token(TALLOC_CTX *mem_ctx)
 {
        NTSTATUS status;
        NT_USER_TOKEN *token = NULL;
 
-       /* fake a user token: builtin administrators sid and the
-        * disk operators privilege is all we need to access the 
-        * registry... */
        token = TALLOC_ZERO_P(mem_ctx, NT_USER_TOKEN);
        if (token == NULL) {
                DEBUG(1, ("talloc failed\n"));