Re: PATH_MAX (Re: [PATCH] system_path: use a static buffer)
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Mar 21, 2011, 11:19 UTC
- Message-ID
- <AANLkTimAD9BurpAZnAjMLvr_wCV-ScS2tsBFY_fs9Jen@mail.gmail.com>
- In-Reply-To
- <20110318113818.GA6049@elie>
On Fri, Mar 18, 2011 at 6:38 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 5 quoted lines
> It is indeed possible to have paths with length longer than that. The > way to support that is to use relative paths wherever possible, which > does sound to me like an interesting long-term goal (mostly because I > suspect the result would be easier to read and, especially, to reason > about with respect to race conditions).
A shorter-term goal is to set a path limit config on trees inside the repo, so people on Linux won't accidentally make paths longer than the limit their Windows fellows have. I think it would be easy to do the check around index (old trees in repo are left alone, inspecting history does not have such a limit).
-- Duy