summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-sbin-gentoo.patch')
-rw-r--r--sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-sbin-gentoo.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-sbin-gentoo.patch b/sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-sbin-gentoo.patch
new file mode 100644
index 0000000..d566be1
--- /dev/null
+++ b/sys-freebsd/freebsd-rescue/files/freebsd-rescue-5.4-sbin-gentoo.patch
@@ -0,0 +1,21 @@
+diff -ur sbin/savecore/savecore.c sbin-gentoo/savecore/savecore.c
+--- sbin/savecore/savecore.c 2005-02-26 02:21:50.000000000 +0100
++++ sbin-gentoo/savecore/savecore.c 2005-08-13 17:09:53.000000000 +0200
+@@ -95,7 +95,7 @@
+ static int checkfor, compress, clear, force, keep, verbose; /* flags */
+ static int nfound, nsaved, nerr; /* statistics */
+
+-extern FILE *zopen(const char *, const char *);
++extern FILE *gzopen(const char *, const char *);
+
+ static void
+ printheader(FILE *f, const struct kerneldumpheader *h, const char *device,
+@@ -387,7 +387,7 @@
+ oumask = umask(S_IRWXG|S_IRWXO); /* Restrict access to the core file.*/
+ if (compress) {
+ sprintf(buf, "vmcore.%d.gz", bounds);
+- fp = zopen(buf, "w");
++ fp = gzopen(buf, "w");
+ } else {
+ sprintf(buf, "vmcore.%d", bounds);
+ fp = fopen(buf, "w");