]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fs-util: fix typos in comments
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Mar 2022 12:30:54 +0000 (13:30 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 23 Mar 2022 02:38:08 +0000 (11:38 +0900)
src/basic/fs-util.c

index 14aea54e260fcc17211bf4c8651f6860fab5c587..9d9f265b0f12c7a3db7c932552c5a898988981ea 100644 (file)
@@ -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;