From: Stefan Metzmacher Date: Tue, 15 Oct 2019 14:54:45 +0000 (+0200) Subject: smbdotconf: mark "dfree command" with substitution="1" X-Git-Tag: ldb-2.1.0~586 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7973c873442ed093b71bd42ca1397c5bfd65c820;p=thirdparty%2Fsamba.git smbdotconf: mark "dfree command" with substitution="1" Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/docs-xml/smbdotconf/misc/dfreecommand.xml b/docs-xml/smbdotconf/misc/dfreecommand.xml index a1eed4948a6..b12ee0f2923 100644 --- a/docs-xml/smbdotconf/misc/dfreecommand.xml +++ b/docs-xml/smbdotconf/misc/dfreecommand.xml @@ -1,6 +1,7 @@ diff --git a/source3/smbd/dfree.c b/source3/smbd/dfree.c index 31900c847f1..d083ce22797 100644 --- a/source3/smbd/dfree.c +++ b/source3/smbd/dfree.c @@ -57,6 +57,8 @@ static uint64_t sys_disk_free(connection_struct *conn, uint64_t *dfree, uint64_t *dsize) { + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); uint64_t dfree_retval; uint64_t dfree_q = 0; uint64_t bsize_q = 0; @@ -72,7 +74,7 @@ static uint64_t sys_disk_free(connection_struct *conn, * If external disk calculation specified, use it. */ - dfree_command = lp_dfree_command(talloc_tos(), SNUM(conn)); + dfree_command = lp_dfree_command(talloc_tos(), lp_sub, SNUM(conn)); if (dfree_command && *dfree_command) { const char *p; char **lines = NULL;