git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [TopGit PATCH/RFC] Do not use mktemp

From
Petr Baudis <pasky@suse.cz>
Date
Aug 12, 2008, 20:44 UTC
Message-ID
<20080812204433.GM10151@machine.or.cz>
In-Reply-To
<Pine.GSO.4.62.0808121309000.18832@harper.uchicago.edu>
  Hi,
On Tue, Aug 12, 2008 at 01:14:27PM -0500, Jonathan Nieder wrote:
> Old operating systems may not even have mktemp; less old
> operating systems may have a mktemp which is not compatible with
> the usual post-1.5 version.  Let's try to do without.
  can you give some concrete examples?
  If there are really systems like that, I have nothing against
providing our own mktemp stub, but I'm not really fond of the approach
chosen in this patch. I see no reason why our stub shouldn't be
compatible with mktemp - what strikes me is a lot of code duplication
and arcane umask use at a lot of places, this should be encapsulated in
some mktemp() function.
-- 
				Petr "Pasky" Baudis
The next generation of interesting software will be done
on the Macintosh, not the IBM PC.  -- Bill Gates
Previous: Jonathan NiederNext: Jonathan Nieder
Message 3 of 6 in “Do not use mktemp”
  1. Do not use mktempJonathan Nieder, Aug 12, 2008
  2. suppress "cannot overwrite existing file" errorJonathan Nieder, Aug 12, 2008
  3. Petr BaudisAug 12, 2008
  4. Jonathan NiederAug 12, 2008
  5. supply template argument to mktempJonathan Nieder, Aug 13, 2008
  6. tg-info: fix sed typoJonathan Nieder, Aug 13, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.