aboutsummaryrefslogtreecommitdiffstats
path: root/dir.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-07-14 11:50:22 +0200
committerJunio C Hamano <gitster@pobox.com>2014-07-14 15:24:34 -0700
commitaceb9429b37a4a36e91f9eeb60e7ba488f73604b (patch)
tree16b0e9ab9bffa98114425a5bd1934d174fe5f694 /dir.h
parent709359c85cf366df68a1cabf9d68978c05c541c5 (diff)
downloadgit-aceb9429b37a4a36e91f9eeb60e7ba488f73604b.tar.gz
prep_exclude: remove the artificial PATH_MAX limit
This fixes a segfault in git-status with long paths on Windows, where PATH_MAX is only 260. This also fixes the problem of silently ignoring .gitignore if the full path exceeds PATH_MAX. Now add_excludes_from_file() will report if it gets ENAMETOOLONG. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.h b/dir.h
index 02e371090b..6c45e9d4b9 100644
--- a/dir.h
+++ b/dir.h
@@ -119,7 +119,7 @@ struct dir_struct {
*/
struct exclude_stack *exclude_stack;
struct exclude *exclude;
- char basebuf[PATH_MAX];
+ struct strbuf basebuf;
};
/*