]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
path-util: fix typo in comment
authorGaël PORTAY <gael.portay@rtone.fr>
Mon, 5 Jun 2023 04:42:02 +0000 (06:42 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 5 Jun 2023 05:21:43 +0000 (14:21 +0900)
The comment makes a reference to the function fchmod_path() but this
function does not exist in the source tree.

However, the function fchmod_opath() exists; it was introduced by the
commit 4dfaa528d451aa7926be4f1b4cf8d0ffe338421d.

As the comment tells, the function futimens_opath() introduced by the
commit f25bff5eaf6881717e873f27c26f2e8264517c16 is similar to the
function fchmod_opath(); therefore, it should reference it.

This fixes the typo in the comment by referencing the proper function
fchmod_opath().

src/basic/fs-util.c

index f5d2914be21612d1b876cccbf7074ec822913cf3..78e92609c6b9a97fa6e6f75af172043b8d335569 100644 (file)
@@ -304,7 +304,7 @@ int fchmod_opath(int fd, mode_t m) {
 }
 
 int futimens_opath(int fd, const struct timespec ts[2]) {
-        /* Similar to fchmod_path() but for futimens() */
+        /* Similar to fchmod_opath() but for futimens() */
 
         if (utimensat(AT_FDCWD, FORMAT_PROC_FD_PATH(fd), ts, 0) < 0) {
                 if (errno != ENOENT)