1 |
radhermit 14/01/23 00:16:23 |
2 |
|
3 |
Added: |
4 |
0001-Do-not-return-non-zero-exit-code-when-warnings-issue.patch |
5 |
Log: |
6 |
Don't return an error exit status when decompressing zero-padded files (bug #417657). |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 app-arch/pigz/files/0001-Do-not-return-non-zero-exit-code-when-warnings-issue.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/pigz/files/0001-Do-not-return-non-zero-exit-code-when-warnings-issue.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-arch/pigz/files/0001-Do-not-return-non-zero-exit-code-when-warnings-issue.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: 0001-Do-not-return-non-zero-exit-code-when-warnings-issue.patch |
17 |
=================================================================== |
18 |
From 0c967f989d2f1afe1829cf7cf2f6d36846a625ec Mon Sep 17 00:00:00 2001 |
19 |
From: Mark Adler <madler@××××××××××××××.edu> |
20 |
Date: Sun, 19 Jan 2014 23:21:58 -0800 |
21 |
Subject: [PATCH] Do not return non-zero exit code when warnings issued. |
22 |
|
23 |
--- |
24 |
pigz.c | 5 +---- |
25 |
1 file changed, 1 insertion(+), 4 deletions(-) |
26 |
|
27 |
diff --git a/pigz.c b/pigz.c |
28 |
index 4fefe40..4a16799 100644 |
29 |
--- a/pigz.c |
30 |
+++ b/pigz.c |
31 |
@@ -478,7 +478,6 @@ local struct { |
32 |
int procs; /* maximum number of compression threads (>= 1) */ |
33 |
int setdict; /* true to initialize dictionary in each thread */ |
34 |
size_t block; /* uncompressed input size per thread (>= 32K) */ |
35 |
- int warned; /* true if a warning has been given */ |
36 |
|
37 |
/* saved gzip/zip header data for decompression, testing, and listing */ |
38 |
time_t stamp; /* time stamp from gzip header */ |
39 |
@@ -519,7 +518,6 @@ local int complain(char *fmt, ...) |
40 |
va_end(ap); |
41 |
putc('\n', stderr); |
42 |
fflush(stderr); |
43 |
- g.warned = 1; |
44 |
} |
45 |
return 0; |
46 |
} |
47 |
@@ -3929,7 +3927,6 @@ int main(int argc, char **argv) |
48 |
/* initialize globals */ |
49 |
g.outf = NULL; |
50 |
g.first = 1; |
51 |
- g.warned = 0; |
52 |
g.hname = NULL; |
53 |
|
54 |
/* save pointer to program name for error messages */ |
55 |
@@ -4020,5 +4017,5 @@ int main(int argc, char **argv) |
56 |
/* done -- release resources, show log */ |
57 |
new_opts(); |
58 |
log_dump(); |
59 |
- return g.warned ? 2 : 0; |
60 |
+ return 0; |
61 |
} |
62 |
-- |
63 |
1.8.5.3 |