]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
chase-symlinks: add comment for opaque argument
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2022 13:43:39 +0000 (15:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2022 15:10:06 +0000 (17:10 +0200)
src/basic/chase-symlinks.c

index eff5785a29c0292fcf4d8d0acc94f58162a60c9d..1fca871495a839ea07af0c629a62991f1edf73f7 100644 (file)
@@ -212,7 +212,7 @@ int chase_symlinks(
                 struct stat st;
                 const char *e;
 
-                r = path_find_first_component(&todo, true, &e);
+                r = path_find_first_component(&todo, /* accept_dot_dot= */ true, &e);
                 if (r < 0)
                         return r;
                 if (r == 0) { /* We reached the end. */
@@ -387,7 +387,7 @@ chased_one:
                 const char *e;
 
                 /* todo may contain slashes at the beginning. */
-                r = path_find_first_component(&todo, true, &e);
+                r = path_find_first_component(&todo, /* accept_dot_dot= */ true, &e);
                 if (r < 0)
                         return r;
                 if (r == 0)