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

Re: Q: do people compile with NO_FNMATCH on OpenBSD 5.2?

From
GTGreg Troxel <gdt@ir.bbn.com>
Date
Dec 20, 2012, 18:54 UTC
Message-ID
<rmi8v8sy2oc.fsf@fnord.ir.bbn.com>
In-Reply-To
<7vzk1bdqy0.fsf@alter.siamese.dyndns.org>
  [mkstemp truncating output on error]
  diff --git c/wrapper.c w/wrapper.c
  index 68739aa..a066e2e 100644
  --- c/wrapper.c
  +++ w/wrapper.c
  @@ -229,7 +229,7 @@ int xmkstemp(char *template)
                  int saved_errno = errno;
                  const char *nonrelative_template;
  -		if (!template[0])
  +		if (strlen(template) != strlen(origtemplate))
                          template = origtemplate;
                  nonrelative_template = absolute_path(template);
Thanks for the quick fix.

I applied this patch to 1.8.0.1, and then the tests get all the way to t1402 (separate msg when I figure out why).

Previous: Junio C Hamano
Message 4 of 4 in “Q: do people compile with NO_FNMATCH on OpenBSD 5.2?”
  1. Junio C HamanoDec 18, 2012
  2. Greg TroxelDec 18, 2012
  3. Junio C HamanoDec 18, 2012
  4. Greg TroxelDec 20, 2012

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.