From owner-freebsd-libh Mon Dec 3 14:45:16 2001 Delivered-To: freebsd-libh@freebsd.org Received: from tomts10-srv.bellnexxia.net (tomts10.bellnexxia.net [209.226.175.54]) by hub.freebsd.org (Postfix) with ESMTP id 6E24837B417 for ; Mon, 3 Dec 2001 14:45:14 -0800 (PST) Received: from khan.anarcat.dyndns.org ([65.94.190.39]) by tomts10-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011203224513.DLHS17034.tomts10-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Mon, 3 Dec 2001 17:45:13 -0500 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id 201481A05 for ; Mon, 3 Dec 2001 17:49:33 -0500 (EST) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 5BC1B20ACB; Mon, 3 Dec 2001 17:46:46 -0500 (EST) Date: Mon, 3 Dec 2001 17:46:45 -0500 From: The Anarcat To: Libh Subject: removing mktemp call from File Message-ID: <20011203224645.GA2908@shall.anarcat.dyndns.org> Mail-Followup-To: The Anarcat , Libh Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline User-Agent: Mutt/1.3.23.2i Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi. Just a quick note that I'm currently hacking file/ to see how it could be possible to remove the mktemp call in there. It's an old thing that was annoying me. :) It could technically lead to a race condition when downloading a remote File. My current approach is to use mkstemp both in File (by creating a private create_tmp_file() method) and in Fetch. Any objections? I can submit the patches here for revision, if necessary. a. --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjwMANMACgkQttcWHAnWiGeKXACfebZ3d7CRjCDlj05MFMNimW58 knYAoIootklDFJkhpjYydcFC+3jqXgBR =caLL -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message