Overview
| Artifact ID: | 042ca0baf4063091494d25384aa40ad764c4756d |
|---|---|
| Ticket: | 649113ffffffffffffffffffffffffffffffffff |
| Date: | 2002-12-06 02:04:56 |
| User: | dinoex |
| Artifact Attached: | 9515f943cb39a3315cf9a27d4f2632ae16fa6ddf |
| Filename: | patch-tclUnixPipe.c |
| Description: | patch-tclUnixPipe.c |
Content:
--- 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.
*/
- if (tmpnam(fileName) == NULL) { /* INTL: Native. */
- 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;
}