summaryrefslogtreecommitdiff
path: root/c_src/cmd_fsck.c
diff options
context:
space:
mode:
Diffstat (limited to 'c_src/cmd_fsck.c')
-rw-r--r--c_src/cmd_fsck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/c_src/cmd_fsck.c b/c_src/cmd_fsck.c
index 06f131bc..aa81fa11 100644
--- a/c_src/cmd_fsck.c
+++ b/c_src/cmd_fsck.c
@@ -86,7 +86,8 @@ static int splice_fd_to_stdinout(int fd)
stdin_closed = true;
}
- return close(fd);
+ xclose(fd);
+ return 0;
}
static int fsck_online(const char *dev_path, const char *opt_str)