From b0afd29f7d23f518ed11ded6108a775880ef6379 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 13 Jan 2025 12:56:57 +0100 Subject: [PATCH] chase: use streq() not path_equal() to compare filenames --- src/basic/chase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/chase.c b/src/basic/chase.c index b1e27b48c13..a0edb7e11c8 100644 --- a/src/basic/chase.c +++ b/src/basic/chase.c @@ -267,7 +267,7 @@ int chaseat(int dir_fd, const char *path, ChaseFlags flags, char **ret_path, int return -ENOMEM; /* Two dots? Then chop off the last bit of what we already found out. */ - if (path_equal(first, "..")) { + if (streq(first, "..")) { _cleanup_free_ char *parent = NULL; _cleanup_close_ int fd_parent = -EBADF; struct stat st_parent; -- 2.47.3