diff --git a/docs-xml/smbdotconf/vfs/getquotacommand.xml b/docs-xml/smbdotconf/vfs/getquotacommand.xml index 7fcd829f50c..9422b7efd92 100644 --- a/docs-xml/smbdotconf/vfs/getquotacommand.xml +++ b/docs-xml/smbdotconf/vfs/getquotacommand.xml @@ -1,6 +1,7 @@ The get quota command should only be used diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c index 66436e86efd..3e91752b6b6 100644 --- a/source3/lib/sysquotas.c +++ b/source3/lib/sysquotas.c @@ -244,10 +244,12 @@ static struct { static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp) { + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); const char *get_quota_command; char **lines = NULL; - get_quota_command = lp_get_quota_command(talloc_tos()); + get_quota_command = lp_get_quota_command(talloc_tos(), lp_sub); if (get_quota_command && *get_quota_command) { const char *p; char *p2;