summaryrefslogtreecommitdiff
path: root/c_src/cmd_fsck.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-04-29 13:33:29 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-04-29 13:33:29 -0400
commit5f46c4b522aaa554a1f18fdcb0076ca3100adcf5 (patch)
tree86d0aed6c8a1ab8a32bf4cefd3c1793b8cd8b15a /c_src/cmd_fsck.c
parent2b226902f9c26347be92927578aba5879f126741 (diff)
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 <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/cmd_fsck.c')
-rw-r--r--c_src/cmd_fsck.c2
1 files changed, 1 insertions, 1 deletions
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;
}