]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbdotconf: mark "set quota command" with substitution="1"
authorRalph Boehme <slow@samba.org>
Tue, 5 Nov 2019 11:01:45 +0000 (12:01 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:36 +0000 (10:25 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
docs-xml/smbdotconf/vfs/setquotacommand.xml
source3/lib/sysquotas.c

index 2a779d4a50f5792d67378d0253463c323399b9c6..6ae6ef114097c13df1a03b9d4ad1933c0c63a2e2 100644 (file)
@@ -1,6 +1,7 @@
 <samba:parameter name="set quota command"
                  context="G"
-                                type="string"
+                 type="string"
+                 substitution="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>The <command>set quota command</command> should only be used 
index 3e91752b6b688b935eef904157181a8f888675da..64e41f740a32e312c246278917026b64491a443e 100644 (file)
@@ -425,9 +425,11 @@ invalid_param:
 
 static int command_set_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 *set_quota_command;
 
-       set_quota_command = lp_set_quota_command(talloc_tos());
+       set_quota_command = lp_set_quota_command(talloc_tos(), lp_sub);
        if (set_quota_command && *set_quota_command) {
                char **lines = NULL;
                int _id = -1;