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 {