From owner-cvs-src@FreeBSD.ORG Tue May 17 07:11:58 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B3E216A4CE for ; Tue, 17 May 2005 07:11:58 +0000 (GMT) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7523F43D81 for ; Tue, 17 May 2005 07:11:57 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (wlan033222.uni-rostock.de [139.30.33.222]) by hydra.bec.de (Postfix) with ESMTP id D8B2C35707 for ; Tue, 17 May 2005 09:11:53 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1001) id AB1D27D15; Tue, 17 May 2005 09:11:21 +0200 (CEST) Date: Tue, 17 May 2005 09:11:21 +0200 From: Joerg Sonnenberger To: cvs-src@freebsd.org Message-ID: <20050517071121.GA1915@britannica.bec.de> References: <200505121545.j4CFjENu078768@repoman.freebsd.org> <20050512180743.6z1h22fldwksgw4w@netchild.homeip.net> <42897003.2090005@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42897003.2090005@ucsd.edu> User-Agent: Mutt/1.5.9i Subject: Re: cvs commit: src/usr.bin/make job.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 May 2005 07:11:58 -0000 On Mon, May 16, 2005 at 09:16:03PM -0700, Max Okumoto wrote: > If I use mkdtemp(), there is a chance that someone with the > same UID could race to build the fifo. Do we care about > races with ourselves? Or am I just being toooo paranoid? :-) You just check the return value of mkdir, if it already exists, you know that something evil happened. That's enough to prevent races. Joerg