diff options
Diffstat (limited to 'lang/tcl84/files')
-rw-r--r-- | lang/tcl84/files/patch-tmpnam | 10 |
1 files changed, 4 insertions, 6 deletions
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); |