smbdotconf: mark "get quota command" with substitution="1"
authorRalph Boehme <slow@samba.org>
Mon, 4 Nov 2019 16:43:45 +0000 (17:43 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:34 +0000 (10:25 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
docs-xml/smbdotconf/vfs/getquotacommand.xml
source3/lib/sysquotas.c

index 7fcd829f50ce78c2d35ab12cb3bed2379c97119c..9422b7efd92ca354082e8318562ffd548b736a96 100644 (file)
@@ -1,6 +1,7 @@
 <samba:parameter name="get quota command"
                  context="G"
-                                type="string"
+                 type="string"
+                 substitution="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>The <command>get quota command</command> should only be used 
index 66436e86efd8341c06725ebd4a4b188b50095f13..3e91752b6b688b935eef904157181a8f888675da 100644 (file)
@@ -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;