diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-03-21 21:17:22 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-03-24 13:43:51 +0100 |
commit | f461a28da70320473c7466bcdc34fa601da0877b (patch) | |
tree | 8cb409e11d95129f208468588d2fc670e9d81bd4 /src/delta | |
parent | Merge pull request #26785 from keszybz/udev-distcheck (diff) | |
download | systemd-f461a28da70320473c7466bcdc34fa601da0877b.tar.xz systemd-f461a28da70320473c7466bcdc34fa601da0877b.zip |
chase-symlinks: Rename chase_symlinks() to chase()
Chasing symlinks is a core function that's used in a lot of places
so it deservers a less verbose names so let's rename it to chase()
and chaseat().
We also slightly change the pattern used for the chaseat() helpers
so we get chase_and_openat() and similar.
Diffstat (limited to 'src/delta')
-rw-r--r-- | src/delta/delta.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c index db6e957fc9..eee2111aba 100644 --- a/src/delta/delta.c +++ b/src/delta/delta.c @@ -7,7 +7,7 @@ #include "alloc-util.h" #include "build.h" -#include "chase-symlinks.h" +#include "chase.h" #include "dirent-util.h" #include "fd-util.h" #include "fs-util.h" @@ -75,11 +75,11 @@ static int equivalent(const char *a, const char *b) { _cleanup_free_ char *x = NULL, *y = NULL; int r; - r = chase_symlinks(a, NULL, CHASE_TRAIL_SLASH, &x, NULL); + r = chase(a, NULL, CHASE_TRAIL_SLASH, &x, NULL); if (r < 0) return r; - r = chase_symlinks(b, NULL, CHASE_TRAIL_SLASH, &y, NULL); + r = chase(b, NULL, CHASE_TRAIL_SLASH, &y, NULL); if (r < 0) return r; @@ -376,7 +376,7 @@ static int should_skip_path(const char *prefix, const char *suffix) { if (!dirname) return -ENOMEM; - if (chase_symlinks(dirname, NULL, 0, &target, NULL) < 0) + if (chase(dirname, NULL, 0, &target, NULL) < 0) return false; NULSTR_FOREACH(p, prefixes) { |