summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs-xml/smbdotconf/misc/perfcountmodule.xml1
-rw-r--r--source3/smbd/perfcount.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/docs-xml/smbdotconf/misc/perfcountmodule.xml b/docs-xml/smbdotconf/misc/perfcountmodule.xml
index e1c09488624..e25105fdb42 100644
--- a/docs-xml/smbdotconf/misc/perfcountmodule.xml
+++ b/docs-xml/smbdotconf/misc/perfcountmodule.xml
@@ -1,6 +1,7 @@
<samba:parameter name="perfcount module"
context="G"
type="string"
+ substitution="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>This parameter specifies the perfcount backend to be used when monitoring SMB
diff --git a/source3/smbd/perfcount.c b/source3/smbd/perfcount.c
index 1555ea24b64..c46cd3ebe83 100644
--- a/source3/smbd/perfcount.c
+++ b/source3/smbd/perfcount.c
@@ -174,9 +174,11 @@ void smb_init_perfcount_data(struct smb_perfcount_data *pcd)
bool smb_perfcount_init(void)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
char *perfcount_object;
- perfcount_object = lp_perfcount_module(talloc_tos());
+ perfcount_object = lp_perfcount_module(talloc_tos(), lp_sub);
/* don't init */
if (!perfcount_object || !perfcount_object[0])