Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- disk-utils/mkfs.minix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c index e80d1d6..3a1617b 100644 --- a/disk-utils/mkfs.minix.c +++ b/disk-utils/mkfs.minix.c @@ -804,7 +804,8 @@ int main(int argc, char ** argv) { mark_good_blocks(); write_tables(); - close(DEV); + if (close_fd(DEV) != 0) + err(MKFS_EX_ERROR, _("write failed")); return MKFS_EX_OK; } -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html