s3:registry: Prevent creation of keys containing the '/' character.
authorMichael Adam <obnox@samba.org>
Fri, 17 Apr 2009 09:40:17 +0000 (11:40 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Jun 2009 10:41:51 +0000 (12:41 +0200)
commit9c227985c3ee5d24718b79960e7a2b1cdce5b71d
treefe597f8dcb81116cd2e8903d838e579fa724298b
parent47311ed9f3ed39c02ffbdf7b958135065ab7f0c2
s3:registry: Prevent creation of keys containing the '/' character.

Even though "net conf setparm abc/def comment xyz" does not
create a broken registry we do not want such keys to be created.
Since we get problems accessing these with "net registry" since
the registry code treats the '/' sign as a separator as a lower
level.

This makes e.g. "net conf setparm abc/def comment xyz" fail with
WERR_INVALID_PARAM, which is much more desirable than a broken
registry.tdb.

Michael
(cherry picked from commit de6f09988d84752e5333cba1fa69c5a685e903b7)
source/registry/reg_api.c