diff options
author | Ralph Boehme <slow@samba.org> | 2019-11-04 17:21:34 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-11-27 10:25:34 +0000 |
commit | 736cb9d80c9fdba0369bd740aa82d88e45e0c4b9 (patch) | |
tree | fa94b60983f5db4600fc3810179ddf4d752ddc2d /source3/param | |
parent | 4b1de86de2b84afda280b862d4d6e7234ebb3de8 (diff) | |
download | samba-736cb9d80c9fdba0369bd740aa82d88e45e0c4b9.tar.gz |
smbdotconf: mark "defaultservice" with substitution="1"
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/service.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/param/service.c b/source3/param/service.c index 22f46f08894..76c12bd591d 100644 --- a/source3/param/service.c +++ b/source3/param/service.c @@ -111,6 +111,8 @@ int add_home_service(const char *service, const char *username, const char *home int find_service(TALLOC_CTX *ctx, const char *service_in, char **p_service_out) { + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); int iService; if (!service_in) { @@ -199,7 +201,7 @@ int find_service(TALLOC_CTX *ctx, const char *service_in, char **p_service_out) /* just possibly it's a default service? */ if (iService < 0) { - char *pdefservice = lp_defaultservice(talloc_tos()); + char *pdefservice = lp_defaultservice(talloc_tos(), lp_sub); if (pdefservice && *pdefservice && !strequal(pdefservice, *p_service_out) |