summaryrefslogtreecommitdiffstats
path: root/src/basic/fs-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-03-22 13:30:54 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-03-23 03:38:08 +0100
commitb3122369192e17029514cf3051d7d569678c8623 (patch)
tree96274698fd36dae9d10034517788a3813efdd17c /src/basic/fs-util.c
parentmeson: replace sh+find with an internal glob in the python helper (diff)
downloadsystemd-b3122369192e17029514cf3051d7d569678c8623.tar.xz
systemd-b3122369192e17029514cf3051d7d569678c8623.zip
fs-util: fix typos in comments
Diffstat (limited to '')
-rw-r--r--src/basic/fs-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/fs-util.c b/src/basic/fs-util.c
index 14aea54e26..9d9f265b0f 100644
--- a/src/basic/fs-util.c
+++ b/src/basic/fs-util.c
@@ -1088,7 +1088,7 @@ int openat_report_new(int dirfd, const char *pathname, int flags, mode_t mode, b
unsigned attempts = 7;
/* Just like openat(), but adds one thing: optionally returns whether we created the file anew or if
- * it already existed before. This is only relevant of O_CREAT is set without O_EXCL, and thus will
+ * it already existed before. This is only relevant if O_CREAT is set without O_EXCL, and thus will
* shortcut to openat() otherwise */
if (!FLAGS_SET(flags, O_CREAT) || FLAGS_SET(flags, O_EXCL) || !ret_newly_created)
@@ -1116,7 +1116,7 @@ int openat_report_new(int dirfd, const char *pathname, int flags, mode_t mode, b
return -errno;
/* Hmm, so now we got EEXIST? So it apparently exists now? If so, let's try to open again
- * without the two flags. But let's not spin forever, hnce put a limit on things */
+ * without the two flags. But let's not spin forever, hence put a limit on things */
if (--attempts == 0) /* Give up eventually, somebody is playing with us */
return -EEXIST;