]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
chase: use streq() not path_equal() to compare filenames
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Jan 2025 11:56:57 +0000 (12:56 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Jan 2025 10:31:55 +0000 (11:31 +0100)
src/basic/chase.c

index b1e27b48c131753cf0c5245e94d59370d54616dc..a0edb7e11c857f50aee05f631cc1ca0dd2fa1364 100644 (file)
@@ -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;