From owner-freebsd-current Sun Oct 20 20:07:42 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA15650 for current-outgoing; Sun, 20 Oct 1996 20:07:42 -0700 (PDT) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id UAA15645 for ; Sun, 20 Oct 1996 20:07:38 -0700 (PDT) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id UAA03572; Sun, 20 Oct 1996 20:07:07 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma003570; Sun Oct 20 20:07:03 1996 Received: (from archie@localhost) by bubba.whistle.com (8.7.5/8.6.12) id UAA19700; Sun, 20 Oct 1996 20:07:03 -0700 (PDT) From: Archie Cobbs Message-Id: <199610210307.UAA19700@bubba.whistle.com> Subject: Re: mktemp BUG? In-Reply-To: <326AD788.167EB0E7@mindspring.com> from Ron Bolin at "Oct 20, 96 09:53:12 pm" To: rlb@mindspring.com (Ron Bolin) Date: Sun, 20 Oct 1996 20:07:02 -0700 (PDT) Cc: freebsd-current@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > Can anyone else duplicate this bug? > #include > char *tmp = mktemp("/tmp/cp.XXXXXX"); Your template string is going to be mapped read-only, and then mktemp trys to write to it -> core dump. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com