diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-29 13:33:29 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-29 13:33:29 -0400 |
commit | 5f46c4b522aaa554a1f18fdcb0076ca3100adcf5 (patch) | |
tree | 86d0aed6c8a1ab8a32bf4cefd3c1793b8cd8b15a /c_src/cmd_fsck.c | |
parent | 2b226902f9c26347be92927578aba5879f126741 (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.c | 2 |
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; } |