From 3e7ce790f9405c59b0fda99eb3c034a47430c769 Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Mon, 9 Feb 2004 15:28:15 +0000 Subject: [PATCH] - Fix the generation of temporary file names by using mktemp instead of PIDs - Bump PORTREVISION PR: ports/62568 Submitted by: maintainer --- mail/mutt/Makefile | 2 +- mail/mutt/files/patch-mktemp | 12 ++++++++++++ mail/mutt14/Makefile | 2 +- mail/mutt14/files/patch-mktemp | 12 ++++++++++++ 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 mail/mutt/files/patch-mktemp create mode 100644 mail/mutt14/files/patch-mktemp diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile index 27edaf144163..739b8ff8fc92 100644 --- a/mail/mutt/Makefile +++ b/mail/mutt/Makefile @@ -8,7 +8,7 @@ PORTNAME= mutt PORTVERSION= 1.4.1 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES+= mail ipv6 MASTER_SITES= ftp://ftp.mutt.org/mutt/ \ ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ \ diff --git a/mail/mutt/files/patch-mktemp b/mail/mutt/files/patch-mktemp new file mode 100644 index 000000000000..56bc36e7cd91 --- /dev/null +++ b/mail/mutt/files/patch-mktemp @@ -0,0 +1,12 @@ +--- muttlib.c.orig Mon Feb 9 08:25:28 2004 ++++ muttlib.c Mon Feb 9 08:32:46 2004 +@@ -656,7 +656,8 @@ + + void mutt_mktemp (char *s) + { +- snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d", NONULL (Tempdir), NONULL(Hostname), (int) getpid (), Counter++); ++ snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-XXXXXXXX", NONULL(Tempdir), NONULL(Hostname)); ++ mktemp (s); + unlink (s); + } + diff --git a/mail/mutt14/Makefile b/mail/mutt14/Makefile index 27edaf144163..739b8ff8fc92 100644 --- a/mail/mutt14/Makefile +++ b/mail/mutt14/Makefile @@ -8,7 +8,7 @@ PORTNAME= mutt PORTVERSION= 1.4.1 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES+= mail ipv6 MASTER_SITES= ftp://ftp.mutt.org/mutt/ \ ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ \ diff --git a/mail/mutt14/files/patch-mktemp b/mail/mutt14/files/patch-mktemp new file mode 100644 index 000000000000..56bc36e7cd91 --- /dev/null +++ b/mail/mutt14/files/patch-mktemp @@ -0,0 +1,12 @@ +--- muttlib.c.orig Mon Feb 9 08:25:28 2004 ++++ muttlib.c Mon Feb 9 08:32:46 2004 +@@ -656,7 +656,8 @@ + + void mutt_mktemp (char *s) + { +- snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d", NONULL (Tempdir), NONULL(Hostname), (int) getpid (), Counter++); ++ snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-XXXXXXXX", NONULL(Tempdir), NONULL(Hostname)); ++ mktemp (s); + unlink (s); + } +