1
0
mirror of https://github.com/systemd/systemd synced 2026-03-31 12:14:57 +02:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Yu Watanabe
8c236eca78 resolve: fix typo
Follow-up for 8209f4adcde08d225f56269e608ccd5f6704cd70.
2025-11-16 11:13:56 +09:00
Yu Watanabe
e7254f9f4e efivars: fix typo
Follow-up for ab69a04600fd34c152c44be6864eb3bc64568e17.
2025-11-16 11:12:10 +09:00
3 changed files with 5 additions and 5 deletions

View File

@ -73,7 +73,7 @@ int efi_get_variable(
if (r < 0)
return log_debug_errno(r, "EFI variable '%s' is not a regular file, refusing: %m", p);
if (st.st_size == 0) /* for uncommited variables, see below */
if (st.st_size == 0) /* for uncommitted variables, see below */
return log_debug_errno(SYNTHETIC_ERRNO(ENOENT), "EFI variable '%s' is uncommitted", p);
if ((uint64_t) st.st_size < sizeof(attr))
return log_debug_errno(SYNTHETIC_ERRNO(ENODATA), "EFI variable '%s' is shorter than %zu bytes, refusing.", p, sizeof(attr));

View File

@ -127,7 +127,7 @@ static int on_filter_reply(
/* When we are are disconnected, that's fine, maybe the other side wants to clean up
* open connections every now and then, or is being restarted and thus a moment
* offline. Try to reconnect immediately to recover. However, a service that
* continously fails should not be able to get us into a busy loop, hence we apply a
* continuously fails should not be able to get us into a busy loop, hence we apply a
* ratelimit, and when it is hit we stop reconnecting. */
if (ratelimit_below(&h->reconnect_ratelimit)) {
log_debug("Connection terminated while querying filter of hook '%s', trying to reconnect.", h->socket_path);
@ -227,7 +227,7 @@ static int hook_acquire_filter(Hook *h) {
if (r <= 0)
return r;
/* Turn off timeout, after all we want to continously monitor filter changes */
/* Turn off timeout, after all we want to continuously monitor filter changes */
r = sd_varlink_set_relative_timeout(v, UINT64_MAX);
if (r < 0)
return log_error_errno(r, "Failed to disable timeout on Varlink connection %m");

View File

@ -47,7 +47,7 @@ static SD_VARLINK_DEFINE_METHOD(
"as one. Partial success/failure combinations are not supported."),
SD_VARLINK_DEFINE_INPUT_BY_TYPE(question, Question, SD_VARLINK_ARRAY),
SD_VARLINK_FIELD_COMMENT("A DNS response code. If a hook sets this return parameter further processing of the lookup via "
"regular proocols such as DNS, LLMNR, mDNS is skipped, and the return code returned immediately. "
"regular protocols such as DNS, LLMNR, mDNS is skipped, and the return code returned immediately. "
"In other words, if a hook intends to let the request pass to normal resolution, it should not "
"set this return parameter."),
SD_VARLINK_DEFINE_OUTPUT(rcode, SD_VARLINK_INT, SD_VARLINK_NULLABLE),
@ -76,6 +76,6 @@ SD_VARLINK_DEFINE_INTERFACE(
"services can send updates to the filter at any time. Whenever a further reply is sent the "
"filter configured therein fully replaces any previously communicated filter."),
&vl_method_QueryFilter,
SD_VARLINK_SYMBOL_COMMENT("Sent whenever a resolution request is made. This typically takes the filter paramaters returned "
SD_VARLINK_SYMBOL_COMMENT("Sent whenever a resolution request is made. This typically takes the filter parameters returned "
"by QueryFilter() into account, but this is not guaranteed."),
&vl_method_ResolveRecord);