mirror of
https://github.com/samba-team/samba.git
synced 2025-02-10 13:57:47 +03:00
Rename libnet_smbconf_reg_open_basepath() to libnet_smbconf_reg_open_basekey().
Michael (This used to be commit 9e953a94e9b3a060769938ef6af25623e446c180)
This commit is contained in:
parent
0df7bcaec3
commit
83d74c10a2
@ -93,9 +93,9 @@ done:
|
|||||||
/*
|
/*
|
||||||
* open the base key KEY_SMBCONF
|
* open the base key KEY_SMBCONF
|
||||||
*/
|
*/
|
||||||
static WERROR libnet_smbconf_reg_open_basepath(TALLOC_CTX *ctx,
|
static WERROR libnet_smbconf_reg_open_basekey(TALLOC_CTX *ctx,
|
||||||
uint32 desired_access,
|
uint32 desired_access,
|
||||||
struct registry_key **key)
|
struct registry_key **key)
|
||||||
{
|
{
|
||||||
return libnet_smbconf_reg_open_path(ctx, NULL, desired_access, key);
|
return libnet_smbconf_reg_open_path(ctx, NULL, desired_access, key);
|
||||||
}
|
}
|
||||||
@ -137,8 +137,8 @@ static WERROR libnet_smbconf_reg_createkey_internal(TALLOC_CTX *ctx,
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
werr = libnet_smbconf_reg_open_basepath(create_ctx, REG_KEY_WRITE,
|
werr = libnet_smbconf_reg_open_basekey(create_ctx, REG_KEY_WRITE,
|
||||||
&create_parent);
|
&create_parent);
|
||||||
if (!W_ERROR_IS_OK(werr)) {
|
if (!W_ERROR_IS_OK(werr)) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
@ -520,9 +520,9 @@ WERROR libnet_smbconf_get_share_names(TALLOC_CTX *mem_ctx, uint32_t *num_shares,
|
|||||||
added_count++;
|
added_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
werr = libnet_smbconf_reg_open_basepath(tmp_ctx,
|
werr = libnet_smbconf_reg_open_basekey(tmp_ctx,
|
||||||
SEC_RIGHTS_ENUM_SUBKEYS,
|
SEC_RIGHTS_ENUM_SUBKEYS,
|
||||||
&key);
|
&key);
|
||||||
if (!W_ERROR_IS_OK(werr)) {
|
if (!W_ERROR_IS_OK(werr)) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
@ -615,7 +615,7 @@ WERROR libnet_smbconf_delshare(const char *servicename)
|
|||||||
struct registry_key *key = NULL;
|
struct registry_key *key = NULL;
|
||||||
TALLOC_CTX *ctx = talloc_stackframe();
|
TALLOC_CTX *ctx = talloc_stackframe();
|
||||||
|
|
||||||
werr = libnet_smbconf_reg_open_basepath(ctx, REG_KEY_WRITE, &key);
|
werr = libnet_smbconf_reg_open_basekey(ctx, REG_KEY_WRITE, &key);
|
||||||
if (!W_ERROR_IS_OK(werr)) {
|
if (!W_ERROR_IS_OK(werr)) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user