Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- disk-utils/partx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/disk-utils/partx.c b/disk-utils/partx.c index 49ef1dc..b93ddf3 100644 --- a/disk-utils/partx.c +++ b/disk-utils/partx.c @@ -987,6 +987,8 @@ int main(int argc, char **argv) if (loopdev) loopcxt_deinit(&lc); - close(fd); + if (close_fd(fd) != 0) + err(EXIT_FAILURE, _("write failed")); + return rc ? EXIT_FAILURE : EXIT_SUCCESS; } -- 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