Skip to content

Commit

Permalink
veritysetup: remove double escaping of data device + hash device spec
Browse files Browse the repository at this point in the history
generator_write_veritysetup_service_section() already escapes the
parameters internally, doing so in the caller means double escaping,
which is a bug. Fix it.

(cherry picked from commit 45e3406)
  • Loading branch information
poettering authored and bluca committed Jul 7, 2023
1 parent 86206af commit e06ff3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/veritysetup/veritysetup-generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static int create_disk(
"After=systemd-tmpfiles-setup-dev.service\n",
hu_escaped);

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;

Expand Down

0 comments on commit e06ff3e

Please sign in to comment.