summaryrefslogtreecommitdiff
blob: 42165c4249ed7eee4ad2561e8647ffbdfdd8ab01 (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 13c0d43..1f258f3 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);