diff options
author | Ralph Boehme <slow@samba.org> | 2019-11-04 19:27:41 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-11-27 10:25:37 +0000 |
commit | b48d30e0e12a2ddf52429b69599850c670e68160 (patch) | |
tree | d80d005bde8ce22eb09292ce4947cf54becf9fb1 /source3/param/loadparm.c | |
parent | 71e9c6e48b57f568b04eb829511492aff41745b9 (diff) | |
download | samba-b48d30e0e12a2ddf52429b69599850c670e68160.tar.gz |
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>
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 984c048001f..0c212ab5fe5 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -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); } /** |