Skip to content

Commit

Permalink
tree-wide: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwata committed Sep 14, 2022
1 parent 10f3f4e commit af3d387
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ Features:
Alternative idea: add "systemd.gpt_auto_policy=rhvs" to allow gpt-auto to
only mount root dir, /home/ dir, /var/ and /srv/, but nothing else. And then
minor extension to this, insisting on encryption, for example
"systemd.gpt_auto_policy=r+v+h" to requre encryption for root and var but not
"systemd.gpt_auto_policy=r+v+h" to require encryption for root and var but not
for /home/, and similar. Similar add --image-dissect-policy= to tools that
take --image= that take the same short string.

Expand Down
2 changes: 1 addition & 1 deletion src/gpt-auto-generator/gpt-auto-generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ static int enumerate_partitions(dev_t devnum) {
* might remove all partitions while we are operating on them. */
r = loop_device_open(devname, O_RDONLY, LOCK_SH, &loop);
if (r < 0)
return log_debug_errno(r, "Failed to opne %s: %m", devname);
return log_debug_errno(r, "Failed to open %s: %m", devname);

r = dissect_loop_device(
loop,
Expand Down
5 changes: 2 additions & 3 deletions src/partition/repart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1572,9 +1572,8 @@ static int find_verity_sibling(Context *context, Partition *p, VerityMode mode,
assert(ret);

/* Try to find the matching sibling partition of the given type for a verity partition. For a data
* partition, this is the corresponding hash partiton with the same verity name (and vice versa for
* the hash partition).
*/
* partition, this is the corresponding hash partition with the same verity name (and vice versa for
* the hash partition). */

LIST_FOREACH(partitions, q, context->partitions) {
if (p == q)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/tpm2-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ static int tpm2_make_policy_session(
goto finish;

/* TPM2_VerifySignature() will only verify the RSA part of the RSA+SHA256 signature,
* hence we need to do the SHA256 part outselves, first */
* hence we need to do the SHA256 part ourselves, first */
TPM2B_DIGEST signature_hash = {
.size = SHA256_DIGEST_SIZE,
};
Expand Down

0 comments on commit af3d387

Please sign in to comment.