summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2020-09-14 15:32:37 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2020-09-14 15:32:37 +0200
commit69e3234db715d71ff98cf925ae4726fbeeac26fc (patch)
treed7a9f3066881d928a7f00dbef8b76ba6c640fa6c /src
parent415f8a5bfed4604e4a1bc275682d51af3ad3b611 (diff)
downloadsystemd-69e3234db715d71ff98cf925ae4726fbeeac26fc.tar.gz
tree-wide: fix typos found by codespell
Reported by Fossies.org
Diffstat (limited to 'src')
-rw-r--r--src/basic/copy.c2
-rw-r--r--src/core/execute.c6
-rw-r--r--src/core/mount-setup.c2
-rw-r--r--src/home/homework-luks.c2
-rw-r--r--src/network/networkd-dhcp4.c2
-rw-r--r--src/partition/repart.c2
-rw-r--r--src/resolve/resolved-dns-stub.c2
-rw-r--r--src/shared/offline-passwd.c2
-rw-r--r--src/shared/user-record.h2
-rw-r--r--src/tmpfiles/tmpfiles.c2
10 files changed, 12 insertions, 12 deletions
diff --git a/src/basic/copy.c b/src/basic/copy.c
index 6c1d045ea9..773f7b8067 100644
--- a/src/basic/copy.c
+++ b/src/basic/copy.c
@@ -432,7 +432,7 @@ static int hardlink_context_setup(
* bottleneck we can certainly place an in-memory hash table in front of this, but for the beginning,
* let's keep things simple, and just use the disk as lookup table for inodes.
*
- * Note that this should have zero performace impact as long as .n_link of all files copied remains
+ * Note that this should have zero performance impact as long as .n_link of all files copied remains
* <= 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
diff --git a/src/core/execute.c b/src/core/execute.c
index 694033e82c..50294a506f 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -2484,7 +2484,7 @@ static int acquire_credentials(
if (dfd < 0)
return -errno;
- /* First we use the literally specified credentials. Note that they might be overriden again below,
+ /* First we use the literally specified credentials. Note that they might be overridden again below,
* and thus act as a "default" if the same credential is specified multiple times */
HASHMAP_FOREACH(sc, context->set_credentials) {
size_t add;
@@ -2804,7 +2804,7 @@ static int setup_credentials(
* Yes it's nasty playing games with /dev/ and /dev/shm/ like this, since it does not exist
* for this purpose, but there are few other candidates that work equally well for us, and
* given that the we do this in a privately namespaced short-lived single-threaded process
- * that noone else sees this should be OK to do.*/
+ * that no one else sees this should be OK to do.*/
if (mount(NULL, "/dev", NULL, MS_SLAVE|MS_REC, NULL) < 0) /* Turn off propagation from our namespace to host */
goto child_fail;
@@ -4340,7 +4340,7 @@ static int exec_child(
* we'll try not to call PR_SET_SECUREBITS unless necessary. Setting securebits requires
* CAP_SETPCAP. */
if (prctl(PR_GET_SECUREBITS) != secure_bits) {
- /* CAP_SETPCAP is required to set securebits. This capabilitiy is raised into the
+ /* CAP_SETPCAP is required to set securebits. This capability is raised into the
* effective set here.
* The effective set is overwritten during execve with the following values:
* - ambient set (for non-root processes)
diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c
index cc43bcdc7b..7c177839b3 100644
--- a/src/core/mount-setup.c
+++ b/src/core/mount-setup.c
@@ -542,7 +542,7 @@ int mount_setup(bool loaded_policy, bool leave_propagation) {
/* Also create /run/systemd/inaccessible nodes, so that we always have something to mount
* inaccessible nodes from. If we run in a container the host might have created these for us already
- * in /run/host/inaccessible/. Use those if we can, since tht way we likely get access to block/char
+ * in /run/host/inaccessible/. Use those if we can, since that way we likely get access to block/char
* device nodes that are inaccessible, and if userns is used to nodes that are on mounts owned by a
* userns outside the container and thus nicely read-only and not remountable. */
if (access("/run/host/inaccessible/", F_OK) < 0) {
diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c
index b263d75827..b9e696f0ac 100644
--- a/src/home/homework-luks.c
+++ b/src/home/homework-luks.c
@@ -2183,7 +2183,7 @@ int home_create_luks(
if (disk_uuid_path)
(void) ioctl(image_fd, BLKRRPART, 0);
else {
- /* If we operate on a file, sync the contaning directory too. */
+ /* If we operate on a file, sync the containing directory too. */
r = fsync_directory_of_file(image_fd);
if (r < 0) {
log_error_errno(r, "Failed to synchronize directory of image file to disk: %m");
diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c
index 167b86d0ba..eddeb0d5ef 100644
--- a/src/network/networkd-dhcp4.c
+++ b/src/network/networkd-dhcp4.c
@@ -704,7 +704,7 @@ static int dhcp4_address_ready_callback(Address *address) {
r = dhcp4_start_acd(link);
if (r < 0)
- return log_link_error_errno(link, r, "Failed to start IPv4ACD for DHCP4 adddress: %m");
+ return log_link_error_errno(link, r, "Failed to start IPv4ACD for DHCP4 address: %m");
dhcp4_check_ready(link);
return 0;
diff --git a/src/partition/repart.c b/src/partition/repart.c
index a7803c878c..28c9de7b2b 100644
--- a/src/partition/repart.c
+++ b/src/partition/repart.c
@@ -66,7 +66,7 @@
/* Hard lower limit for new partition sizes */
#define HARD_MIN_SIZE 4096
-/* libfdisk takes off sightly more than 1M of the disk size when creating a GPT disk label */
+/* libfdisk takes off slightly more than 1M of the disk size when creating a GPT disk label */
#define GPT_METADATA_SIZE (1044*1024)
/* LUKS2 takes off 16M of the partition size with its metadata by default */
diff --git a/src/resolve/resolved-dns-stub.c b/src/resolve/resolved-dns-stub.c
index 1d23a199e9..5c6da94b33 100644
--- a/src/resolve/resolved-dns-stub.c
+++ b/src/resolve/resolved-dns-stub.c
@@ -648,7 +648,7 @@ static int manager_dns_stub_fd_extra(Manager *m, DnsStubListenerExtra *l, int ty
if (r < 0)
goto fail;
- /* Do not set IP_TTL for extra DNS stub listners, as the address may not be local and in that case
+ /* Do not set IP_TTL for extra DNS stub listeners, as the address may not be local and in that case
* people may want ttl > 1. */
r = socket_set_freebind(fd, l->family, true);
diff --git a/src/shared/offline-passwd.c b/src/shared/offline-passwd.c
index 26a1b9c537..2d14a38dfe 100644
--- a/src/shared/offline-passwd.c
+++ b/src/shared/offline-passwd.c
@@ -36,7 +36,7 @@ static int populate_uid_cache(const char *root, Hashmap **ret) {
if (!cache)
return -ENOMEM;
- /* The directory list is harcoded here: /etc is the standard, and rpm-ostree uses /usr/lib. This
+ /* The directory list is hardcoded here: /etc is the standard, and rpm-ostree uses /usr/lib. This
* could be made configurable, but I don't see the point right now. */
const char *fname;
diff --git a/src/shared/user-record.h b/src/shared/user-record.h
index bbcb2201e8..357c246ea5 100644
--- a/src/shared/user-record.h
+++ b/src/shared/user-record.h
@@ -210,7 +210,7 @@ typedef struct RecoveryKey {
/* The type of recovery key, must be "modhex64" right now */
char *type;
- /* A UNIX pasword hash of the normalized form of modhex64 */
+ /* A UNIX password hash of the normalized form of modhex64 */
char *hashed_password;
} RecoveryKey;
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 47da74c299..b9b37008b1 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -528,7 +528,7 @@ static int dir_cleanup(
continue;
/* If statx() is supported, use it. It's preferable over fstatat() since it tells us
- * explicitly where we are looking at a mount point, for free as side information. Determing
+ * explicitly where we are looking at a mount point, for free as side information. Determining
* the same information without statx() is hard, see the complexity of path_is_mount_point(),
* and also much slower as it requires a number of syscalls instead of just one. Hence, when
* we have modern statx() we use it instead of fstat() and do proper mount point checks,