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/test/test-copy.c | |
parent | 0da2780c8a001e82695b261007966308be331bf3 (diff) | |
download | systemd-f461a28da70320473c7466bcdc34fa601da0877b.tar.gz |
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/test/test-copy.c')
-rw-r--r-- | src/test/test-copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-copy.c b/src/test/test-copy.c index d3f37ea9e3..4cd83dbeea 100644 --- a/src/test/test-copy.c +++ b/src/test/test-copy.c @@ -4,7 +4,7 @@ #include <unistd.h> #include "alloc-util.h" -#include "chase-symlinks.h" +#include "chase.h" #include "copy.h" #include "fd-util.h" #include "fileio.h" @@ -224,7 +224,7 @@ TEST(copy_tree) { assert_se(f = strjoin(original_dir, *p)); assert_se(l = strjoin(copy_dir, *ll)); - assert_se(chase_symlinks(l, NULL, 0, &target, NULL) == 1); + assert_se(chase(l, NULL, 0, &target, NULL) == 1); assert_se(path_equal(f, target)); } |