From: Yu Watanabe Date: Mon, 10 Apr 2023 00:45:21 +0000 (+0900) Subject: chase: use stat_inode_same() at one more place X-Git-Tag: v254-rc1~776^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4443e3003a8b01a87c773ff3e1638057344fc46f;p=thirdparty%2Fsystemd.git chase: use stat_inode_same() at one more place --- diff --git a/src/basic/chase.c b/src/basic/chase.c index dcc2339944f..b8441aa28bb 100644 --- a/src/basic/chase.c +++ b/src/basic/chase.c @@ -264,7 +264,7 @@ int chaseat(int dir_fd, const char *path, ChaseFlags flags, char **ret_path, int /* If we opened the same directory, that means we're at the host root directory, so * going up won't change anything. */ - if (st_parent.st_dev == st.st_dev && st_parent.st_ino == st.st_ino) + if (stat_inode_same(&st_parent, &st)) continue; r = path_extract_directory(done, &parent);