Gentoo Archives: gentoo-commits

From: Yuta SATOH <nigoro.gentoo@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-bsd:master commit in: sys-freebsd/freebsd-sbin/files/
Date: Fri, 30 Aug 2013 18:30:34
Message-Id: 1377876497.f2203497aaf871f4834e67e78397b86b91d30ddf.yuta_satoh@gentoo
1 commit: f2203497aaf871f4834e67e78397b86b91d30ddf
2 Author: Yuta SATOH <nigoro <AT> gentoo <DOT> gr <DOT> jp>
3 AuthorDate: Fri Aug 30 15:28:17 2013 +0000
4 Commit: Yuta SATOH <nigoro.gentoo <AT> 0x100 <DOT> com>
5 CommitDate: Fri Aug 30 15:28:17 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-bsd.git;a=commit;h=f2203497
7
8 freebsd-sbin-9999_p255023: added freebsd-sbin-9999-zlib.patch
9
10 ---
11 .../files/freebsd-sbin-9999-zlib.patch | 22 ++++++++++++++++++++++
12 1 file changed, 22 insertions(+)
13
14 diff --git a/sys-freebsd/freebsd-sbin/files/freebsd-sbin-9999-zlib.patch b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-9999-zlib.patch
15 new file mode 100644
16 index 0000000..c0a2bf9
17 --- /dev/null
18 +++ b/sys-freebsd/freebsd-sbin/files/freebsd-sbin-9999-zlib.patch
19 @@ -0,0 +1,22 @@
20 +diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
21 +index bdbf7e3..a4c67ec 100644
22 +--- a/sbin/savecore/savecore.c
23 ++++ b/sbin/savecore/savecore.c
24 +@@ -92,7 +92,7 @@ static int checkfor, compress, clear, force, keep, verbose; /* flags */
25 + static int nfound, nsaved, nerr; /* statistics */
26 + static int maxdumps;
27 +
28 +-extern FILE *zopen(const char *, const char *);
29 ++extern FILE *gzopen(const char *, const char *);
30 +
31 + static sig_atomic_t got_siginfo;
32 + static void infohandler(int);
33 +@@ -626,7 +626,7 @@ DoFile(const char *savedir, const char *device)
34 + if (compress) {
35 + snprintf(corename, sizeof(corename), "%s.%d.gz",
36 + istextdump ? "textdump.tar" : "vmcore", bounds);
37 +- fp = zopen(corename, "w");
38 ++ fp = gzopen(corename, "w");
39 + } else {
40 + snprintf(corename, sizeof(corename), "%s.%d",
41 + istextdump ? "textdump.tar" : "vmcore", bounds);