From: Lennart Poettering Date: Mon, 13 Jan 2025 11:56:57 +0000 (+0100) Subject: chase: use streq() not path_equal() to compare filenames X-Git-Tag: v258-rc1~1548^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0afd29f7d23f518ed11ded6108a775880ef6379;p=thirdparty%2Fsystemd.git chase: use streq() not path_equal() to compare filenames --- 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;