summaryrefslogtreecommitdiff
path: root/sys-freebsd/freebsd-sbin/files/freebsd-sbin-10.0-zlib.patch
blob: c0a2bf923c23d1f1250a97129d91c1474bfa3626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c
index bdbf7e3..a4c67ec 100644
--- a/sbin/savecore/savecore.c
+++ b/sbin/savecore/savecore.c
@@ -92,7 +92,7 @@ static int checkfor, compress, clear, force, keep, verbose;	/* flags */
 static int nfound, nsaved, nerr;			/* statistics */
 static int maxdumps;
 
-extern FILE *zopen(const char *, const char *);
+extern FILE *gzopen(const char *, const char *);
 
 static sig_atomic_t got_siginfo;
 static void infohandler(int);
@@ -626,7 +626,7 @@ DoFile(const char *savedir, const char *device)
 	if (compress) {
 		snprintf(corename, sizeof(corename), "%s.%d.gz",
 		    istextdump ? "textdump.tar" : "vmcore", bounds);
-		fp = zopen(corename, "w");
+		fp = gzopen(corename, "w");
 	} else {
 		snprintf(corename, sizeof(corename), "%s.%d",
 		    istextdump ? "textdump.tar" : "vmcore", bounds);