registry: use normalize_reg_path() in regdb_fetch_keys()
authorMichael Adam <obnox@samba.org>
Tue, 29 Apr 2008 13:28:47 +0000 (15:28 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 30 Apr 2008 10:42:31 +0000 (12:42 +0200)
instead of handcrafting normalization.

Michael
(This used to be commit 1e4d2310d077c4d18470fd76f5ff9c010aadd3f0)

source3/registry/reg_backend_db.c

index 95cca029c49f3c3e4190a49759c9811518aa346f..6bd8d375fbf7b0e0107c6c23d013f7c07b526942 100644 (file)
@@ -739,11 +739,10 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
        }
 
        /* convert to key format */
-       path = talloc_string_sub(frame, path, "\\", "/");
+       path = normalize_reg_path(frame, path);
        if (!path) {
                goto fail;
        }
-       strupper_m(path);
 
        ctr->seqnum = regdb_get_seqnum();