From: Ralph Boehme Date: Mon, 4 Nov 2019 16:43:45 +0000 (+0100) Subject: smbdotconf: mark "get quota command" with substitution="1" X-Git-Tag: ldb-2.1.0~547 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25039641490fdc33d7e81959bc462b5a2916d95e;p=thirdparty%2Fsamba.git smbdotconf: mark "get quota command" with substitution="1" Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- 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;