exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 678593ad43db8beb847e547a1ba51f3a09b879c9
parent 825321ec6cbd0112eeea0e3a444dee8b0ed4c49e
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed,  4 Mar 2026 23:57:54 +0100

use string, we do not want to expand @-names

Diffstat:
Mdebian/control | 1+
Msrc/mhd/mhd_typst.c | 16+++++++---------
2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/debian/control b/debian/control @@ -135,6 +135,7 @@ Architecture: any Recommends: pdftk Description: Typst packages for GNU Taler exchange. + . This package contains Typst packages used by the exchange for PDF generation. It should be installed alongside Typst and pdftk for PDF generation. diff --git a/src/mhd/mhd_typst.c b/src/mhd/mhd_typst.c @@ -660,7 +660,7 @@ setup_stage (struct TypstStage *stage, /* now setup typst invocation */ { - const char *argv[6]; + const char *argv[4]; argv[0] = "typst"; argv[1] = "compile"; @@ -669,10 +669,8 @@ setup_stage (struct TypstStage *stage, dynamic data in /tmp and resources outside of /tmp and copying all the time is also bad. Typst should really support multiple roots. */ - argv[2] = "--root"; - argv[3] = "/"; - argv[4] = input; - argv[5] = NULL; + argv[2] = input; + argv[3] = NULL; stage->proc = GNUNET_OS_start_process_vap ( GNUNET_OS_INHERIT_STD_ERR, NULL, @@ -766,10 +764,10 @@ TALER_MHD_typst ( char *template_path; if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_filename (cfg, - cfg_section_name, - "TYPST_TEMPLATES", - &template_path)) + GNUNET_CONFIGURATION_get_value_string (cfg, + cfg_section_name, + "TYPST_TEMPLATES", + &template_path)) { GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, cfg_section_name,