diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2001-05-10 20:13:56 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2001-05-10 20:13:56 +0000 |
commit | a679ab2be74ee228238ab741299e9fb8cd251026 (patch) | |
tree | 3ab971b51c350815a9f71de3083205a54971a9f5 /lang/tcl84 | |
parent | 0fb49932b50ab3a0d944bca117070c658bb5e07d (diff) | |
download | ports-a679ab2be74ee228238ab741299e9fb8cd251026.tar.gz ports-a679ab2be74ee228238ab741299e9fb8cd251026.zip |
- Fix creation of tmpfiles, previous version cause tcl to fail.
PR: roam@FreeBSD.org
Submitted by: Jaeho Kang <jhkang@isofree.net>, roam@FreeBSD.org
Notes
Notes:
svn path=/head/; revision=42507
Diffstat (limited to 'lang/tcl84')
-rw-r--r-- | lang/tcl84/Makefile | 2 | ||||
-rw-r--r-- | lang/tcl84/files/patch-tmpnam | 10 |
2 files changed, 5 insertions, 7 deletions
diff --git a/lang/tcl84/Makefile b/lang/tcl84/Makefile index 9d4b733635ff..3e2e705f49e4 100644 --- a/lang/tcl84/Makefile +++ b/lang/tcl84/Makefile @@ -7,7 +7,7 @@ PORTNAME= tcl PORTVERSION= 8.3.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang tcl83 MASTER_SITES= ${MASTER_SITE_TCLTK} MASTER_SITE_SUBDIR= tcl8_3 diff --git a/lang/tcl84/files/patch-tmpnam b/lang/tcl84/files/patch-tmpnam index ef535617fe5d..535259b7af2c 100644 --- a/lang/tcl84/files/patch-tmpnam +++ b/lang/tcl84/files/patch-tmpnam @@ -1,8 +1,6 @@ ---- tclUnixPipe.c Tue Apr 3 18:54:39 2001 -+++ tclUnixPipe.c Sat Apr 28 12:41:46 2001 -@@ -193,13 +193,10 @@ - /* - * Linux says we should use mkstemp, but Solaris prefers tmpnam. +--- tclUnixPipe.c.orig Wed Apr 4 00:54:39 2001 ++++ tclUnixPipe.c Thu May 10 22:00:30 2001 +@@ -195,10 +195,8 @@ * We should also check against making more then TMP_MAX of these. */ @@ -10,8 +8,8 @@ - return NULL; - } - fd = open(fileName, O_RDWR|O_CREAT|O_EXCL, 0666); /* INTL: Native. */ ++ strlcpy(fileName, "/var/tmp/tcltmp.XXXXXX", L_tmpnam); + fd = mkstemp(fileName); /* INTL: Native. */ if (fd == -1) { return NULL; } - fcntl(fd, F_SETFD, FD_CLOEXEC); |