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

Re: [PATCH] Fix git_mkstemp to return an error when path is too long.

From
CRCarlos Rica <jasampler@gmail.com>
Date
Jul 26, 2007, 19:42 UTC
Message-ID
<1b46aba20707261242j722ab827w6ff17ccbca47737d@mail.gmail.com>
In-Reply-To
<7vabtjbxip.fsf@assigned-by-dhcp.cox.net>
I like that new solution. ENAMETOOLONG is fantastic!

Usually, the function is called using the long PATH_MAX constant, however, the function doesn't force you to supply an insanely long buffer like that, and therefore is nice to say when the limit is exceeded.

Previous: Junio C Hamano
Message 4 of 4 in “Fix git_mkstemp to return an error when path is too long.”
  1. Fix git_mkstemp to return an error when path is too long.Carlos Rica, Jul 26, 2007
  2. Johannes SchindelinJul 26, 2007
  3. Junio C HamanoJul 26, 2007
  4. Carlos RicaJul 26, 2007

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.