summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-10 17:01:04 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-10 17:01:04 +0000
commit24272449307293c38a2bcb599517f716e45daebe (patch)
treeda799c61c593871b3d00241b0c66520cdbc63685 /sys-apps/ed/files
parentManifest fix (Manifest recommit) (diff)
downloadgentoo-2-24272449307293c38a2bcb599517f716e45daebe.tar.gz
gentoo-2-24272449307293c38a2bcb599517f716e45daebe.tar.bz2
gentoo-2-24272449307293c38a2bcb599517f716e45daebe.zip
Really fix the mktemp patch #77348.
Diffstat (limited to 'sys-apps/ed/files')
-rw-r--r--sys-apps/ed/files/0.2-mkstemp.patch2
-rw-r--r--sys-apps/ed/files/digest-ed-0.2-r6 (renamed from sys-apps/ed/files/digest-ed-0.2-r5)0
2 files changed, 1 insertions, 1 deletions
diff --git a/sys-apps/ed/files/0.2-mkstemp.patch b/sys-apps/ed/files/0.2-mkstemp.patch
index 4223f85a4fc2..5fe98b81049a 100644
--- a/sys-apps/ed/files/0.2-mkstemp.patch
+++ b/sys-apps/ed/files/0.2-mkstemp.patch
@@ -26,7 +26,7 @@ diff -Naur ed-0.2/buf.c ed-0.2-2/buf.c
strcpy (sfn, "/tmp/ed.XXXXXX");
- if (mktemp (sfn) == NULL || (sfp = fopen (sfn, "w+")) == NULL)
+ sfd = mkstemp(sfn);
-+ if ((sfd == -1) || (sfp = fdopen (sfn, "w+")) == NULL)
++ if ((sfd == -1) || (sfp = fdopen (sfd, "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-r5 b/sys-apps/ed/files/digest-ed-0.2-r6
index 05d2a7c084db..05d2a7c084db 100644
--- a/sys-apps/ed/files/digest-ed-0.2-r5
+++ b/sys-apps/ed/files/digest-ed-0.2-r6