summaryrefslogtreecommitdiff
path: root/mail/mutt/files
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-02-09 15:28:15 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-02-09 15:28:15 +0000
commit3e7ce790f9405c59b0fda99eb3c034a47430c769 (patch)
tree7df7fc2a08f8a34fdd50d75fbdaeb10cb06de76b /mail/mutt/files
parent- Fix the generation of temporary file names by using mktemp (diff)
- Fix the generation of temporary file names by using mktemp
instead of PIDs - Bump PORTREVISION PR: ports/62568 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=100497
Diffstat (limited to 'mail/mutt/files')
-rw-r--r--mail/mutt/files/patch-mktemp12
1 files changed, 12 insertions, 0 deletions
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);
+ }
+