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)
committerMichael Adam <obnox@samba.org>
Fri, 17 Apr 2009 12:47:33 +0000 (14:47 +0200)
commitde6f09988d84752e5333cba1fa69c5a685e903b7
tree5b719a08ac265786373a0bc7c116c13024808034
parent642afabf26dbb7d0f73c15c5502a90020f65a914
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
source/registry/reg_api.c