about summary refs log tree commit diff
path: root/iconv/iconv_prog.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconv/iconv_prog.c')
-rw-r--r--iconv/iconv_prog.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c
index cd00bbfce7..3eda49a8db 100644
--- a/iconv/iconv_prog.c
+++ b/iconv/iconv_prog.c
@@ -162,7 +162,10 @@ main (int argc, char *argv[])
      specified with the `-o' parameter.  If we have no file given as
      the parameter process all from stdin.  */
   if (remaining == argc)
-    process_file (cd, stdin, output);
+    {
+      if (process_file (cd, stdin, output) != 0)
+	status = 1;
+    }
   else
     do
       {