From f461a28da70320473c7466bcdc34fa601da0877b Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 21 Mar 2023 21:17:22 +0100 Subject: 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. --- src/delta/delta.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/delta') 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) { -- cgit v1.2.3