]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
fixed the geyed out registry keys. Stupid typo on my part.
authorGerald Carter <jerry@samba.org>
Thu, 4 Jul 2002 13:18:56 +0000 (13:18 +0000)
committerGerald Carter <jerry@samba.org>
Thu, 4 Jul 2002 13:18:56 +0000 (13:18 +0000)
Now on to plug in the printing tdbs to the registry view....

jerry

source/rpc_parse/parse_reg.c
source/rpc_server/srv_reg_nt.c

index e1913990ebbc12eed62cdd92794f054dcd3d5b42..1ebc1532f3153b17ceaae923ad3891aaf59fcffe 100644 (file)
@@ -129,11 +129,11 @@ BOOL reg_io_q_open_hklm(char *desc, REG_Q_OPEN_HKLM * r_q, prs_struct *ps,
        if (r_q->ptr != 0)
        {
                if (!prs_uint16("unknown_0", ps, depth, &(r_q->unknown_0)))
-               return False;
+                       return False;
                if (!prs_uint16("unknown_1", ps, depth, &(r_q->unknown_1)))
-               return False;
+                       return False;
                if (!prs_uint32("access_mask", ps, depth, &(r_q->access_mask)))
-               return False;
+                       return False;
        }
 
        return True;
index 951e100486a1b745fbb410f23c498a644216a177..1960ebc821f9818b06d78fa3808569beadc06fbb 100644 (file)
@@ -139,7 +139,7 @@ static int fetch_reg_keys( TDB_CONTEXT *tdb,  char* key, char **subkeys )
        
        if ( !buf ) {
                DEBUG(5,("fetch_reg_keys: Failed to fetch any subkeys for [%s]\n", key));
-               return -1;
+               return 0;
        }
        
        len = tdb_unpack( buf, buflen, "d", &num_items);
@@ -188,7 +188,7 @@ static int fetch_reg_keys_count( TDB_CONTEXT *tdb,  char* key )
        
        if ( !buf ) {
                DEBUG(5,("fetch_reg_keys: Failed to fetch any subkeys for [%s]\n", key));
-               return -1;
+               return 0;
        }
        
        len = tdb_unpack( buf, buflen, "d", &num_items);
@@ -480,21 +480,21 @@ static BOOL get_value_information( Registry_Key *key, uint32 *maxnum,
                return False;
 
        /* Hard coded key names first */
-       
-       if ( !strcmp(key->name, KEY_HKLM) || !strcmp(key->name, KEY_HKU) )
-       {
-               *maxnum   = 0;
-               *maxlen   = 0;
-               *maxsize  = 0;
-               return True;
-       }
-       
+       /* nothing has valuies right now */
+               
+       *maxnum   = 0;
+       *maxlen   = 0;
+       *maxsize  = 0;
+       return True;
+
+#if 0  /* JERRY */
        /* 
         * FIXME!!! Need to add routines to look up values in other
         * databases   --jerry
         */
 
        return False;
+#endif
 }
 
 /********************************************************************
@@ -670,7 +670,7 @@ NTSTATUS _reg_query_key(pipes_struct *p, REG_Q_QUERY_KEY *q_u, REG_R_QUERY_KEY *
        if ( !get_value_information( regkey, &r_u->num_values, &r_u->max_valnamelen, &r_u->max_valbufsize ) )
                return NT_STATUS_ACCESS_DENIED; 
                
-       r_u->sec_desc = 0x0;    /* size for key's sec_desc */
+       r_u->sec_desc = 0x00000078;     /* size for key's sec_desc */
        
        /* Win9x set this to 0x0 since it does not keep timestamps.
           Doing the same here for simplicity   --jerry */