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.
This commit is contained in:
Lennart Poettering
2023-06-01 19:15:10 +02:00
parent deb60ef92e
commit 45e3406e23

View 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;