From c3d877a0733c19be7df723ed37c042980c89d98e Mon Sep 17 00:00:00 2001
From: Tim Harder <radhermit@gmail.com>
Date: Fri, 8 Nov 2013 15:20:08 -0800
Subject: [PATCH] Don't return nonzero exit status when trailing junk is
 encountered.

This mirrors the behavior of gzip.
---
 pigz.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pigz.c b/pigz.c
index df25cf3..ce0bff0 100644
--- a/pigz.c
+++ b/pigz.c
@@ -3031,7 +3031,7 @@ local void infchk(void)
     else if (was > 1 && get_header(0) != -5)
         complain("entries after the first in %s were ignored", g.inf);
     else if ((was == 0 && ret != -1) || (was == 1 && GET() != EOF))
-        complain("%s OK, has trailing junk which was ignored", g.inf);
+        fprintf(stderr, "%s OK, has trailing junk which was ignored\n", g.inf);
 }
 
 /* --- decompress Unix compress (LZW) input --- */
-- 
1.8.5.2