mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
smbdotconf: mark "wins hook" with substitution="1"
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
2dae6473fa
commit
4d2a3c8a79
@ -1,6 +1,7 @@
|
||||
<samba:parameter name="wins hook"
|
||||
context="G"
|
||||
type="string"
|
||||
type="string"
|
||||
substitution="1"
|
||||
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
||||
<description>
|
||||
<para>When Samba is running as a WINS server this
|
||||
|
@ -454,8 +454,10 @@ static void get_global_id_and_update(uint64_t *current_id, bool update)
|
||||
|
||||
static void wins_hook(const char *operation, struct name_record *namerec, int ttl)
|
||||
{
|
||||
const struct loadparm_substitution *lp_sub =
|
||||
loadparm_s3_global_substitution();
|
||||
char *command = NULL;
|
||||
char *cmd = lp_wins_hook(talloc_tos());
|
||||
char *cmd = lp_wins_hook(talloc_tos(), lp_sub);
|
||||
char *p, *namestr;
|
||||
int i;
|
||||
TALLOC_CTX *ctx = talloc_tos();
|
||||
|
@ -985,6 +985,8 @@ struct winsdb_handle *winsdb_connect(TALLOC_CTX *mem_ctx,
|
||||
const char *owner,
|
||||
enum winsdb_handle_caller caller)
|
||||
{
|
||||
const struct loadparm_substitution *lp_sub =
|
||||
lpcfg_noop_substitution();
|
||||
struct winsdb_handle *h = NULL;
|
||||
unsigned int flags = 0;
|
||||
bool ret;
|
||||
@ -1005,7 +1007,7 @@ struct winsdb_handle *winsdb_connect(TALLOC_CTX *mem_ctx,
|
||||
if (!h->ldb) goto failed;
|
||||
|
||||
h->caller = caller;
|
||||
h->hook_script = lpcfg_wins_hook(lp_ctx, h);
|
||||
h->hook_script = lpcfg_wins_hook(lp_ctx, lp_sub, h);
|
||||
|
||||
h->local_owner = talloc_strdup(h, owner);
|
||||
if (!h->local_owner) goto failed;
|
||||
|
Loading…
Reference in New Issue
Block a user