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

Re: git.kernel.org disconnects when git-1.3.3 tries to pull changes

From
Junio C Hamano <junkio@cox.net>
Date
Oct 24, 2006, 01:23 UTC
Message-ID
<7vbqo2wlpl.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<453D583E.3010601@simon.arlott.org.uk>
Yes, this is a recent breakage.  Thanks for bringing it up.
We need at least a fix like this in 'maint'.
diff --git a/daemon.c b/daemon.c
index ad84928..e66bb80 100644
--- a/daemon.c
+++ b/daemon.c
@@ -450,6 +450,8 @@ void fill_in_extra_table_entries(struct 
 	 * Replace literal host with lowercase-ized hostname.
 	 */
 	hp = interp_table[INTERP_SLOT_HOST].value;
+	if (!hp)
+		return;
 	for ( ; *hp; hp++)
 		*hp = tolower(*hp);
 
@@ -544,8 +546,10 @@ #endif
 		loginfo("Extended attributes (%d bytes) exist <%.*s>",
 			(int) pktlen - len,
 			(int) pktlen - len, line + len + 1);
-	if (len && line[len-1] == '\n')
+	if (len && line[len-1] == '\n') {
 		line[--len] = 0;
+		pktlen--;
+	}
 
 	/*
 	 * Initialize the path interpolation table for this connection.
Previous: Simon ArlottNext: Jon Loeliger
Message 2 of 3 in “git.kernel.org disconnects when git-1.3.3 tries to pull changes”
  1. Simon ArlottOct 24, 2006
  2. Junio C HamanoOct 24, 2006
  3. Jon LoeligerOct 30, 2006

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.