fix fsck return code for in-kernel fsck

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-05-02 14:33:20 -04:00
parent 4013ed4dfb
commit a4babd1d64

View File

@ -86,8 +86,8 @@ static int splice_fd_to_stdinout(int fd)
stdin_closed = true; stdin_closed = true;
} }
close(fd); /* the return code from fsck itself is returned via close() */
return 0; return close(fd);
} }
static int fsck_online(const char *dev_path, const char *opt_str) static int fsck_online(const char *dev_path, const char *opt_str)