summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-10-05 12:54:33 +0000
committerMike Frysinger <vapier@gentoo.org>2004-10-05 12:54:33 +0000
commit187cc2ff6580839ee7ecc62d0038602d1f221ad6 (patch)
treecb99e3914e97e666a78bc32d0b269bf3d6985af2 /sys-apps/ed/files
parentVersion bump #47788 and security #66355. (diff)
downloadhistorical-187cc2ff6580839ee7ecc62d0038602d1f221ad6.tar.gz
historical-187cc2ff6580839ee7ecc62d0038602d1f221ad6.tar.bz2
historical-187cc2ff6580839ee7ecc62d0038602d1f221ad6.zip
Security fix #66400
Diffstat (limited to 'sys-apps/ed/files')
-rw-r--r--sys-apps/ed/files/0.2-info-dir.patch15
-rw-r--r--sys-apps/ed/files/0.2-mkstemp.patch25
-rw-r--r--sys-apps/ed/files/digest-ed-0.2-r41
3 files changed, 41 insertions, 0 deletions
diff --git a/sys-apps/ed/files/0.2-info-dir.patch b/sys-apps/ed/files/0.2-info-dir.patch
new file mode 100644
index 000000000000..f99b00fd7626
--- /dev/null
+++ b/sys-apps/ed/files/0.2-info-dir.patch
@@ -0,0 +1,15 @@
+diff -r -C2 ed-0.2.orig/ed.texinfo ed-0.2/ed.texinfo
+*** ed-0.2.orig/ed.texinfo Sat Nov 19 07:38:01 1994
+--- ed-0.2/ed.texinfo Fri Aug 3 19:03:33 2001
+***************
+*** 8,11 ****
+--- 8,16 ----
+
+ @ifinfo
++
++ @direntry
++ * ed: (ed). line editor.
++ @end direntry
++
+ This file documents the @code{ed} command, which has the purpose of
+ editing text files.
diff --git a/sys-apps/ed/files/0.2-mkstemp.patch b/sys-apps/ed/files/0.2-mkstemp.patch
new file mode 100644
index 000000000000..6103a2d088dd
--- /dev/null
+++ b/sys-apps/ed/files/0.2-mkstemp.patch
@@ -0,0 +1,25 @@
+Submitted By: LFS Book <lfs-book@linuxfromscratch.org>
+Date: 2003-10-05
+Initial Package Version: 0.2
+Origin: Slackware Source
+Description: Use mkstemp instead of mktemp.
+diff -Naur ed-0.2/buf.c ed-0.2-2/buf.c
+--- ed-0.2/buf.c Sat Nov 19 04:37:59 1994
++++ ed-0.2-2/buf.c Tue May 28 18:38:23 2002
+@@ -200,13 +200,13 @@
+ int
+ open_sbuf ()
+ {
+- char *mktemp ();
+- int u;
++ int u, sfd;
+
+ isbinary = newline_added = 0;
+ u = umask(077);
+ strcpy (sfn, "/tmp/ed.XXXXXX");
+- if (mktemp (sfn) == NULL || (sfp = fopen (sfn, "w+")) == NULL)
++ sfd = mkstemp(sfn);
++ if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)
+ {
+ fprintf (stderr, "%s: %s\n", sfn, strerror (errno));
+ sprintf (errmsg, "Cannot open temp file");
diff --git a/sys-apps/ed/files/digest-ed-0.2-r4 b/sys-apps/ed/files/digest-ed-0.2-r4
new file mode 100644
index 000000000000..05d2a7c084db
--- /dev/null
+++ b/sys-apps/ed/files/digest-ed-0.2-r4
@@ -0,0 +1 @@
+MD5 ddd57463774cae9b50e70cd51221281b ed-0.2.tar.gz 185913