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

Re: Portability patches vs 1.7.0.2 [5/6]

From
Erik Faye-Lund <kusmabite@googlemail.com>
Date
Mar 9, 2010, 17:08 UTC
Message-ID
<40aa078e1003090908o74593fafw59bd992eda2b2b12@mail.gmail.com>
In-Reply-To
<20100309161906.GF99172@thor.il.thewrittenword.com>

In the future, please read Documentation/SubmittingPatches before sending patches. Patches should be inlined, for one.

On Tue, Mar 9, 2010 at 5:19 PM, Gary V. Vaughan <git@mlists.thewrittenword.com> wrote:

> Actually, I'd like some advice on whether this was a good idea?  Was
> the change to the code in git-1.7.0 introduced in response to a bug
> (latent or reported) that is fixed by the code I reverted in this
> patch?

I'm the author of commit 15515b73, who introduced that change (due to a bug). This is something that git-blame could have told you, and you could have CC'ed me. It's pure luck that I had a look at this patch.

Simply doing memcmp will not work, since sockaddr_storage contains both the IP-address and the port, but the port should not be compared.

>  If so, what is the right way to fix it (assuming you don't
> want to introduce a dependency on gnulib and Automake into git)?
>
If ss_family doesn't exist, does that mean that the platform only supports IPv4?
-- 
Erik "kusma" Faye-Lund
Previous: Gary V. VaughanNext: Jeff King
Message 2 of 3 in “Portability patches vs 1.7.0.2 [5/6]”
  1. Gary V. VaughanMar 9, 2010
  2. Erik Faye-LundMar 9, 2010
  3. Jeff KingMar 9, 2010

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.