chase: drop one redundant call of fstat()

Now, 'st' is always synced with 'fd'. Hence, we can use
stat_verify_directory().
This commit is contained in:
Yu Watanabe
2023-04-10 08:43:31 +09:00
parent ad66c7f1d3
commit 75adfc3b17
+1 -1
View File
@@ -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;
}