From: Nguyen Thai Ngoc Duy Date: Tue, 14 Dec 2010 07:10:59 GMT Subject: Re: [PATCH 09/19] tree-diff.c: reserve space in "base" for pathname concatenation Message-ID: In-Reply-To: <7vvd2wvs0m.fsf@alter.siamese.dyndns.org> On Tue, Dec 14, 2010 at 12:32 PM, Junio C Hamano wrote: > Nguyen Thai Ngoc Duy writes: > >> All paths should not exceed PATH_MAX, right? > > Your PATH_MAX may be a lot shorter than the PATH_MAX on the system I > created my trees on that you are reading.  Besides, you can create > arbitrarily deep tree structure without busting the limit on the > filesystem by writing tree objects by hand. > > In other words, all paths shouldn't exceed PATH_MAX, but the responsiblity > to verify that is _yours_. OK. I can check and die if any path exceeds PATH_MAX. -- Duy