From 5f46c4b522aaa554a1f18fdcb0076ca3100adcf5 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 29 Apr 2025 13:33:29 -0400 Subject: Don't use xclose() in splice_fd_to_stdinout() The splice fd might have been closed, and a double-close here shouldn't be a concern because we're not doing any interesting multithreaded things and it's local to this function. Signed-off-by: Kent Overstreet --- c_src/cmd_fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_src/cmd_fsck.c b/c_src/cmd_fsck.c index e18f89c5..13cec103 100644 --- a/c_src/cmd_fsck.c +++ b/c_src/cmd_fsck.c @@ -86,7 +86,7 @@ static int splice_fd_to_stdinout(int fd) stdin_closed = true; } - xclose(fd); + close(fd); return 0; } -- cgit v1.2.3