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/volatile-root/volatile-root.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/volatile-root') diff --git a/src/volatile-root/volatile-root.c b/src/volatile-root/volatile-root.c index bf0b1decb4..27be7bdf56 100644 --- a/src/volatile-root/volatile-root.c +++ b/src/volatile-root/volatile-root.c @@ -4,7 +4,7 @@ #include "alloc-util.h" #include "blockdev-util.h" -#include "chase-symlinks.h" +#include "chase.h" #include "devnum-util.h" #include "escape.h" #include "main-func.h" @@ -21,7 +21,7 @@ static int make_volatile(const char *path) { assert(path); - r = chase_symlinks("/usr", path, CHASE_PREFIX_ROOT, &old_usr, NULL); + r = chase("/usr", path, CHASE_PREFIX_ROOT, &old_usr, NULL); if (r < 0) return log_error_errno(r, "/usr not available in old root: %m"); -- cgit v1.2.1