aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--iconv/iconvconfig.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5fac726d1c..bb4c383b2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2001-07-25 Ulrich Drepper <drepper@redhat.com>
+ * iconv/iconvconfig.c (main): Don't write an output file if we
+ have seen an error.
+
* iconv/Makefile (install-bin): Add iconvconfig.
2001-07-25 Jakub Jelinek <jakub@redhat.com>
diff --git a/iconv/iconvconfig.c b/iconv/iconvconfig.c
index e0811d422a..379a3bf945 100644
--- a/iconv/iconvconfig.c
+++ b/iconv/iconvconfig.c
@@ -301,8 +301,11 @@ main (int argc, char *argv[])
about them. */
generate_name_info ();
- /* Write the output file. */
- status = write_output ();
+ /* Write the output file, but only if we haven't seen any error. */
+ if (status == 0)
+ status = write_output ();
+ else
+ fputs ("No output written!\n", stderr);
return status;
}