dissect-image: use correct path variable when reading verity signatures

Copypasta slipped in via https://github.com/systemd/systemd/pull/17101
This commit is contained in:
Luca Boccassi 2020-09-22 13:19:19 +01:00
parent 0b220a5f2a
commit 7025fa8b1a
1 changed files with 2 additions and 2 deletions

View File

@ -1964,7 +1964,7 @@ int verity_settings_load(
if (!p)
return -ENOMEM;
r = read_full_file_full(AT_FDCWD, root_hash_sig_path, 0, (char**) &root_hash_sig, &root_hash_sig_size);
r = read_full_file_full(AT_FDCWD, p, 0, (char**) &root_hash_sig, &root_hash_sig_size);
if (r < 0 && r != -ENOENT)
return r;
if (r >= 0)
@ -1978,7 +1978,7 @@ int verity_settings_load(
if (!p)
return -ENOMEM;
r = read_full_file_full(AT_FDCWD, root_hash_sig_path, 0, (char**) &root_hash_sig, &root_hash_sig_size);
r = read_full_file_full(AT_FDCWD, p, 0, (char**) &root_hash_sig, &root_hash_sig_size);
if (r < 0 && r != -ENOENT)
return r;
if (r >= 0)