From 75adfc3b17176339d98de1132ab1fba6e203389e Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 10 Apr 2023 08:43:28 +0900 Subject: [PATCH] chase: drop one redundant call of fstat() Now, 'st' is always synced with 'fd'. Hence, we can use stat_verify_directory(). --- 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 699ca6985f6..dcc2339944f 100644 --- a/src/basic/chase.c +++ b/src/basic/chase.c @@ -398,7 +398,7 @@ int chaseat(int dir_fd, const char *path, ChaseFlags flags, char **ret_path, int } if (flags & CHASE_PARENT) { - r = fd_verify_directory(fd); + r = stat_verify_directory(&st); if (r < 0) return r; } -- 2.47.3