From: Stefan Metzmacher Date: Tue, 15 Oct 2019 12:04:27 +0000 (+0200) Subject: s3:vfs_glusterfs: make use of lp_parm_substituted_string() X-Git-Tag: ldb-2.1.0~591 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cea386de159c6bea141aa507e7b67723fac2f007;p=thirdparty%2Fsamba.git s3:vfs_glusterfs: make use of lp_parm_substituted_string() Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index a28b48dae45..d67ba89391c 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -268,6 +268,8 @@ static int vfs_gluster_connect(struct vfs_handle_struct *handle, const char *service, const char *user) { + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); const char *volfile_servers; const char *volume; char *logfile; @@ -281,14 +283,21 @@ static int vfs_gluster_connect(struct vfs_handle_struct *handle, ret = -1; goto done; } - logfile = lp_parm_talloc_string(tmp_ctx, SNUM(handle->conn), "glusterfs", - "logfile", NULL); + logfile = lp_parm_substituted_string(tmp_ctx, + lp_sub, + SNUM(handle->conn), + "glusterfs", + "logfile", + NULL); loglevel = lp_parm_int(SNUM(handle->conn), "glusterfs", "loglevel", -1); - volfile_servers = lp_parm_talloc_string(tmp_ctx, SNUM(handle->conn), - "glusterfs", "volfile_server", - NULL); + volfile_servers = lp_parm_substituted_string(tmp_ctx, + lp_sub, + SNUM(handle->conn), + "glusterfs", + "volfile_server", + NULL); if (volfile_servers == NULL) { volfile_servers = DEFAULT_VOLFILE_SERVER; }