mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s3:net rpc conf: remove the (now) unused rpc_conf_reg_valname_forbidden()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
0c4e5fcc53
commit
bceb34543e
@ -175,27 +175,6 @@ static int rpc_conf_delincludes_usage(struct net_context *c, int argc,
|
|||||||
*
|
*
|
||||||
**********************************************************/
|
**********************************************************/
|
||||||
|
|
||||||
static bool rpc_conf_reg_valname_forbidden(const char * valname)
|
|
||||||
{
|
|
||||||
const char *forbidden_valnames[] = {
|
|
||||||
"lock directory",
|
|
||||||
"lock dir",
|
|
||||||
"config backend",
|
|
||||||
"include",
|
|
||||||
"includes", /* this has a special meaning internally */
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
const char **forbidden = NULL;
|
|
||||||
|
|
||||||
for (forbidden = forbidden_valnames; *forbidden != NULL; forbidden++) {
|
|
||||||
if (strwicmp(valname, *forbidden) == 0) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The function deletes a registry value with the name 'value' from the share
|
* The function deletes a registry value with the name 'value' from the share
|
||||||
* with the name 'share_name'. 'parent_hnd' is the handle for the smbconf key.
|
* with the name 'share_name'. 'parent_hnd' is the handle for the smbconf key.
|
||||||
|
Loading…
Reference in New Issue
Block a user