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

Re: [PATCH] Don't rely on unspecified behavior

From
Thomas Schwinge <tschwinge@gnu.org>
Date
Jul 28, 2007, 19:43 UTC
Message-ID
<20070728194306.GA32203@fencepost.gnu.org>
In-Reply-To
<Pine.LNX.4.64.0707282028130.14781@racer.site>
Hello!
On Sat, Jul 28, 2007 at 08:30:07PM +0100, Johannes Schindelin wrote:
Show 8 quoted lines
> On Sat, 28 Jul 2007, Thomas Schwinge wrote:
> > Calling access(p, m) with p == NULL is not specified, so don't do that.  On
> > GNU/Hurd systems doing so will result in a SIGSEGV.
> > 
> > Signed-off-by: Thomas Schwinge <tschwinge@gnu.org>
> > ---
> 
> Isn't this the same patch as you sent before?

As I wrote in <20070728182542.GA22651@fencepost.gnu.org>: ``I noticed that the patch I sent was prepared for an old version of the file. I'll send an updated patch that applies to the current revision.''

> > +		if (excludes_file != NULL && !access(excludes_file, R_OK))
> 
> We usually omit the "!= NULL"; see the other source code in git.git.
Okay, so I should sent a thusly modified version to get it applied?
Regards,
 Thomas
Previous: Thomas GlanzmannNext: Johannes Schindelin
Message 10 of 11 in “Support building on GNU/Hurd”
  1. Support building on GNU/HurdThomas Schwinge, Jul 28, 2007
  2. Don't rely on unspecified behaviorThomas Schwinge, Jul 28, 2007
  3. Thomas GlanzmannJul 28, 2007
  4. Thomas SchwingeJul 28, 2007
  5. Don't rely on unspecified behaviorThomas Schwinge, Jul 28, 2007
  6. Johannes SchindelinJul 28, 2007
  7. Thomas GlanzmannJul 28, 2007
  8. Johannes SchindelinJul 28, 2007
  9. Thomas GlanzmannJul 28, 2007
  10. Thomas SchwingeJul 28, 2007
  11. Johannes SchindelinJul 28, 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.