Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2001 15:43:51 +0900 (KST)
From:      jhkang@isofree.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/27243: incorrect use of mkstemp() patch in tcl8.3.3_1 port.
Message-ID:  <20010510064351.D638C2C0A@ai.ce.pusan.ac.kr>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010510064351.D638C2C0A>