From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CA5483858436; Wed, 11 Oct 2023 15:09:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CA5483858436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1697036989; bh=ZvrydTG3yJ4C5el6gyAHlU+vBquYsQh1HZ3hCU8vOog=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BMks/gilvel2rFa/3dMr9fzB/gZOK5mhitLEFIwxzO9CcbTbFV5NsdXc/w+cAtVAf F0M5SHucWWBymSmE2Fusvet6iXlJCbKFzrQRCbJtBAFe1dAdMKHhN7ofg5pzOldKqd 5lnVbqFXRKojgy+bHoEW7hCCzA8lH9WwVati00mA= From: "schwab@linux-m68k.org" To: glibc-bugs@sourceware.org Subject: [Bug libc/30958] mkstemp always produces the same temp file if it's removed Date: Wed, 11 Oct 2023 15:09:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.40 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30958 --- Comment #6 from Andreas Schwab --- mkstemp still works correctly even if it always tries the same (unique) file name first. There is no race because when the function returns the file wi= ll be created and opened exclusively. --=20 You are receiving this mail because: You are on the CC list for the bug.=