diff options
author | Andreas Schneider <asn@samba.org> | 2010-06-24 16:33:37 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-06-25 17:35:41 +0200 |
commit | 15bacaf3c594ac24cf26b0329723e873a5cae43d (patch) | |
tree | 6d49def92215c4fd375d54862a260984702099cd /source3/registry/reg_api.c | |
parent | f540833632ffe2c743e90ef9df1627e69b7a0c7b (diff) | |
download | samba-15bacaf3c594ac24cf26b0329723e873a5cae43d.tar.gz |
s3-registry: Convert registry key delimiter from slash to backslash.
This is needed to support keynames containing a '/' like TCP/IP. Which
is used in serveral standard paths.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/registry/reg_api.c')
-rw-r--r-- | source3/registry/reg_api.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c index e380a0d6e23..79b9a1eb2bc 100644 --- a/source3/registry/reg_api.c +++ b/source3/registry/reg_api.c @@ -475,16 +475,6 @@ WERROR reg_createkey(TALLOC_CTX *ctx, struct registry_key *parent, char *path, *end; WERROR err; - /* - * We must refuse to handle subkey-paths containing - * a '/' character because at a lower level, after - * normalization, '/' is treated as a key separator - * just like '\\'. - */ - if (strchr(subkeypath, '/') != NULL) { - return WERR_INVALID_PARAM; - } - if (!(mem_ctx = talloc_new(ctx))) return WERR_NOMEM; if (!(path = talloc_strdup(mem_ctx, subkeypath))) { |