treewide: fix typos in the entire codebase
Signed-off-by: Diego Viola <diego.viola@gmail.com>
This commit is contained in:
committed by
Lennart Poettering
parent
fc8d547642
commit
5d17215c7e
@@ -346,7 +346,7 @@ static int async_polkit_process_reply(sd_bus_message *reply, AsyncPolkitQuery *q
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
/* Now, let's dispatch the original message a second time be re-enqueing. This will then traverse the
|
||||
/* Now, let's dispatch the original message a second time be re-enqueuing. This will then traverse the
|
||||
* whole message processing again, and thus re-validating and re-retrieving the "userdata" field
|
||||
* again.
|
||||
*
|
||||
|
||||
@@ -2144,7 +2144,7 @@ static int bus_append_protect_hostname(sd_bus_message *m, const char *field, con
|
||||
int r;
|
||||
|
||||
/* The command-line field is called "ProtectHostname". We also accept "ProtectHostnameEx" as the
|
||||
* field name for backward compatibility. We set ProtectHostame or ProtectHostnameEx. */
|
||||
* field name for backward compatibility. We set ProtectHostname or ProtectHostnameEx. */
|
||||
|
||||
r = parse_boolean(eq);
|
||||
if (r >= 0)
|
||||
|
||||
@@ -1127,7 +1127,7 @@ static int find_matching_component(
|
||||
|
||||
assert(val);
|
||||
|
||||
/* Finds the *earliest* matching time specified by one of the CalendarCompoment items in chain c.
|
||||
/* Finds the *earliest* matching time specified by one of the CalendarComponent items in chain c.
|
||||
* If no matches can be found, returns -ENOENT.
|
||||
* Otherwise, updates *val to the matching time. 1 is returned if *val was changed, 0 otherwise.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -652,7 +652,7 @@ static int hardlink_context_setup(
|
||||
* <= 0, because in that case we will not actually allocate the hardlink inode lookup table directory
|
||||
* on disk (we do so lazily, when the first candidate with .n_link > 1 is seen). This means, in the
|
||||
* common case where hardlinks are not used at all or only for few files the fact that we store the
|
||||
* table on disk shouldn't matter perfomance-wise. */
|
||||
* table on disk shouldn't matter performance-wise. */
|
||||
|
||||
if (!FLAGS_SET(copy_flags, COPY_HARDLINKS))
|
||||
return 0;
|
||||
|
||||
@@ -2298,7 +2298,7 @@ int partition_pick_mount_options(
|
||||
case PARTITION_XBOOTLDR:
|
||||
flags |= MS_NOSUID|MS_NOEXEC|MS_NOSYMFOLLOW;
|
||||
|
||||
/* The ESP might contain a pre-boot random seed. Let's make this unaccessible to regular
|
||||
/* The ESP might contain a pre-boot random seed. Let's make this inaccessible to regular
|
||||
* userspace. ESP/XBOOTLDR is almost certainly VFAT, hence if we don't know assume it is. */
|
||||
if (!fstype || fstype_can_fmask_dmask(fstype))
|
||||
if (!strextend_with_separator(&options, ",", "fmask=0177,dmask=0077"))
|
||||
|
||||
@@ -1026,7 +1026,7 @@ int fw_nftables_add_masquerade(
|
||||
* Note that this doesn't protect against external sabotage such as a
|
||||
* 'while true; nft flush ruleset; done'. There is nothing that could be done about that short
|
||||
* of extending the kernel to allow tables to be owned by stystemd-networkd and making them
|
||||
* non-deleteable except by the 'owning process'. */
|
||||
* non-deletable except by the 'owning process'. */
|
||||
|
||||
r = fw_nftables_init_family(nfnl, af);
|
||||
if (r < 0)
|
||||
|
||||
@@ -12,7 +12,7 @@ static const char* const ipvlan_mode_table[_NETDEV_IPVLAN_MODE_MAX] = {
|
||||
DEFINE_STRING_TABLE_LOOKUP(ipvlan_mode, IPVlanMode);
|
||||
|
||||
static const char* const ipvlan_flags_table[_NETDEV_IPVLAN_FLAGS_MAX] = {
|
||||
[NETDEV_IPVLAN_FLAGS_BRIGDE] = "bridge",
|
||||
[NETDEV_IPVLAN_FLAGS_BRIDGE] = "bridge",
|
||||
[NETDEV_IPVLAN_FLAGS_PRIVATE] = "private",
|
||||
[NETDEV_IPVLAN_FLAGS_VEPA] = "vepa",
|
||||
};
|
||||
|
||||
@@ -14,7 +14,7 @@ typedef enum IPVlanMode {
|
||||
} IPVlanMode;
|
||||
|
||||
typedef enum IPVlanFlags {
|
||||
NETDEV_IPVLAN_FLAGS_BRIGDE,
|
||||
NETDEV_IPVLAN_FLAGS_BRIDGE,
|
||||
NETDEV_IPVLAN_FLAGS_PRIVATE = IPVLAN_F_PRIVATE,
|
||||
NETDEV_IPVLAN_FLAGS_VEPA = IPVLAN_F_VEPA,
|
||||
_NETDEV_IPVLAN_FLAGS_MAX,
|
||||
|
||||
@@ -361,7 +361,7 @@ static int fido2_is_cred_in_specific_token(
|
||||
/* According to CTAP 2.1 specification, to do pre-flight we need to set up option to false
|
||||
* with optionally pinUvAuthParam in assertion[1]. But for authenticator that doesn't support
|
||||
* user presence, once up option is present, the authenticator may return CTAP2_ERR_UNSUPPORTED_OPTION[2].
|
||||
* So we simplely omit the option in that case.
|
||||
* So we simply omit the option in that case.
|
||||
* Reference:
|
||||
* 1: https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#pre-flight
|
||||
* 2: https://fidoalliance.org/specs/fido-v2.0-ps-20190130/fido-client-to-authenticator-protocol-v2.0-ps-20190130.html#authenticatorGetAssertion (in step 5)
|
||||
|
||||
@@ -347,7 +347,7 @@ int specifier_user_name(char specifier, const void *data, const char *root, cons
|
||||
* to be able to run this in PID 1, where our user ID is 0, but where NSS lookups are not allowed.
|
||||
|
||||
* We don't use getusername_malloc() here, because we don't want to look at $USER, to remain
|
||||
* consistent with specifer_user_id() below.
|
||||
* consistent with specifier_user_id() below.
|
||||
*/
|
||||
|
||||
t = uid_to_name(uid);
|
||||
|
||||
+1
-1
@@ -361,7 +361,7 @@ const char* ci_environment(void) {
|
||||
if (getenv("SALSA_CI_IMAGES"))
|
||||
return (ans = "salsa-ci");
|
||||
|
||||
FOREACH_STRING(var, "CI", "CONTINOUS_INTEGRATION") {
|
||||
FOREACH_STRING(var, "CI", "CONTINUOUS_INTEGRATION") {
|
||||
/* Those vars are booleans according to Semaphore and Travis docs:
|
||||
* https://docs.travis-ci.com/user/environment-variables/#default-environment-variables
|
||||
* https://docs.semaphoreci.com/ci-cd-environment/environment-variables/#ci
|
||||
|
||||
@@ -819,7 +819,7 @@ static bool tpm2_supports_tpmt_sym_def(Tpm2Context *c, const TPMT_SYM_DEF *param
|
||||
assert(c);
|
||||
assert(parameters);
|
||||
|
||||
/* Unfortunately, TPMT_SYM_DEF and TPMT_SYM_DEF_OBEJECT are separately defined, even though they are
|
||||
/* Unfortunately, TPMT_SYM_DEF and TPMT_SYM_DEF_OBJECT are separately defined, even though they are
|
||||
* functionally identical. */
|
||||
TPMT_SYM_DEF_OBJECT object = {
|
||||
.algorithm = parameters->algorithm,
|
||||
|
||||
@@ -2489,7 +2489,7 @@ int user_record_self_changes_allowed(UserRecord *current, UserRecord *incoming)
|
||||
* `selfModifiableFields` fields are unset in their record.
|
||||
* 2) This user crafts a request to add the following to their record:
|
||||
* { "memberOf": ["wheel"], "selfModifiableFields": ["memberOf", "selfModifiableFields"] }
|
||||
* 3) We remove the `mebmerOf` and `selfModifiabileFields` fields from `incoming`
|
||||
* 3) We remove the `memberOf` and `selfModifiabileFields` fields from `incoming`
|
||||
* 4) `current` and `incoming` compare as equal, so we let the change happen
|
||||
* 5) the user has granted themselves administrator privileges
|
||||
*/
|
||||
|
||||
@@ -87,7 +87,7 @@ static SD_VARLINK_DEFINE_METHOD_FULL(
|
||||
SD_VARLINK_DEFINE_INPUT_BY_TYPE(verify, ImageVerify, SD_VARLINK_NULLABLE),
|
||||
SD_VARLINK_FIELD_COMMENT("If true, an existing image by the local name is deleted. Defaults to false."),
|
||||
SD_VARLINK_DEFINE_INPUT(force, SD_VARLINK_BOOL, SD_VARLINK_NULLABLE),
|
||||
SD_VARLINK_FIELD_COMMENT("Whether to make the image read-only after downloading. Defaults ot false."),
|
||||
SD_VARLINK_FIELD_COMMENT("Whether to make the image read-only after downloading. Defaults to false."),
|
||||
SD_VARLINK_DEFINE_INPUT(readOnly, SD_VARLINK_BOOL, SD_VARLINK_NULLABLE),
|
||||
SD_VARLINK_FIELD_COMMENT("Whether to keep a pristine copy of the download separate from the locally installed image. Defaults to false."),
|
||||
SD_VARLINK_DEFINE_INPUT(keepDownload, SD_VARLINK_BOOL, SD_VARLINK_NULLABLE),
|
||||
|
||||
Reference in New Issue
Block a user