head	1.4;
access;
symbols
	RELEASE_4_4_0:1.2;
locks; strict;
comment	@# @;


1.4
date	2001.11.16.19.02.56;	author dinoex;	state dead;
branches;
next	1.3;

1.3
date	2001.11.14.08.44.08;	author dinoex;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.10.20.13.56;	author dinoex;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.07.18.37.02;	author dinoex;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Remove leftover file

Submitted by:	huck@@spawar.navy.mil
@
text
@@


1.3
log
@ Tcl will get hostname using uname(3). It seems FreeBSD's uname(3)
 returns only 31 letters by /usr/include/sys/utsname.h.

 Problem was that configure detects uname(3) and uses uname(3) in
 the hostname-function, while gethostname gives more (=longer)
 information.

 keep uname around, as it is be used in TclpSetVariables.

 took maintainership 8.2

 apply a fix for unsafe tempfile handling from 8.3

PR:		18896
Submitted by:	yoshint@@flab.fujitsu.co.jp
@
text
@@


1.2
log
@- Fix creation of tmpfiles, previous version cause tcl to fail.

PR:		roam@@FreeBSD.org
Submitted by:	Jaeho Kang <jhkang@@isofree.net>, roam@@FreeBSD.org
@
text
@a0 15
--- 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;
     }
@


1.1
log
@- patch to use mkstemp instead of tmpnam

Submitted by:	mi@@aldan.algebra.com (Mikhail Teterin)
@
text
@d1 3
a3 5
--- 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.
d11 1
a15 1
     fcntl(fd, F_SETFD, FD_CLOEXEC);
@

