summaryrefslogtreecommitdiff
path: root/source3/smbd/dfree.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-10-15 16:54:45 +0200
committerStefan Metzmacher <metze@samba.org>2019-11-27 10:25:32 +0000
commit7973c873442ed093b71bd42ca1397c5bfd65c820 (patch)
tree502f0ee6e664584f199377d92ce72c4c9d2f7f02 /source3/smbd/dfree.c
parent8e86ac18e7d6c3b3e9c5786138d1c90e699843c8 (diff)
downloadsamba-7973c873442ed093b71bd42ca1397c5bfd65c820.tar.gz
smbdotconf: mark "dfree command" with substitution="1"
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/smbd/dfree.c')
-rw-r--r--source3/smbd/dfree.c4
1 files changed, 3 insertions, 1 deletions
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;