summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c_src/cmd_fsck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c_src/cmd_fsck.c b/c_src/cmd_fsck.c
index 13cec103..e0ae8640 100644
--- a/c_src/cmd_fsck.c
+++ b/c_src/cmd_fsck.c
@@ -86,8 +86,8 @@ static int splice_fd_to_stdinout(int fd)
stdin_closed = true;
}
- close(fd);
- return 0;
+ /* the return code from fsck itself is returned via close() */
+ return close(fd);
}
static int fsck_online(const char *dev_path, const char *opt_str)