From: Lennart Poettering Date: Tue, 12 Apr 2022 13:43:39 +0000 (+0200) Subject: chase-symlinks: add comment for opaque argument X-Git-Tag: v251-rc2~134^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=860f4c6aa64020d9705b017a90d75eb4cac5f800;p=thirdparty%2Fsystemd.git chase-symlinks: add comment for opaque argument --- diff --git a/src/basic/chase-symlinks.c b/src/basic/chase-symlinks.c index eff5785a29c..1fca871495a 100644 --- a/src/basic/chase-symlinks.c +++ b/src/basic/chase-symlinks.c @@ -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)