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

Re: git daemon broken?

From
Junio C Hamano <junkio@cox.net>
Date
Nov 21, 2005, 07:30 UTC
Message-ID
<7vpsouwj97.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20051121.154733.64482215.yoshfuji@linux-ipv6.org>

I think this should fix it; the problem analysis I did in my previous mail was half-baked, and the thing about '||' vs '&&' was completely faulty. Obviously I am not thinking straight tonight, so I'll go to bed.

---
diff --git a/path.c b/path.c
index 84b3272..4d88947 100644
--- a/path.c
+++ b/path.c
@@ -181,7 +181,7 @@ char *enter_repo(char *path, int strict)
 		return NULL;
 
 	if (strict) {
-		if((path[0] != '/') || chdir(path) < 0)
+		if (chdir(path) < 0)
 			return NULL;
 	}
 	else {
Previous: YOSHIFUJI Hideaki / 吉藤英明
Message 2 of 2 in “git daemon broken?”
  1. YOSHIFUJI Hideaki / 吉藤英明Nov 21, 2005
  2. Junio C HamanoNov 21, 2005

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.