1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

smbdotconf: mark "set quota command" with substitution="1"

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Ralph Boehme 2019-11-05 12:01:45 +01:00 committed by Stefan Metzmacher
parent 434d2632cb
commit fd72181fd0
2 changed files with 5 additions and 2 deletions

View 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

View 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;