mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
- Fix the generation of temporary file names by using mktemp
instead of PIDs - Bump PORTREVISION PR: ports/62568 Submitted by: maintainer
This commit is contained in:
parent
9dddbd1b39
commit
3e7ce790f9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=100497
@ -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/ \
|
||||
|
12
mail/mutt/files/patch-mktemp
Normal file
12
mail/mutt/files/patch-mktemp
Normal file
@ -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);
|
||||
}
|
||||
|
@ -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/ \
|
||||
|
12
mail/mutt14/files/patch-mktemp
Normal file
12
mail/mutt14/files/patch-mktemp
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user