Merge pull request #15454 from keszybz/codespell-fixes
Spelling fixes based on codespell suggestions
This commit is contained in:
@@ -7,7 +7,7 @@ static const char* const bridge_state_table[_NETDEV_BRIDGE_STATE_MAX] = {
|
||||
[NETDEV_BRIDGE_STATE_DISABLED] = "disabled",
|
||||
[NETDEV_BRIDGE_STATE_LISTENING] = "listening",
|
||||
[NETDEV_BRIDGE_STATE_LEARNING] = "learning",
|
||||
[NETDEV_BRIDGE_STATE_FORWARDING] = "forwading",
|
||||
[NETDEV_BRIDGE_STATE_FORWARDING] = "forwarding",
|
||||
};
|
||||
|
||||
DEFINE_STRING_TABLE_LOOKUP(bridge_state, BridgeState);
|
||||
|
||||
@@ -150,7 +150,7 @@ int fd_chown_recursive(
|
||||
struct stat st;
|
||||
|
||||
/* Note that the slightly different order of fstat() and the checks here and in
|
||||
* path_chown_recursive(). That's because when we open the dirctory ourselves we can specify
|
||||
* path_chown_recursive(). That's because when we open the directory ourselves we can specify
|
||||
* O_DIRECTORY and we always want to ensure we are operating on a directory before deciding whether
|
||||
* the operation is otherwise redundant. */
|
||||
|
||||
|
||||
@@ -2001,7 +2001,7 @@ int table_print(Table *t, FILE *f) {
|
||||
_cleanup_free_ char *padded = NULL;
|
||||
|
||||
/* We truncated more lines of this cell, let's add an
|
||||
* ellipsis. We first append it, but thta might make our
|
||||
* ellipsis. We first append it, but that might make our
|
||||
* string grow above what we have space for, hence ellipsize
|
||||
* right after. This will truncate the ellipsis and add a new
|
||||
* one. */
|
||||
|
||||
@@ -1711,7 +1711,7 @@ int unit_file_verify_alias(const UnitFileInstallInfo *i, const char *dst, char *
|
||||
*
|
||||
* ret_dst is set in cases where "instance propagation" happens, i.e. when the instance part is
|
||||
* inserted into dst. It is not normally set, even on success, so that the caller can easily
|
||||
* distinguish the case where instance propagation occured.
|
||||
* distinguish the case where instance propagation occurred.
|
||||
*/
|
||||
|
||||
const char *path_alias = strrchr(dst, '/');
|
||||
|
||||
+1
-1
@@ -1381,7 +1381,7 @@ void json_variant_sensitive(JsonVariant *v) {
|
||||
|
||||
/* Marks a variant as "sensitive", so that it is erased from memory when it is destroyed. This is a
|
||||
* one-way operation: as soon as it is marked this way it remains marked this way until it's
|
||||
* destoryed. A magic variant is never sensitive though, even when asked, since it's too
|
||||
* destroyed. A magic variant is never sensitive though, even when asked, since it's too
|
||||
* basic. Similar, const string variant are never sensitive either, after all they are included in
|
||||
* the source code as they are, which is not suitable for inclusion of secrets.
|
||||
*
|
||||
|
||||
@@ -190,7 +190,7 @@ int pkcs11_token_login(
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EIO),
|
||||
"Failed to log into security token '%s': %s", token_label, p11_kit_strerror(rv));
|
||||
|
||||
log_info("Successully logged into security token '%s' via protected authentication path.", token_label);
|
||||
log_info("Successfully logged into security token '%s' via protected authentication path.", token_label);
|
||||
*ret_used_pin = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -208,7 +208,7 @@ static int swap_device_to_device_id(const SwapEntry *swap, dev_t *ret_dev) {
|
||||
}
|
||||
|
||||
/*
|
||||
* Attempt to calculate the swap file offset on supported filesystems. On unsuported
|
||||
* Attempt to calculate the swap file offset on supported filesystems. On unsupported
|
||||
* filesystems, a debug message is logged and ret_offset is set to UINT64_MAX.
|
||||
*/
|
||||
static int calculate_swap_file_offset(const SwapEntry *swap, uint64_t *ret_offset) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
char *sysctl_normalize(char *s);
|
||||
int sysctl_read(const char *property, char **value);
|
||||
int sysctl_write(const char *property, const char *value);
|
||||
int sysctl_writef(const char *propery, const char *format, ...) _printf_(2, 3);
|
||||
int sysctl_writef(const char *property, const char *format, ...) _printf_(2, 3);
|
||||
|
||||
int sysctl_read_ip_property(int af, const char *ifname, const char *property, char **ret);
|
||||
int sysctl_write_ip_property(int af, const char *ifname, const char *property, const char *value);
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ int get_testdata_dir(const char *suffix, char **ret) {
|
||||
if (!dir)
|
||||
dir = SYSTEMD_TEST_DATA;
|
||||
if (access(dir, F_OK) < 0)
|
||||
return log_error_errno(errno, "ERROR: $SYSTEMD_TEST_DATA directory [%s] not accesible: %m", dir);
|
||||
return log_error_errno(errno, "ERROR: $SYSTEMD_TEST_DATA directory [%s] not accessible: %m", dir);
|
||||
|
||||
p = path_join(dir, suffix);
|
||||
if (!p)
|
||||
|
||||
@@ -1071,7 +1071,7 @@ static int user_record_augment(UserRecord *h, JsonDispatchFlags json_flags) {
|
||||
return json_log_oom(h->json, json_flags);
|
||||
}
|
||||
|
||||
/* Let's add in the following automatisms only for regular users, they dont make sense for any others */
|
||||
/* Let's add in the following automatisms only for regular users, they don't make sense for any others */
|
||||
if (user_record_disposition(h) != USER_REGULAR)
|
||||
return 0;
|
||||
|
||||
@@ -1802,7 +1802,7 @@ int user_record_test_password_change_required(UserRecord *h) {
|
||||
0: No password change required, but permitted
|
||||
*/
|
||||
|
||||
/* If a pasword change request has been set explicitly, it overrides everything */
|
||||
/* If a password change request has been set explicitly, it overrides everything */
|
||||
if (h->password_change_now > 0)
|
||||
return -EKEYREVOKED;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user