mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
smbdotconf: mark "ldap idmap suffix" with constant="1"
Due to the use of append_ldap_suffix() where Globals.ldap_suffix is returned directly, variable substitution isn't supported anyway, so we can just mark this const. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
71e9c6e48b
commit
b48d30e0e1
@ -2,6 +2,7 @@
|
||||
context="G"
|
||||
type="string"
|
||||
function="_ldap_idmap_suffix"
|
||||
constant="1"
|
||||
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
||||
<description>
|
||||
<para>
|
||||
|
@ -2620,7 +2620,7 @@ const char *lp_ldap_idmap_suffix(TALLOC_CTX *ctx)
|
||||
if (Globals._ldap_idmap_suffix[0])
|
||||
return append_ldap_suffix(ctx, Globals._ldap_idmap_suffix);
|
||||
|
||||
return lp_string(ctx, Globals.ldap_suffix);
|
||||
return talloc_strdup(ctx, Globals.ldap_suffix);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user