diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-02-09 15:26:15 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-02-09 15:26:15 +0000 |
commit | 9dddbd1b39b183fd61fab105952d4d8f8c9633ba (patch) | |
tree | 70352d6b894d301f6123752f1cd80441febbb884 | |
parent | - Fix build with KDE32 (diff) |
- Fix the generation of temporary file names by using mktemp
instead of PID
- Bump PORTREVISION
PR: ports/62569
Submitted by: maintainer
-rw-r--r-- | mail/mutt-devel/Makefile | 1 | ||||
-rw-r--r-- | mail/mutt-devel/files/patch-mktemp | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/mail/mutt-devel/Makefile b/mail/mutt-devel/Makefile index 18ffc9338912..8116ea8963af 100644 --- a/mail/mutt-devel/Makefile +++ b/mail/mutt-devel/Makefile @@ -75,6 +75,7 @@ PORTNAME= mutt-devel PORTVERSION= 1.5.6 +PORTREVISION= 1 CATEGORIES+= mail ipv6 .if defined(WITH_MUTT_NNTP) CATEGORIES+= news diff --git a/mail/mutt-devel/files/patch-mktemp b/mail/mutt-devel/files/patch-mktemp new file mode 100644 index 000000000000..d6c18b85c52d --- /dev/null +++ b/mail/mutt-devel/files/patch-mktemp @@ -0,0 +1,12 @@ +--- muttlib.c.orig Sun Feb 1 18:15:17 2004 ++++ muttlib.c Mon Feb 9 08:44:36 2004 +@@ -657,7 +657,8 @@ + + void _mutt_mktemp (char *s, const char *src, int line) + { +- 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); + dprint (1, (debugfile, "%s:%d: mutt_mktemp returns \"%s\".\n", src, line, s)); + unlink (s); + } |