stat-util: introduce fd_inode_same

This commit is contained in:
Mike Yuan
2024-03-11 22:53:08 +08:00
parent 14300cdde4
commit 0cdb8df620
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -884,7 +884,7 @@ int pty_forward_new(
assert(f->input_fd >= 0);
same = inode_same_at(f->input_fd, NULL, f->output_fd, NULL, AT_EMPTY_PATH);
same = fd_inode_same(f->input_fd, f->output_fd);
if (same < 0)
return same;