diff options
author | Gerald Carter <jerry@samba.org> | 2002-07-24 19:53:49 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-07-24 19:53:49 +0000 |
commit | f1ed55d9032200eae68fc88bfb464e653497f315 (patch) | |
tree | 7a371f4670d963803e03a0acde5fe4033fee03b7 /source3/registry | |
parent | a12ed7f506263c6ec34c7df6bbcb3e8434841403 (diff) | |
download | samba-f1ed55d9032200eae68fc88bfb464e653497f315.tar.gz samba-f1ed55d9032200eae68fc88bfb464e653497f315.tar.bz2 samba-f1ed55d9032200eae68fc88bfb464e653497f315.zip |
* fix return code so we don't let a client just open any key it wants
(even nonexistent ones). This gets rid of the Scheduling Agent icon.
* fix NT_STATUS return code for bad registry path (NT_STATUS_NO_SUCH_FILE)
(This used to be commit 915ee5c0ec0467fea23be8f309bcaa085c6ed9dd)
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_db.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/reg_db.c b/source3/registry/reg_db.c index 773a4f7fb5..74012263e5 100644 --- a/source3/registry/reg_db.c +++ b/source3/registry/reg_db.c @@ -252,8 +252,8 @@ int regdb_fetch_reg_keys( char* key, REGSUBKEY_CTR *ctr ) buflen = dbuf.dsize; if ( !buf ) { - DEBUG(5,("regdb_fetch_reg_keys: Failed to fetch any subkeys for [%s]\n", key)); - return 0; + DEBUG(5,("regdb_fetch_reg_keys: tdb lookup failed to locate key [%s]\n", key)); + return -1; } len = tdb_unpack( buf, buflen, "d", &num_items); |