From 45e3406e23eb003b56eaf19a0979dec48aa97651 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 1 Jun 2023 19:15:10 +0200 Subject: veritysetup: remove double escaping of data device + hash device spec generator_write_veritysetup_service_section() already escapes the parameters internally, doing so in the caller means double escaping, which is a bug. Fix it. --- src/veritysetup/veritysetup-generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/veritysetup') diff --git a/src/veritysetup/veritysetup-generator.c b/src/veritysetup/veritysetup-generator.c index ca2e6401ac..303e0ced6d 100644 --- a/src/veritysetup/veritysetup-generator.c +++ b/src/veritysetup/veritysetup-generator.c @@ -413,7 +413,7 @@ static int create_veritytab_device( "Wants=modprobe@loop.service\n" "After=modprobe@loop.service\n"); - r = generator_write_veritysetup_service_section(f, name, du_escaped, hu_escaped, roothash, options); + r = generator_write_veritysetup_service_section(f, name, du, hu, roothash, options); if (r < 0) return r; -- cgit v1.2.3