projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de68bf7
)
chase: use stat_inode_same() at one more place
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 10 Apr 2023 00:45:21 +0000
(09:45 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 10 Apr 2023 00:45:21 +0000
(09:45 +0900)
src/basic/chase.c
patch
|
blob
|
history
diff --git
a/src/basic/chase.c
b/src/basic/chase.c
index dcc2339944f77988d6871144d0f31111166f961d..b8441aa28bbebf983f8aeefe7b4d2b509744ca78 100644
(file)
--- 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 (st
at_inode_same(&st_parent, &st)
)
continue;
r = path_extract_directory(done, &parent);