summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-07-04 13:18:56 +0000
committerGerald Carter <jerry@samba.org>2002-07-04 13:18:56 +0000
commit26d161ff85a3a551990a6cb44f37ef28bd8dcdd6 (patch)
tree19462de534026591d4f4f5653b98483f01f78bf8 /source3/rpc_server
parente48b3fe83c13aa9b061a880852d8ddd6623c29d6 (diff)
downloadsamba-26d161ff85a3a551990a6cb44f37ef28bd8dcdd6.tar.gz
samba-26d161ff85a3a551990a6cb44f37ef28bd8dcdd6.tar.bz2
samba-26d161ff85a3a551990a6cb44f37ef28bd8dcdd6.zip
fixed the geyed out registry keys. Stupid typo on my part.
Now on to plug in the printing tdbs to the registry view.... jerry (This used to be commit 2a68e4529ad884e8c3800f9006bb1c2b18cfada4)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_reg_nt.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c
index 951e100486..1960ebc821 100644
--- a/source3/rpc_server/srv_reg_nt.c
+++ b/source3/rpc_server/srv_reg_nt.c
@@ -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 */