From e195a5c1e96bb3ba9c39cbb82b3e1518c36b8ce0 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Wed, 10 Jan 2024 00:05:49 +0800 Subject: [PATCH] core/load-fragment: use unit_path_printf where appropriate --- src/core/load-fragment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index ee11c36d7d4..5bfb8a6d1e4 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -2697,7 +2697,7 @@ int config_parse_unit_env_file(const char *unit, return 0; } - r = unit_full_printf_full(u, rvalue, PATH_MAX, &n); + r = unit_path_printf(u, rvalue, &n); if (r < 0) { log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to resolve unit specifiers in '%s', ignoring: %m", rvalue); return 0; @@ -5268,7 +5268,7 @@ int config_parse_bind_paths( if (r == 0) break; - r = unit_full_printf_full(u, source, PATH_MAX, &sresolved); + r = unit_path_printf(u, source, &sresolved); if (r < 0) { log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to resolve unit specifiers in \"%s\", ignoring: %m", source); -- 2.47.3