From owner-freebsd-bugs Wed May 9 23:50:12 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B4ECE37B42C for ; Wed, 9 May 2001 23:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4A6o1r34554; Wed, 9 May 2001 23:50:01 -0700 (PDT) (envelope-from gnats) Received: from ai.ce.pusan.ac.kr (ai.ce.pusan.ac.kr [164.125.68.75]) by hub.freebsd.org (Postfix) with ESMTP id DACC037B424 for ; Wed, 9 May 2001 23:44:00 -0700 (PDT) (envelope-from jhkang@ai.ce.pusan.ac.kr) Received: by ai.ce.pusan.ac.kr (Postfix, from userid 1001) id D638C2C0A; Thu, 10 May 2001 15:43:51 +0900 (KST) Message-Id: <20010510064351.D638C2C0A@ai.ce.pusan.ac.kr> Date: Thu, 10 May 2001 15:43:51 +0900 (KST) From: jhkang@isofree.net Reply-To: jhkang@isofree.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.95 Subject: bin/27243: incorrect use of mkstemp() patch in tcl8.3.3_1 port. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 27243 >Category: bin >Synopsis: exec command may fail due to incorect use of mkstemp(). >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 09 23:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Jaeho Kang >Release: FreeBSD 4.3-STABLE i386 >Organization: isoFree System Technologies Co., Inc. >Environment: System: FreeBSD delta.isofree.net 4.3-STABLE FreeBSD 4.3-STABLE #3: Wed May 2 22:15:41 KST 2001 jhkang@delta.isofree.net:/usr/obj/usr/src/sys/DELTAKERNEL i386 >Description: lang/tcl83 (tcl8.3.3_1) port has patch-tmpnam patch for safely use of temporary file name generation. That patch applied to use mkstemp() instead of tmpnam(). But, incorrect use of mkstemp(), the tcl8.3.3_1 package has problem of failing exec tcl command. tcl83 cannot make temporary file. >How-To-Repeat: >Fix: 1. remove patch-tmpnam patch file and rebuild tcl8.3.3_1 package. 2. correct mkstemp() usage. This function require supplied argument as like change portion of the patch fd = mkstemp (fileName); as sprintf (fileName, "/var/tmp/tmp.XXXXXX"); fd = mkstemp (fileName); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message