From f3a574c8a1ef231205d1ca786035509b0b8d0720 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 13 Aug 2015 15:25:59 +0000 Subject: [PATCH] mingw: Suppress warning that :.gitattributes does not exist On Windows, a file name containing a colon is illegal. We should therefore expect the corresponding errno when `fopen()` is called for a path of the form :.gitattributes. This fixes https://github.com/git-for-windows/git/issues/255. Signed-off-by: Johannes Schindelin --- attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attr.c b/attr.c index 7e2134471cb4af..a0297088633a4d 100644 --- a/attr.c +++ b/attr.c @@ -726,7 +726,7 @@ static struct attr_stack *read_attr_from_file(const char *path, int macro_ok) int lineno = 0; if (!fp) { - if (errno != ENOENT && errno != ENOTDIR) + if (errno != ENOENT && errno != ENOTDIR && errno != EINVAL) warn_on_inaccessible(path); return NULL; }