]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
veritysetup: remove double escaping of data device + hash device spec 27889/head
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Jun 2023 17:15:10 +0000 (19:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Jun 2023 17:15:10 +0000 (19:15 +0200)
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

index ca2e6401acae0ec26dea447696c4e66adb1d71e4..303e0ced6d7512230479e08834e187acfd491b52 100644 (file)
@@ -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;