From aceb9429b37a4a36e91f9eeb60e7ba488f73604b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?= Date: Mon, 14 Jul 2014 11:50:22 +0200 Subject: prep_exclude: remove the artificial PATH_MAX limit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Karsten Blees Signed-off-by: Junio C Hamano --- dir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dir.h') diff --git a/dir.h b/dir.h index 02e371090..6c45e9d4b 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; }; /* -- cgit v1.2.1