s3:net [rpc] registry: be as user-friendly as possible wrt to the normalization change
commit36b95fee152d348926fad1bcdc9f05312bb2aad5
authorMichael Adam <obnox@samba.org>
Fri, 25 Jun 2010 15:26:34 +0000 (25 17:26 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 25 Jun 2010 15:35:42 +0000 (25 17:35 +0200)
treeb7084d25ee742b4a442cafeb7d5a846edd98fdb2
parent8e4f8128234f0015c9d63bb18821487bb3e7b06e
s3:net [rpc] registry: be as user-friendly as possible wrt to the normalization change

The registry has been changed to use '\' as a key delimiter instead of '/'.
Originally, one could mix both characters in the specification of registry
key for net [rpc] registry. Now this can not work any more, since '/' is
generally treated as a valid character of a key name.

Now, to be as user-friendly as possible, the net [rpc] registry code has
been changed to still support '/' as a key name delimiter if no '\' character
is found in the given registry path string. In that case, all '/' characters
are converted to '\' characters before proceeding. If on the other hand,
a '\' character is found in the path string, then no conversion is assumed,
and it is hence assumed that the path is already in the correct form and
'/' characters are supposed to be part of the key names.
source3/utils/net_registry_util.c