From 3ce2cee0a5518224dc3ba1ad2409bf56e9b3c82e Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 3 Aug 1987 18:00:22 +0000 Subject: [PATCH] Added a break, so that an error message is only given once --- util/arch/archiver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/arch/archiver.c b/util/arch/archiver.c index 21d788b89..92fc31ed2 100644 --- a/util/arch/archiver.c +++ b/util/arch/archiver.c @@ -430,8 +430,10 @@ char *mess; x = even(x); } else status.st_size -= x; - if (read(src_fd, io_buffer, read_chars) != read_chars) + if (read(src_fd, io_buffer, read_chars) != read_chars) { error(FALSE,"%s seems to shrink\n", name); + break; + } mwrite(fd, io_buffer, x); } -- 2.34.1